SY

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.zip

Installs 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 の各セクションを最新の状態に同期する。
72 charsno explicit “when” trigger
Intermediate

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

You give it
Project files including `package.json`, `pnpm-workspace.yaml`, `.claude/skills/`, and `README.md`
You get back
An updated `README.md` and a summary report of changes

When to use sync-readme

  • Refreshing directory tree diagrams
  • Updating development tool tables
  • Synchronizing documentation with workspace

About this skill

README 同期スキル

プロジェクトの実態を読み取り、ルート README.md を最新の状態に同期する。

対象セクション

以下のセクションを順にチェック・更新する。$ARGUMENTS で特定セクションが指定された場合はそのセクションのみ対象とする。

  1. ディレクトリ構成 — ツリー図
  2. 開発環境 — ツール一覧テーブル
  3. セットアップ — インストール手順・コマンド
  4. 使用方法 — スクリプトコマンド
  5. Claude Code Skills — スキル一覧テーブル

手順

Step 1: プロジェクトの実態を収集

以下の情報を並列で収集する:

  1. ディレクトリ構成: Glob でワークスペースパッケージのディレクトリを列挙する
  2. 依存パッケージ: 各パッケージの package.json を読み込み、主要な依存を把握する
  3. スクリプト: ルート package.jsonscripts フィールドを読み込む
  4. ワークスペース: pnpm-workspace.yaml を読み込む
  5. スキル一覧: .claude/skills/ 配下の SKILL.mdGlob で列挙し、各スキルの frontmatter(name, description)を読み込む

Step 2: 現在の README.md を読み込む

ルートの README.md を読み込み、各セクションの現状を把握する。

Step 3: ディレクトリ構成の同期

実際のディレクトリ構成と README の plaintext コードブロック内のツリー図を比較する。

チェック項目:

  • ワークスペースに登録されているパッケージがすべてツリー図に含まれているか
  • 各パッケージ内の主要サブディレクトリ(lib/, bin/, agent/, src/, docs/ など)が反映されているか
  • 削除されたパッケージやディレクトリがツリー図に残っていないか
  • コメント(# 説明テキスト)がパッケージの実態と一致しているか

差分があった場合: ツリー図を更新する。ツリー図の記法・インデントスタイルは既存のフォーマットを維持する。

Step 4: 開発環境テーブルの同期

各パッケージの package.jsondependencies / 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.jsonscripts と、README のセットアップセクションを比較する。

チェック項目:

  • scripts に存在するセットアップ系コマンド(*:install 等)が README に記載されているか
  • README に記載されているコマンドが実際に scripts に存在するか
  • コマンドの説明が実態と一致しているか

差分があった場合: セットアップ手順を更新する。

Step 6: 使用方法セクションの同期

ルート package.jsonscripts と、README の使用方法セクションを比較する。

チェック項目:

  • 主要な開発用コマンド(dev:*, build:*, cdk:* 等)が README に記載されているか
  • README に記載されているコマンドが実際に scripts に存在するか

差分があった場合: 使用方法セクションを更新する。新しいコマンドカテゴリがある場合はサブセクションを追加する。

Step 7: Claude Code Skills テーブルの同期

.claude/skills/ 配下のスキル定義と、README の Skills テーブルを比較する。

チェック項目:

  • 新しく追加されたスキルがテーブルに含まれているか
  • 削除されたスキルがテーブルに残っていないか
  • 各スキルの説明が SKILL.mddescription と一致しているか
  • コマンド例が 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.

SkillInstallsUpdatedSafetyDifficulty
sync-readme (this skill)05moNo flagsIntermediate
markdown-to-html166moReviewBeginner
claude-md-enhancer19moReviewBeginner
deepinit15moReviewBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

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.

1662

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.

113

deepinit

Yeachan-Heo

Deep codebase initialization with hierarchical AGENTS.md documentation

15

ability-generator

lofcz

This skill generates markdown skill templates to be later used.

13

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.

12

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.

12

Search skills

Search the agent skills registry