cli-doc-maintainer
БесплатноБез исполняемых скриптовНе проверенKeep the AILANG CLI and its docs true to the dispatch table. Use when adding or renaming a command, adding a flag or env var, auditing CLI docs, fixing a doc…
от sunholo-data★ 39 звёзд на GitHubОб этом скилле
CLI Documentation Maintainer
There is nothing here to keep in sync by hand any more. cmd/ailang/commands.go is the only
place a command name is written down; ailang --help, every group's help, and
docs/docs/reference/cli.md are all rendered from it. This skill is the map of which instrument
answers which question — not a set of audits you run.
Adding or changing a command
- Edit the
Commandrow incmd/ailang/commands.go(orcommands_language.go/commands_platform.go/commands_eval.go, which assemble it).Name,Aliases,Group,Hidden,Language,Summary. make docs-cli— regeneratesdocs/docs/reference/cli.md.- Commit the page with the code.
make check-cli-docsfails if they disagree, and so doesgo test ./cmd/ailang/..., which CI already runs.
A command filed in a group keeps its top-level spelling (D1). Do not rename a route: 593 fleet
references call ailang messages, 332 ailang coordinator, 216 ailang chains. The caller sweep
is a separate, later change.
Which instrument answers which question
| Question | Instrument |
|---|---|
| Does the reference page match the table? | make check-cli-docs (byte-compares a fresh render against the checked-in page) |
How many commands does ailang --help show? |
make simplicity-metrics-fast → commands_top_level, gate 20 |
Does every command answer --help? |
same → help_exit0_rate, gate 100 |
| How many spellings answer "machine-readable output"? | same → output_format_spellings, gate 4 (a ratchet; cmd/ailang/output_flags.go is the design record) |
| Does a teaching prompt cite a command the binary rejects? | make check-prompt-commands |
| Is an environment variable documented? | make docs-env regenerates docs/docs/reference/env-vars.md from internal/config's Registry; env_vars_documented_pct gates it at 100 |
Never probe with a captured token
Auditing docs means running <name> --help for bare command names only, read out of the
binary's own generated help and validated against ^[a-z][a-z0-9-]*$ first. The first version of
tools/check_prompt_commands.sh passed a token it had scraped from text, and two faults compounded:
[a-z0-9-]+ matches a flag (- is literal inside a bracket expression), so ailang test --format json yielded the opener ailang test --format; and ailang test --format --help does not print
help, it runs the test suite. Several ailang test processes ground for half an hour.
tools/check_prompt_commands.sh and tools/simplicity_metrics.sh both carry the safe pattern —
copy one of them rather than writing a third.
Three audit scripts were retired (M-V1-SIMPLIFY-S5 M6)
audit_commands.sh, suggest_improvements.sh and audit_env_vars.sh all measured
cmd/ailang/help.go as a hand-written file and main.go as a case switch. S5 M1 generated the
first and emptied the second, so by M6 they were not merely stale, they were actively wrong:
audit_commands.sh read "Commands in main.go: 1" and demanded that an empty string be documented;
suggest_improvements.sh asked for "See also:" cross-references in generated output;
audit_env_vars.sh reported 272 variables as undocumented by comparing against a help.go that has
not listed environment variables since S4 moved them to internal/config's Registry. The gates in
the table above replace all three, structurally. Note for anyone reviving them: BSD grep has no
\s, which two of the three used.
resources/best_practices.md and resources/help_template.md describe how to hand-write
help.go's prose and are pre-S5 history; they are not instructions for today's CLI.
Установить cli-doc-maintainer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл cli-doc-maintainer?
Keep the AILANG CLI and its docs true to the dispatch table. Use when adding or renaming a command, adding a flag or env var, auditing CLI docs, fixing a doc that cites a command the binary rejects, or when `ailang --help` and a page disagree.
Как установить скилл cli-doc-maintainer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cli-doc-maintainer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic