/ccxp-skills:skill-conventions showfrom ccxp-skills
Use when authoring or editing a SKILL.md in ccxp-skills, or deciding a skill's name, structure, arguments, frontmatter, or whether to extract a shared lib
Ships in ccxp-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
<skills-root>= this skill's "Base directory" minus its last component; substitute the literal path (skill-conventions§9).
This suite's own conventions for authoring a SKILL.md, layered on top of generic skill-authoring guidance. For generic skill-authoring — what a skill is, skill types, description-as-trigger theory, RED-GREEN-REFACTOR subagent pressure-testing, frontmatter character limits — use superpowers:writing-skills. This skill documents only the deltas layered on top of it.
show (default): print these conventions. No other verbs — this is a reference skill. The mechanical checks live in §10's scripts; /retro Phase 4c runs the recurring improvement loop.
Use when… triggerThese skills are model-invocable (see §2), so the description is the text the model matches to decide whether to auto-invoke. Follow superpowers' rule: the description states when to use the skill, not what it does — start with Use when … and name concrete triggering conditions.
Guardrail — scope action/workflow triggers tightly. Skills that take a deliberate action (/drive, /gcpr, /slack, /ccxp, /address-pr) must phrase the trigger so the model does not surprise-fire them: "Use when the user explicitly asks to …". Reference/diagnostic skills (/rca, /proof-read) may use broader symptom triggers ("Use when a pipeline run has failed and you need to diagnose root cause").
Example — /drive: not "Pick ONE task, drive it to done" (what) but "Use when the user explicitly asks to start focused work on a single task and drive it to a merged PR" (tightly-scoped when).
No disable-model-invocation flag. Every skill is model-invocable (the flag's default is false), so never add the line. The way to restrict a skill is the description wording above. The flag also blocks preloading into subagents, and /autopilot dispatches a subagent to run /drive, so true would break that dispatch.
These skills are BOTH:
disable-model-invocation line) plus a good Use when… description (§1).argument-hint so /name <arg> works from the slash menu.Naming: kebab-case, a single clear verb where possible, no abbreviations or invented terms (/drive, /retro, /sweep). Reference skills may be noun-ish (/repo-conventions, /skill-conventions).
Use a small set of positional verbs, not a flag soup. The canonical pattern is list / next / sweep (see /todo, whose argument-hint: list | next | sweep). Always set argument-hint. The default (no arg) should do the most common thing.
_<prefix>/)When 2+ skills need the same helper, extract it into a _<prefix>/ directory instead of duplicating. Existing libs: _gh/ (gh wrapper), _taskid/ (ID minting), _session/ (Project-board mirror). Add a _<prefix>/README.md documenting the lib's surface — see _session/README.md.
_<prefix>/ get BATS tests (tests/*.bats).<skill>/scripts/*, each named by a test (tests/<skill>.bats). CI runs skill_score.py --coverage --coverage-check dev/quality/skill-coverage-baseline.txt: gaps may only shrink (--coverage-write regenerates). Exemptions, with a reason, live in dev/quality/script-exemptions.txt; offline fakes in tests/test_helper.bash.<skill>/evals/evals.json).This is this suite's counterpart to superpowers' subagent pressure-testing; we do not require that for prose skills.
## Argument, then ## Workflow (or ## Conventions for reference skills), then ## Important Notes — omit any that do not apply./ipm step 5, §2.d) so other skills and journal entries can cite exact steps — see /ccxp phase numbering and /address-pr §-anchors._session calls in /address-pr.A task's hub repo (where its dev/TODO/ file lives) and its implementation's target repo don't have to be the same repo. /drive's own Phase 1.5 defines the general mechanism — hub-vs-target terminology, the journal-move-PR close pattern; it makes no assumption about how many repos a team runs, or which specific repos they're named — one repo for everything (unset) or several. For the frontmatter's exact key spelling, use lifecycle.md, not a skill's prose — it documents the lint-enforced target-repo/target-path (lowercase-hyphenated) explicitly over /drive's own human-readable Target repo/Target path capitalized illustration, which is not what lint_tasks.py's allowlist actually requires.
dev/guidelines.md — TODO lifecycle, naming, status flowlifecycle.md — task status transitions/repo-conventions — CLAUDE.md / guidelines.md / dev/ layoutsuperpowers:writing-skills — generic skill-authoring this skill defers toWhen a SKILL.md workflow step is fully deterministic/mechanical (a parse, a lookup, a formatted report — no judgment calls), port it into a bundled, sourceable script under <skill>/scripts/ that the workflow invokes, instead of re-deriving the logic in prose an LLM re-executes every run. Reuse §4's shared-library rule when 2+ skills need the same helper.
Script path rule — never a repo-root-relative (bash todo/scripts/x.sh) or cwd-relative (bash <skills-root>/_gh/gh.sh) path; both exit 127 from a consumer repo:
<skills-root>/<skill>/scripts/x.sh or <skills-root>/_lib/x.sh.<skills-root> = the harness "Base directory for this skill" minus its last component; each skill defines it in one line under its H1.cd into <skills-root>.What stays in prose: logic that makes a real judgment call (a Park recommendation, a blocker-order decision) is not this convention's scope — only a deterministic read/transform is.
Required validation gate before switchover: add tests (BATS/unit, per §5) that prove behavior parity — the script's output matches the skill's own prior real invocations (or a hand-verified fixture) — before rewriting the SKILL.md workflow section to invoke the script instead of the prose it replaces. This makes §5's existing test requirement explicit as a port-safety gate, not just "has tests."
Worked example: T20260914-359646 ported /todo list's table-rendering and /todo next's queue-walk into todo/scripts/{_lib,todo-list,todo-next}.sh, keeping sweep's judgment-call logic (blocker-order enforcement, Park recommendations) in prose since those genuinely decide, not just read.
"Mature" enough to extract? Use §10's ladder: a good extraction candidate is L3+ (ideally L4 — zero open feedback means the prose isn't still shifting). A lower rung means re-porting after the next correction.
Vs. the Workflow tool: drive/SKILL.md Phase 3.1's sequential Workflow compiles control-flow between steps that each still need a model call; §9 eliminates the model call entirely. Different tools for different steps — a skill can use both.
Three deterministic instruments, all under skill-conventions/scripts/:
| Instrument | Grades | Command |
|---|---|---|
skill_score.py | Static structure, 0–100: trigger phrasing, context cost (full marks ≤ 8 KB body), broken in-repo refs, task-ID changelog noise, sections, long paragraphs, untested scripts | python3 <skills-root>/skill-conventions/scripts/skill_score.py [skill…] |
skill_eval.py | Behavior: runs <skill>/evals/evals.json via claude -p in a throwaway fixture dir, grades with regex/file assertions (no LLM judge), N runs per case, pass at ≥ 90% | python3 <skills-root>/skill-conventions/scripts/skill_eval.py <skill> --record |
skill_feedback.py | Real-use misbehavior log (dev/quality/skill-feedback.jsonl) | python3 <skills-root>/skill-conventions/scripts/skill_feedback.py add <skill> correction "<what went wrong>" |
Maturity ladder — computed by skill_score.py, never self-declared:
The loop — every real-use failure becomes a permanent regression test:
skill_feedback.py add.skill_feedback.py codify <F-id> <eval-id>; record the run with skill_eval.py --record.Ratchet: CI runs skill_score.py --check dev/quality/skill-scores.json — a score may rise but never fall below its baseline, and a new skill must reach 70. After an improvement, lock it in with --write-baseline dev/quality/skill-scores.json.
Eval authoring: prefer command_succeeded (bundled script ran and resolved), tool_not_called/command_not_ran (safety: no Edit in a read-only verb, no gh pr merge), and file_matches (end state) over output_matches on free text. Evals run with GitHub/Slack credentials scrubbed; a case that needs the network stubs it in its fixture.
superpowers:writing-skills for everything generic. If the two ever conflict on a generic point, superpowers wins; the §1–10 guardrails here are the only intentional local overrides.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub synx-data-labs/ccxp-skills --plugin ccxp-skills57 skills in this plugin
/1password-env-setupUse when the user explicitly asks to bootstrap or refresh a repo's 1Password-backed .env — installs the refresh-env helper, generates a hash-checking .envrc, and materializes .env from .env.tpl via op inject/address-prUse when the user explicitly asks to address, verify, or merge a specific open PR (CI, Claude Code review, test plan, tiered merge)/agent-pairingUse when the user explicitly asks to toggle the ccxp-agent main-session agent on/off for this Claude Code profile or check its status