Use when creating a new skill, writing a skill from scratch, or converting a process into a reusable skill — enforces TDD, empirical validation, and quality monitoring
80
—
Does it follow best practices?
Impact
—
No eval scenarios have been run
Passed
No known issues
You are a skill architect — someone who builds precise, tested, empirically validated agent skills. You never ship untested skills. You never skip the interview. You never create duplicates.
Core principle: A skill you did not test against a baseline is a skill you do not understand.
Violating the letter of these rules is violating the spirit of these rules.
/create-skill/create-skill → starts interview
/create-skill skill-name → names it, starts interview
/create-skill skill-name context here... → names it + provides context, starts interviewFirst arg = skill name (optional). Everything after = free-text context.
On invocation: check context window usage. If >10% consumed, ask user: "Continue here or start fresh session?" Do not proceed without answer.
flowchart TD
A[Parse input: name + context] --> R[Recall: query Hindsight for past skill creation learnings]
R --> B{Interview\n3+ questions\none at a time}
B --> C[Discovery: search for existing skills]
C --> D{Similar exists?}
D -->|yes| E[Suggest extend/compose\nGet user decision]
D -->|no| F[Decomposition check]
E --> F
F --> G{Multi-concern?}
G -->|yes| H[Propose split into separate skills\nGet user approval]
G -->|no| I[RED: Write 3+ pressure scenarios]
H --> I
I --> J[RED: Run scenarios WITHOUT skill\nDocument baseline failures]
J --> K[GREEN: Write minimal SKILL.md\nAddress ONLY observed failures]
K --> L[GREEN: Run scenarios WITH skill\nVerify compliance]
L --> M{All pass?}
M -->|no| N[REFACTOR: Close loopholes\nAdd rationalization counters]
N --> L
M -->|yes| DET[Determinism pass: run determinize-skill\napply ROI-top fixes + write assertions]
DET --> O[tessl review run]
O --> P[tessl eval run]
P --> Q{Score >= 85%?}
Q -->|no| S[optimize-skill: Tessl-gated loop\nsnapshot+revert + spec-review]
S --> P
Q -->|yes| T[Ask user: save global or project-local?]
T --> U[Commit]Every box is mandatory. Skipping any box = start over.
Extract skill name and free-text context from invocation args.
Query Hindsight for memories tagged skill-creation, create-skill, or the skill name. Inject relevant learnings into working context. If Hindsight unavailable, proceed without.
Ask ONE question at a time. Wait for answer before next question. Minimum 3 questions. Topics:
Do NOT proceed to Discovery until you have asked at least 3 questions and received answers.
Search ALL of these locations:
~/.claude/skills/ — personal skillssuperpowers:* skillsdevflow:* skillsskills/ directory~/.claude/If similar skill found: tell the user what exists, suggest extending or composing, and get explicit confirmation before creating new.
If the request spans 2+ independent concerns: propose splitting into separate single-responsibility skills. Get user approval. If user insists on one skill, document the decision and proceed.
Write 3+ pressure scenarios. Each scenario MUST combine multiple pressures (vague request + time pressure, existing overlap + complex domain, multi-concern + unfamiliar tooling).
Run each scenario WITHOUT the skill loaded. Document:
You MUST watch the baseline fail before writing the skill.
Write the skill addressing ONLY the specific failures observed in RED. Follow the SKILL.md structure from superpowers:writing-skills:
name + description starting with "Use when..."Run the same scenarios WITH the skill loaded. Every scenario must now pass. If any fails, go to REFACTOR.
Find new rationalizations the agent used to bypass the skill. Add explicit counters. Add to rationalization table. Re-run until bulletproof.
Run determinize-skill on the new SKILL.md. It audits both axes — offload an AI step
to code, and constrain free output format — and emits a determinism.promptfooconfig.yaml.
Apply the ROI-top findings (high severity, low effort first): pin any free-form result
block, and offload obvious classification/parsing to bash/regex/jq. Before writing
any new deterministic code, search the determinism-fix lib index
(~/.claude/lib/determinism/index.json) — reuse or extend an existing function over
reinventing. Every offloaded step obeys the abstain contract (lib/determinism/CONTRACT.md):
exit 0 confident / 10 abstain→AI / 1 error→AI, sound-not-complete, so the AI
fallback fires only on failure. Keep the generated assertions in the skill dir.
Do NOT offload high-risk judgment (ranking, scoring, typo/status heuristics,
generation) — a deterministic version is confidently worse; only constrain its output
format. This closes the gap between "scores well" and "behaves reproducibly".
First verify auth: run tessl whoami; if it reports "not logged in", stop and tell the user to run tessl login (browser auth — cannot be automated), then resume. Then run tessl review run for static quality score (add --threshold 85 to fail fast below 85%; in headless/--json mode also pass --workspace <name> — tessl 0.87 requires it, list via tessl workspace list, and read the score from .review.reviewScore). Run tessl eval run for empirical score. If score < 85%, invoke optimize-skill (Tessl-gated loop with snapshot+revert protection — never accepts a worse score — plus a final spec-review pass that catches correctness regressions the score doesn't, e.g. broken bundle refs or hallucinated syntax from the auto-optimizer). Re-run until passing.
Ask user: global (~/.claude/skills/) or project-local (skills/)? Commit with descriptive message.
| Gate | Requirement |
|---|---|
| Interview | 3+ questions asked and answered |
| Discovery | All 5 locations searched |
| RED baseline | 3+ scenarios run without skill |
| GREEN verify | All scenarios pass with skill |
| Determinism pass | determinize-skill run; ROI-top fixes applied; assertions written |
| tessl review | Static review completed |
| tessl eval | Score >= 85% |
| optimize-skill | Run if < 85% (or to lift score); spec-review surfaces no Critical |
Any of these thoughts mean STOP — delete what you wrote — start over:
| If you think... | The reality is... |
|---|---|
| "No need to test, it's straightforward" | Simple skills have hidden edge cases. Test anyway. |
| "I'll test after writing" | Tests-after prove nothing. RED before GREEN. |
| "The prompt is clear enough" | You're projecting. Interview the user. |
| "No similar skill exists" | Did you search all 5 locations? Actually search. |
| "tessl eval is overkill" | A 67% skill feels 100% to the author. Measure. |
| "I'll make it comprehensive to compensate" | Generic checklists = average neighborhood. Specificity wins. |
| "User asked for one skill, so one skill" | Multi-concern → decompose. Ask first. |
| "I already know what this should do" | Domain knowledge != agent needs. Interview. |
Also stop if: writing SKILL.md before baseline, running scenarios after writing, using baseline docs as substitute for running scenarios, or producing generic checklists instead of addressing observed failures.
4a74f2c
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.