audit-clerk-skill
Audit the clerk-cli Skill
Cross-check skills/clerk-cli/ against the actual CLI source in packages/cli-core/ and propose precise edits wherever they have drifted. The binary is the source of truth; the skill is documentation that must track it.
ultrathink on this task. It requires building a full command tree, comparing two representations of it, and making judgment calls about what belongs in the skill vs. in references/*.md vs. in --help. Shallow passes miss drift.
Inputs
- Source of truth:
packages/cli-core/src/commands/**(one directory per top-level command), pluspackages/cli-core/src/cli.ts,cli-program.ts,mode.ts, and anything inpackages/cli-core/src/lib/referenced by commands (runner preference, agent mode, doctor checks, key resolution). - Target:
skills/clerk-cli/SKILL.mdandskills/clerk-cli/references/*.md. - Template markers: the skill uses
{{CLI_VERSION}}placeholders substituted at install time byclerk skill install. Preserve them; do not expand.
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 path (e.g.
clerk config patch,clerk api ls).
More from clerk/cli
clerk-cli
>-
6changesets
Create or refresh a `.changeset/<slug>.md` for the current branch, or report that none is required. Triggers on "/changesets create", "add a changeset", "create a changeset", "update the changeset", "refresh the changeset", "do I need a changeset", or any work that touches `packages/**` source files on a feature branch.
5clerk
>-
3