skills/use-skill-craft/SKILL.md
Use when: 'create skill', 'review agent', 'fix skill', 'audit skill', 'skill triggers'.
npx skillsauth add kenoxa/spine use-skill-craftInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Three tasks, three sections:
Authoring test: Would an LLM perform this task worse without the skill? If the agent would figure it out from general knowledge or by reading the target files, do not create the skill.
---
description: >-
Use when: 'X', 'Y'.
---
Triggers-first format — two forms:
do-/run-/use- skills → bare trigger cluster, no prose purpose: Use when: 'X', 'Y'.with-* skills → purpose clause + triggers: <purpose>. Use when: '<domain task>'.Include a name field matching the directory name (with prefix).
description is the sole trigger surface — the body loads only after activation. Every behavior mode and trigger phrase must appear in the description or the skill won't auto-invoke.
Prefix convention — pick the prefix that matches your skill's role:
| Prefix | Use for |
|--------|---------|
| do- | Workflow chain (discuss → plan → execute → commit) |
| run- | Standalone utilities (debug, review, polish, recap) |
| with- | Domain constraints — applied when task matches a domain (backend, frontend, terminology, testing) |
| use- | Operational tools — utilities, conventions, cross-provider tooling |
Plain names (handoff, catchup): session primitives. See docs/skills-reference.md for full details.
Add disable-model-invocation: true only when the skill is a thin routing wrapper
that immediately delegates to another skill.
overview → core directives → anti-patterns — plus optional ## Completion for
skills with exit-evidence requirements. No other sections unless prerequisites require it.
Core directives must be domain-specific procedures the agent wouldn't know.
For multi-phase workflow skills: see references/workflow-patterns.md — pattern selection, phase structure, anti-patterns.
Composition model. Agent + reference file = augmented behavior. References add, never replace. Linked refs load into mainthread; backticked paths dispatch-only — do NOT Read. See docs/specs/2612-thin-orchestrator/spec.md.
Dispatch visibility. Every dispatched agent appears in both the phase table AND inline dispatch list. Bold standalone paragraphs read as annotations — inline as list items.
Cross-skill refs. Skills cross-reference sibling refs via ../ paths. When renaming/moving reference files, check downstream consumers.
Retired names. When renaming agents/skills/MCP servers, add old name to the retired array in install.sh.
Declare, don't branch. Reference files describe what they consume and produce. No caller-identity conditionals; parameterize I/O paths. Exception: envoy refs must NOT include Write to {output_path} — their ## Output describes format only, because the content is forwarded to external providers via run.sh, not consumed by the envoy agent itself.
Reference naming. {phase}-{role}.md, orchestrate-{mode}.md, template-{artifact}.md, {concept}.md.
Phases are mandatory, fanout is adaptive. Every phase executes unless the skill explicitly gates it (e.g., depth classification). Zero-dispatch (phase executes, dispatches no subagents) is valid — not skip or fast-exit. Phase execution must be auditable: see references/phase-audit.md for logging, completion gates, and dispatch taxonomy.
Cut:
Anti-patterns: one line each. If a warning needs a paragraph to explain, convert
it to a directive in the main instructions instead. Include rationalization-awareness
bullets for workflow skills: "I'll X later" — reality: Y format exposes excuses
agents use to skip steps.
## Completion (optional): 3-6 concrete evidence requirements at skill exit. Tag
each with required evidence level (E2/E3). Precedent: run-debug/SKILL.md,
do-build/references/build-finalize.md. Workflow skills (do-*, run-*) with
phase-gated exits should include this section.
Be concrete. Vague directives fail the authoring test. See references/examples.md for before/after pairs.
Telegraphic prose. Sacrifice grammar for scannability — imperative fragments over full sentences. Skills are LLM-consumed, not prose. Compress grammar, not behavioral qualifiers — if a phrase constrains what the model outputs (not just how it processes), keep it even if it looks like cuttable prose.
Keep under 5000 tokens. If examples push past the limit, extract to
references/examples.md and link from the relevant section. NEVER nest deeper
than skill.md → references/file.md.
Apply the authoring test to every line: "Would a capable agent deduce this from general knowledge or from reading the target files?" Cut any line that passes.
Audit in order:
Delete a skill outright if it only loads or references another skill.
Red flags:
Step 1 — Find contradictions. Surface conflicting instructions; ask user which to keep.
Step 2 — Identify root-level essentials. Root AGENTS.md keeps only:
ni is universal; see use-js skill)Step 3 — Group and extract. Everything else → logical categories, one file each. Link from root.
Step 4 — Flag for deletion. Present flagged items before deleting:
Root AGENTS.md is read every invocation — keep minimal. References load on demand.
skill.md → ref.md → detail.md)tools
Use when: 'create a worktree', 'git worktree', 'parallel branch'.
tools
Use when: 'session state', 'resume work', 'worktree session'.
development
Use when: 'goal prompt'.
testing
Thinking-lens stress-test on a recommendation.