| name | update-readme |
| description | Regenerate English README skill catalog from skill-catalog.yml. Optionally invoke /readme-i18n-sync to propagate to locale files. Use when: adding or removing skills, updating skill descriptions, fixing stale skill counts in README, after editing docs/skill-catalog.yml. Triggers on: 'update readme', 'sync readme', 'readme catalog', 'skill count wrong', 'add skill to readme'. |
| allowed-tools | Bash(node:*), Bash(git:*), Read, Grep, Glob, Skill |
Update README Skill Catalog
Regenerate the README Skill Reference section from docs/skill-catalog.yml + SKILL.md frontmatter, then propagate changes to all locale READMEs.
Trigger
- Keywords: update readme, sync readme, readme catalog, skill count, regenerate catalog, add skill to readme, readme out of date
When NOT to Use
| Scenario | Alternative |
|---|
| Editing README content outside skill catalog (e.g., architecture section) | Edit manually, then /readme-i18n-sync |
| Reviewing README quality | /codex-review-doc |
| Creating a new skill | /skill-creator (then come back here to update README) |
Workflow
sequenceDiagram
participant U as User
participant S as /update-readme
participant G as generate-readme-catalog.js
participant I as /readme-i18n-sync
U->>S: /update-readme
S->>G: Step 1: Generate (or --check)
G-->>S: README.md updated (or up-to-date)
alt README changed
S->>I: Step 2: /readme-i18n-sync
I-->>S: 5 locale READMEs synced
else No changes
S-->>U: README is already up to date
end
Usage
/update-readme
/update-readme --check
Step 1: Generate Catalog
node scripts/generate-readme-catalog.js
The generator:
- Reads
docs/skill-catalog.yml (category, featured, use_when, public)
- Reads each
skills/*/SKILL.md frontmatter for descriptions
- Replaces 5 comment-marker blocks in README.md:
HERO-COUNT — skill count in hero line
INSTALL-COVERAGE — install table rows
WHATS-INCLUDED-COUNT — what's included table
ESSENTIAL-SKILLS — featured skills with "Use when"
FULL-CATALOG — full categorized skill tables
Flags:
- No flag: update README.md in place
--check: exit 1 if README would change (for CI or pre-commit verification)
--dry-run: print summary without writing
Step 2: Sync Locale READMEs
Only if Step 1 produced changes:
/readme-i18n-sync
This detects the diff in README.md and translates changed sections into 5 locale files (zh-TW, zh-CN, ja, ko, es).
Adding a New Skill to README
When a new skill is created:
-
Add an entry to docs/skill-catalog.yml:
- command: /new-skill
category: development
featured: false
public: true
-
Run /update-readme
If the skill should be featured, also add use_when: and set featured: true.
Verification