Use when authoring a SKILL.md to ensure it follows established patterns across all superpowers skills
How this skill is triggered — by the user, by Claude, or both
Slash command
/skill-factory-toolkit:sft-cross-cutting-patternsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Machine-readable reference for SKILL.md authoring. Patterns extracted from 14 superpowers skills (v5.0.6).
Machine-readable reference for SKILL.md authoring. Patterns extracted from 14 superpowers skills (v5.0.6).
| Field | Rule |
|---|---|
name | kebab-case, letters/numbers/hyphens only, must match directory name |
description | Starts with "Use when", max 1024 chars, triggering conditions ONLY |
Description traps:
Examples: test-driven-development, verification-before-completion, systematic-debugging
Structural markers:
NO X WITHOUT Y declaration in code block)<HARD-GATE> tags or equivalent)| Excuse | Reality |)Enforcement style: Rigid. No adaptation. Follow exactly.
Examples: brainstorming, dispatching-parallel-agents, requesting-code-review
Structural markers:
Enforcement style: Flexible. Adapt principles to context.
Examples: sft-cross-cutting-patterns (this skill), skill comparison matrices
Structural markers:
Enforcement style: Informational. Consult as needed.
Examples: using-superpowers, writing-skills
Structural markers:
Enforcement style: Rigid for invocation rules, flexible for application.
Sections observed across all 14 skills, ordered by frequency:
| Section | Frequency | Purpose |
|---|---|---|
| Overview | 14/14 | 1-2 sentences, core principle |
| Common Mistakes / Rationalizations | 12/14 | Table format: Excuse | Reality or Mistake | Fix |
| Red Flags | 10/14 | Bullet list of thoughts that mean STOP |
| Integration / Cross-references | 10/14 | Called by, Pairs with, Required sub-skills |
| When to Use / When NOT to Use | 9/14 | Bullet lists or dot flowchart |
| Process / Checklist | 9/14 | Numbered steps or checkbox items |
| Quick Reference | 7/14 | Table for scanning |
| Process Flow | 6/14 | Graphviz dot notation |
| Real-World Example | 6/14 | Concrete scenario with outcome |
| Anti-patterns | 4/14 | What NOT to do, with why |
Required sections (all skills): Frontmatter, Overview.
Strongly recommended: Common Mistakes, Red Flags, Integration.
| Rule | Rationale |
|---|---|
| Description = triggering conditions only | Workflow summaries cause Claude to shortcut the skill body |
| Embed symptom keywords in body | Error messages, tool names, command names, common synonyms |
| Front-load critical content | Claude may not read to end of long skills |
| Use "Use when..." description format | Matches Claude's skill-selection heuristic |
| Name with active voice, verb-first | condition-based-waiting not async-test-helpers |
| Gerunds (-ing) for processes | writing-plans, requesting-code-review |
| Category | Target | Examples |
|---|---|---|
| Frequently-loaded (every session) | <200 words | using-superpowers (~350w observed, aim lower) |
| Standard skills | <500 words | executing-plans (~250w), finishing-a-development-branch (~400w) |
| Complex with checklists/examples | Size as needed | writing-skills (~1800w), systematic-debugging (~900w) |
Rule: Front-load critical content regardless of total length.
| Pattern | Example | Use When |
|---|---|---|
| Required sub-skill | **REQUIRED SUB-SKILL:** Use superpowers:<name> | Skill MUST be invoked |
| Required background | **REQUIRED BACKGROUND:** You MUST understand superpowers:<name> | Prerequisite knowledge |
| Called by / Pairs with | **Called by:** superpowers:<name> | Integration documentation |
| Inline mention | Use the superpowers:<name> skill | Soft reference |
NEVER use @ links -- they force-load files, burning 200k+ context.
NEVER use file paths -- reference by skill name only.
| Condition | Action |
|---|---|
| All content <100 lines | Inline everything in SKILL.md |
| Reusable templates or prompts | Separate .md file (e.g., code-reviewer.md, implementer-prompt.md) |
| Large code examples or scripts | Separate file with appropriate extension |
| Heavy reference (500+ lines) | Separate file, referenced from SKILL.md |
Observed supporting file types:
Use graphviz dot notation ONLY for:
NEVER use flowcharts for:
| Mistake | Fix |
|---|---|
| Description summarizes workflow | Rewrite to triggering conditions only |
| Narrative storytelling | Convert to tables, checklists, structured data |
| No rationalization counters in discipline skill | Add Common Rationalizations table from baseline testing |
| Missing Red Flags section | Add bullet list of "thoughts that mean STOP" |
Using @ links to other skills | Replace with **REQUIRED SUB-SKILL:** Use superpowers:<name> |
| Multi-language code examples | One excellent example in most relevant language |
| Generic flowchart labels (step1, helper2) | Use semantic labels describing the action |
| Skipping "When NOT to Use" | Add explicit exclusion criteria |
| Deploying without baseline test | Run RED phase first -- no skill without failing test |
| File | Purpose |
|---|---|
| baseline-test-guide.md | How to design and run baseline tests per skill type, with result template and real example |
npx claudepluginhub steltz/skill-factory --plugin skill-factory-toolkitGuides creation of SKILL.md files using test-driven development: write pressure scenarios, watch agents fail, document rules, verify compliance.
Creates, edits, and verifies SKILL.md files using a TDD cycle with subagent pressure scenarios. Write tests first, then the skill, then close loopholes.
Guides creation, editing, and verification of skills using a test-driven development approach with pressure scenarios and subagent baselines.