sync-readme
Maintains project READMEs by reading file structures and workspace metadata.
Install
mkdir -p .claude/skills/sync-readme && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/12363" && unzip -o skill.zip -d .claude/skills/sync-readme && rm skill.zipInstalls to .claude/skills/sync-readme
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
プロジェクトの実態(ディレクトリ構成・依存パッケージ・スクリプト)を読み取り、ルート README.md の各セクションを最新の状態に同期する。Key capabilities
- →Collect project directory structure information
- →Extract dependency package details from `package.json`
- →Read script commands from `package.json`
- →Synchronize directory tree diagrams in `README.md`
- →Update development environment tables in `README.md`
How it works
The skill gathers project information, compares it with the existing `README.md` content, and updates specific sections to reflect the current state.
Inputs & outputs
When to use sync-readme
- →Refreshing directory tree diagrams
- →Updating development tool tables
- →Synchronizing documentation with workspace
About this skill
README 同期スキル
プロジェクトの実態を読み取り、ルート README.md を最新の状態に同期する。
対象セクション
以下のセクションを順にチェック・更新する。$ARGUMENTS で特定セクションが指定された場合はそのセクションのみ対象とする。
- ディレクトリ構成 — ツリー図
- 開発環境 — ツール一覧テーブル
- セットアップ — インストール手順・コマンド
- 使用方法 — スクリプトコマンド
- Claude Code Skills — スキル一覧テーブル
手順
Step 1: プロジェクトの実態を収集
以下の情報を並列で収集する:
- ディレクトリ構成:
Globでワークスペースパッケージのディレクトリを列挙する - 依存パッケージ: 各パッケージの
package.jsonを読み込み、主要な依存を把握する - スクリプト: ルート
package.jsonのscriptsフィールドを読み込む - ワークスペース:
pnpm-workspace.yamlを読み込む - スキル一覧:
.claude/skills/配下のSKILL.mdをGlobで列挙し、各スキルの frontmatter(name, description)を読み込む
Step 2: 現在の README.md を読み込む
ルートの README.md を読み込み、各セクションの現状を把握する。
Step 3: ディレクトリ構成の同期
実際のディレクトリ構成と README の plaintext コードブロック内のツリー図を比較する。
チェック項目:
- ワークスペースに登録されているパッケージがすべてツリー図に含まれているか
- 各パッケージ内の主要サブディレクトリ(
lib/,bin/,agent/,src/,docs/など)が反映されているか - 削除されたパッケージやディレクトリがツリー図に残っていないか
- コメント(
# 説明テキスト)がパッケージの実態と一致しているか
差分があった場合: ツリー図を更新する。ツリー図の記法・インデントスタイルは既存のフォーマットを維持する。
Step 4: 開発環境テーブルの同期
各パッケージの package.json の dependencies / devDependencies から主要ツールを抽出し、README の開発環境テーブルと比較する。
主要ツール判定基準:
- フレームワーク・ライブラリ(express, hono, langchain, aws-cdk-lib, docusaurus 等)
- ビルドツール・バンドラ(esbuild, rspack, swc 等)
- リンター・フォーマッター(biome, eslint, prettier 等)
- テストフレームワーク(vitest, jest 等)
- CLI ツール(tsx, secretlint, husky 等)
以下は主要ツールとして含めない:
@types/*パッケージ- 内部ユーティリティ(
@smithy/*等の間接依存) - TypeScript 本体(言語自体であり開発ツールとは別カテゴリ)
チェック項目:
- 新しく追加されたツールがテーブルに含まれているか
- 削除されたツールがテーブルに残っていないか
- カテゴリ列(共通 / パッケージ名)が正しいか
差分があった場合: テーブルを更新する。カテゴリの並び順は「共通 → 各パッケージ(アルファベット順)」とする。
Step 5: セットアップ手順の同期
ルート package.json の scripts と、README のセットアップセクションを比較する。
チェック項目:
scriptsに存在するセットアップ系コマンド(*:install等)が README に記載されているか- README に記載されているコマンドが実際に
scriptsに存在するか - コマンドの説明が実態と一致しているか
差分があった場合: セットアップ手順を更新する。
Step 6: 使用方法セクションの同期
ルート package.json の scripts と、README の使用方法セクションを比較する。
チェック項目:
- 主要な開発用コマンド(
dev:*,build:*,cdk:*等)が README に記載されているか - README に記載されているコマンドが実際に
scriptsに存在するか
差分があった場合: 使用方法セクションを更新する。新しいコマンドカテゴリがある場合はサブセクションを追加する。
Step 7: Claude Code Skills テーブルの同期
.claude/skills/ 配下のスキル定義と、README の Skills テーブルを比較する。
チェック項目:
- 新しく追加されたスキルがテーブルに含まれているか
- 削除されたスキルがテーブルに残っていないか
- 各スキルの説明が
SKILL.mdのdescriptionと一致しているか - コマンド例が
argument-hintと一致しているか
差分があった場合: テーブルを更新する。
Step 8: 差分の報告と適用
すべてのチェックが完了したら、検出した差分を一覧表示してユーザーに確認する。
差分がない場合: README は最新の状態であることを報告して終了する。
差分がある場合: 差分の一覧を表示し、Edit ツールで修正を適用する。
修正時のルール
- 既存の文体・トーンを維持する
- Markdown のフォーマット(見出しレベル、テーブル記法、コードブロック)を崩さない
- 情報の並び順はカテゴリ別・アルファベット順を原則とする
- 不確実な情報は追加しない。ツールの公式 URL が不明な場合はリンクなしで記載する
- セクション自体の追加・削除が必要な場合はユーザーに確認を取る
出力
同期完了後、以下の形式でサマリーを出力する:
## README 同期結果サマリー
### 更新したセクション
- [ セクション名: 変更内容 ]
- ...
### 変更なしのセクション
- [ セクション名 ]: 最新の状態 ✅
### ユーザーへの確認事項(ある場合)
- [ 確認事項 ]
When not to use it
- →When the project does not use `package.json` for dependencies and scripts
- →When the root `README.md` does not contain the target sections
- →When not needing to update directory structure, development environment, setup, usage, or Claude Code Skills sections
Limitations
- →Limited to projects using `package.json` for dependencies and scripts
- →Requires specific Markdown formatting for sections like directory trees and tables
- →Does not add or remove sections without user confirmation
How it compares
This automates the process of keeping `README.md` synchronized with the actual project structure and dependencies, unlike manual updates.
Compared to similar skills
sync-readme side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| sync-readme (this skill) | 0 | 5mo | No flags | Intermediate |
| markdown-to-html | 16 | 6mo | Review | Beginner |
| claude-md-enhancer | 1 | 9mo | Review | Beginner |
| deepinit | 1 | 5mo | Review | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by Imamachi-n
View all by Imamachi-n →You might also like
markdown-to-html
github
Convert Markdown files to HTML similar to `marked.js`, `pandoc`, `gomarkdown/markdown`, or similar tools; or writing custom script to convert markdown to html and/or working on web template systems like `jekyll/jekyll`, `gohugoio/hugo`, or similar web templating systems that utilize markdown documents, converting them to html. Use when asked to "convert markdown to html", "transform md to html", "render markdown", "generate html from markdown", or when working with .md files and/or web a templating system that converts markdown to HTML output. Supports CLI and Node.js workflows with GFM, CommonMark, and standard Markdown flavors.
claude-md-enhancer
alirezarezvani
Analyzes, generates, and enhances CLAUDE.md files for any project type using best practices, modular architecture support, and tech stack customization. Use when setting up new projects, improving existing CLAUDE.md files, or establishing AI-assisted development standards.
deepinit
Yeachan-Heo
Deep codebase initialization with hierarchical AGENTS.md documentation
ability-generator
lofcz
This skill generates markdown skill templates to be later used.
sample-with-references
svelte-society
Demonstrates progressive disclosure by linking to reference files. Use this pattern when your skill has detailed content that should load on-demand.
website-maintainer
yamadashy
Use this skill when working on the Repomix documentation website in `website/` directory, including VitePress configuration, multi-language content, or translation workflows.