audit-clerk-skill
БесплатноБез исполняемых скриптовНе проверенAudits the bundled `clerk-cli` skill against the Clerk CLI source tree and proposes or applies updates. Use when the user says "audit the clerk-cli skill"…
от clerk★ 95 звёзд на GitHubОб этом скилле
Clerk CLI Skill Audit
Cross-check skills/clerk-cli/ in this repository against the actual Clerk CLI source and propose precise edits where the skill has drifted. The CLI is the source of truth; the skill is maintainer documentation that must track it.
This task needs a complete command inventory, not a quick grep pass. Build the source model first, then compare it to the skill's current claims.
Inputs
- CLI source of truth: a
clerk/clicheckout containingpackages/cli-core/src/commands/**, pluspackages/cli-core/src/cli.ts,cli-program.ts,mode.ts, and any referenced files inpackages/cli-core/src/lib/. - Target skill:
skills/clerk-cli/SKILL.mdandskills/clerk-cli/references/*.md.
Source Checkout Resolution
Resolve the CLI source checkout in this order:
- Use
--source <path>when supplied. The path must containpackages/cli-core/src/commands/. - If the current repository itself contains
packages/cli-core/src/commands/, use the current repository root. - If
CLERK_CLI_REPOis set, use that path. Do not print the variable value if it contains sensitive path fragments. - In Conductor, look for exactly one sibling workspace matching
../cli/*/packages/cli-core/src/commands/. If multiple match, ask which one to use. - If no checkout is available and network access is acceptable for the task, clone the public CLI repository into
.context/clerk-cli-source:
mkdir -p .context
cd .context
git clone --depth 1 https://github.com/clerk/cli.git clerk-cli-source
If none of these work, stop and ask the user for a CLI source path. Do not audit against the installed clerk binary alone, because the binary may be stale and does not expose every source-level branch.
Workflow
1. Inventory the CLI
Walk packages/cli-core/src/commands/ and build a structured inventory. For each top-level command and subcommand capture:
- Full command path, such as
clerk config patchorclerk api ls. - Purpose, from the command description or help string in source.
- Flags, including short form, type, default, and destructive behavior.
- Exit codes beyond the default if the command overrides them.
- Agent-mode branches gated on
isAgentMode(),CLERK_MODE, TTY detection, or related helpers. - Whether the command mutates remote state and needs
--dry-run,--yes, or production-targeting guidance.
Read packages/cli-core/src/commands/<name>/README.md as secondary context only. Use those files to flag mocked or stubbed commands and to cross-check API endpoint claims in references/recipes.md. Do not propose copying command READMEs into this repository; they include internal implementation detail and would bloat the skill.
Also capture cross-cutting behavior:
- Runner preference logic, including lockfile to package-runner mapping.
- Auth, key resolution,
--app, and--instancetargeting. doctorchecks and--jsonoutput shape.- Agent-mode behavior for prompts, JSON defaults, browser opening, OAuth callbacks, deploy handoff, and sandbox warnings.
clerk init --promptor equivalent handoff behavior if the skill mentions it.
Prefer reading source over running the binary. When runtime behavior is unclear, use tests under packages/cli-core/src/**/*.test.ts or packages/cli-core/src/test/ as supporting evidence.
2. Extract the Skill's Claims
Read skills/clerk-cli/SKILL.md and each file under skills/clerk-cli/references/. Extract every concrete claim:
- Commands in the core command table and invocation guidance.
- Flags named in prose, tables, and examples.
- Agent-mode behavior bullets.
- Exit code, error format, and JSON output claims.
- Cross-references between
SKILL.mdandreferences/*.md.
3. Diff Source Against Skill
Produce a structured diff with four buckets:
- Missing from skill: commands, subcommands, flags, or behaviors that exist in source but are not mentioned anywhere in the skill.
- Stale in skill: claims in the skill that no longer match source, including renamed flags, changed defaults, removed commands, shifted exit codes, or reworked agent-mode branches.
- Thin in skill: commands mentioned but under-specified relative to their real complexity or footgun surface.
- Over-specified: details the skill encodes that
clerk <cmd> --help, generated examples, or referenced files cover better.
For buckets 1 through 3, cite both the source file and line and the target skill location.
4. Decide Placement
Route changes by maintenance value:
- Core loop, mental model, and safety stay in
SKILL.md. - Per-command flag details, recipes, and edge cases belong in
references/recipes.mdor a new reference file. - Agent-mode branches belong in
references/agent-mode.md;SKILL.mdgets only a concise summary. - Auth, key resolution, and targeting belong in
references/auth.md.
Prefer clerk <command> --help over duplicating generated help. Flags with destructive semantics, hidden
Установить audit-clerk-skill в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл audit-clerk-skill?
Audits the bundled `clerk-cli` skill against the Clerk CLI source tree and proposes or applies updates. Use when the user says "audit the clerk-cli skill", "update the clerk-cli skill", "check clerk-cli against the CLI source", "resync clerk-cli skill", "run audit-clerk-skill", or after Clerk CLI commands, flags, or agent-mode behavior change.
Как установить скилл audit-clerk-skill?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл audit-clerk-skill запускает скрипты?
Нет, скилл состоит только из инструкций (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