From cmux-team
Synchronizes docs/spec/, README.md, README.ja.md, and skill guides with implementation state using git log analysis and closed .team/tasks/. Detects diffs, reports changes, supports dry-run/auto updates.
npx claudepluginhub hummer98/cmux-team --plugin cmux-teamThis skill uses the workspace's default tool permissions.
`docs/spec/` と `README.md` / `README.ja.md` を実装の現状に合わせて同期するスキル。
Automates updating README.md, CHANGELOG.md, and docs folders via git diff analysis of changes since last release tag. Use for release prep, PRs, or doc sync.
Implements two-phase workflow to analyze code changes via git diff and update project documentation. Use before merging branches, after features/bugfixes, or when docs stale.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Share bugs, ideas, or general feedback.
docs/spec/ と README.md / README.ja.md を実装の現状に合わせて同期するスキル。
実装が先行し、ドキュメントが追いついていないケースを検出して更新する。
判断材料として git log と .team/tasks/ の closed タスクを使う。
対象は大きく 3 系統:
docs/spec/*.md — 統合仕様書(実装の「何を・なぜ」)README.md / README.ja.md — ユーザー向けインストール・入門ガイド(英日対訳)skills/cmux-team-guide/SKILL.md — ユーザー向けヘルプ・リファレンス(CLI コマンド一覧・TUI・トラブルシューティング)git log -1 --format="%H %ai %s" -- docs/spec/
→ <base_hash> と <last_updated> を記録する。
# ベースハッシュ以降のコミット(実装ファイルに絞る)
git log --oneline <base_hash>..HEAD -- skills/ commands/ bin/ package.json .claude-plugin/
# closed タスクの一覧(タイトルと本文で何が実装されたか把握)
cat .team/task-state.json | python3 -c "
import json, sys
data = json.load(sys.stdin)
for tid, info in data.items():
if info.get('status') == 'closed':
print(tid, info.get('title',''))
"
変更内容が曖昧なコミットは、対応するタスクファイル (.team/tasks/Txxx-*.md) を読んで補完する。
対象ファイル:
| ファイル | 内容 |
|---|---|
docs/spec/00-project-overview.md | プロジェクト概要・アーキテクチャ |
docs/spec/01-skill-cmux-team.md | cmux-team スキル仕様 |
docs/spec/02-skill-cmux-agent-role.md | cmux-agent-role スキル仕様 |
docs/spec/03-commands.md | スラッシュコマンド定義 |
docs/spec/04-templates.md | エージェントテンプレート仕様 |
docs/spec/05-install-and-infrastructure.md | インストール・インフラ構成 |
docs/spec/06-implementation-tasks.md | 実装タスク定義 |
README.md | ユーザー向け入門ガイド(英語) |
README.ja.md | ユーザー向け入門ガイド(日本語) |
skills/cmux-team-guide/SKILL.md | ユーザー向けヘルプ・リファレンス |
各ファイルを読み、収集した変更内容と照合して差異を検出する。README は CLI コマンド一覧・インストール手順・機能一覧が実装と一致しているか特に重点的に確認する。英日は対訳関係を維持する。skills/cmux-team-guide/SKILL.md は CLI コマンド一覧・レイアウト説明・TUI キーボードショートカット・トラブルシューティングが実装と一致しているか確認する。
モードによって動作が異なる:
| モード | 動作 |
|---|---|
--dry-run | 差分レポートのみ出力。ファイルは変更しない |
| (デフォルト) | ユーザーに差分を提示し、確認後に更新 |
--auto | 確認なしで自動更新 |
差分レポートの形式:
## docs/spec/ 同期レポート
最終更新: <last_updated>
対象コミット: N件
対象 closed タスク: N件
### 更新が必要なファイル
#### docs/spec/03-commands.md
- `/docs-sync` コマンドの追加(T098)
- `master.md` の「タスクへの補足・追加指示」セクション追加(T097相当)
#### docs/spec/04-templates.md
- `dockeeper.md` テンプレートの役割説明を更新
### 変更不要なファイル
- 00-project-overview.md — 変更なし
- 01-skill-cmux-team.md — 変更なし
docs/spec/ は「実装と同期された仕様書」。内部実装詳細は書かないREADME.md / README.ja.md は「ユーザーが最初に読むドキュメント」。開発者向け内部仕様は入れない