gwm: Skill for Claude Code

.claude/skills/docs-sync/SKILL.md

docs-sync is a skill for Claude Code from shutootaki/gwm. It costs 154 tokens per session (2,105 once invoked), scanned A, original, MIT.

A documentation consistency checker for a Rust command-line application. It compares the source files that define commands and settings with the help text and README files, including the Japanese README.

In plain words
What is it for?
Checking CLI commands and options, configuration fields, help screens, and README command references for drift from their source definitions.
Why use it?
It finds documentation that no longer matches the code after commands, options, or configuration fields change. This helps prevent missing, outdated, or deprecated usage information.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

This is shutootaki/gwm's own configuration. It tells Claude Code how to work on gwm itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything gwm configures →

Reuse

Borrowing it

Nothing to install: this file belongs to shutootaki/gwm. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/shutootaki/gwm/main/.claude/skills/docs-sync/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/shutootaki/gwm

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for docs-sync

README.md
[![agentmods](https://agentmods.dev/badge/skills/shutootaki/gwm/docs-sync/github.svg)](https://agentmods.dev/skills/shutootaki/gwm/docs-sync)
Your own site
<a href="https://agentmods.dev/skills/shutootaki/gwm/docs-sync"><img src="https://agentmods.dev/badge/skills/shutootaki/gwm/docs-sync/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for docs-sync

Your own site · 80×15
<a href="https://agentmods.dev/skills/shutootaki/gwm/docs-sync"><img src="https://agentmods.dev/badge/skills/shutootaki/gwm/docs-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 154 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,105 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00154 $0.02105
Opus 5.5 $0.00062 $0.00842
Sonnet 5.5 $0.00031 $0.00421
Haiku 4.5 $0.00015 $0.00211

Measured 1mo ago against content hash 0648c9cb016d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docs-sync scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/extract-metadata.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/docs-sync/SKILL.md · 168 lines

How it starts

The opening of the file, as written. The whole thing — 168 lines — stays where its author put it; the contents beside it link to each section on GitHub.

docs-sync: ドキュメント整合性チェック

ソースコード(SOURCE OF TRUTH)とドキュメント間のドリフトを検出し修正提案する。

ソースファイルマップ

ファイル 役割
src/cli/args.rs CLI定義(SOURCE OF TRUTH)
src/config/types.rs 設定型定義(SOURCE OF TRUTH)
src/ui/views/help.rs TUIヘルプテキスト(同期先)
README.md 英語ドキュメント(同期先)
README_JA.md 日本語ドキュメント(同期先)

チェック手順

5つのファイルを読み取り、以下6チェックを順に実施する。 オプションで scripts/extract-metadata.sh を先に実行し、機械的抽出結果を補助に使える。

Check 1: CLI Args → Help Text

args.rsの非hiddenコマンド/オプションがhelp.rsに正確に反映されているか確認する。

  1. args.rsから抽出:

    • Commands enumの非hiddenバリアント(hide = trueを除く)
    • 各Args構造体の非hiddenフィールドの short/long/docコメント
    • コマンドエイリアス(alias = "...")
  2. help.rsの各定数(GLOBAL, LIST, ADD, REMOVE, GO, CLEAN, SYNC, HELP)と比較:

    • 非hiddenオプションの欠落
    • hiddenなのにhelp.rsに残っているオプション
    • short/long形式の不一致

Check 2: CLI Args → README

READMEのCommand Referenceセクションがargs.rsと一致しているか確認する。

  1. Check 1で抽出した非hiddenコマンド/オプション一覧を使用
  2. README.mdの## Commandsや各コマンドセクションと比較:
    • コマンド一覧テーブルの網羅性
    • 各コマンドのオプション記載の正確性
    • deprecated構文が例に含まれていないか

Check 3: Config Types → README

types.rsの全設定フィールドがREADMEに正しく記載されているか確認する。

  1. types.rsから抽出:

    • Config構造体と全ネスト構造体のフィールド名
    • デフォルト値(default_*関数とvirtual_env_defaults定数)
    • deprecatedフィールド(docコメントで明示)
  2. README.mdのConfiguration Optionsテーブルと比較:

    • フィールドの欠落(特にvirtual_env_handlingセクション)
    • デフォルト値の不一致
    • 設定例の構造が現在のスキーマと矛盾しないか

既知の注意点:

  • CopyIgnoredFilesConfigのデフォルトはdefault_copy_enabled()=true, default_copy_patterns()=[".env", ".env.*", ".env.local", ".env.*.local"]
  • default_exclude_patterns()=[".env.example", ".env.sample"]
  • VirtualEnvConfigのデフォルトはvirtual_env_defaultsモジュール定数を参照

Check 4: README ↔ README_JA 構造整合

英語版と日本語版で同じコマンド・オプション・設定が記載されているか確認する。

README.mdとREADME_JA.mdの以下を構造的に比較(翻訳内容の正確性は対象外):

  • Commandsテーブルの行数とコマンド名
  • 各コマンドのオプションテーブルの行数とオプション名
  • Configuration Optionsテーブルの行数と項目名
  • セクション構成(h2, h3レベル)

Check 5: 環境変数の網羅性

コード内のGWM_プレフィックス環境変数がREADMEに記載されているか確認する。

Read the full file on GitHub · 168 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 168 lines · 154 tokens per session scan A 0648c9cb016d

Subscribe to this mod's changes

docs-sync is a skill published in the GitHub repository shutootaki/gwm (20 stars, last pushed 8mo ago), licensed MIT. It adds 154 tokens to every session and 2,105 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.