designing-workflow-skills

Installation
Summary

Structural design patterns and principles for reliable multi-step Claude Code workflow skills.

  • Covers five workflow patterns (routing, sequential pipeline, linear progression, safety gate, task-driven) with numbered phases, entry/exit criteria, and decision trees for pattern selection
  • Enforces progressive disclosure: SKILL.md stays under 500 lines with details split into references/ and workflows/ directories, one level deep
  • Provides 20 anti-patterns with before/after fixes, covering unnumbered phases, broken references, hardcoded paths, tool mismatches, and unbounded subagent spawning
  • Includes tool assignment matrix matching component types to minimum required tools, plus rationalizations to reject during design
  • Emphasizes that skill descriptions control activation (triggering keywords only), phases need explicit exit criteria, and instructions must produce bounded tool-calling patterns at scale
SKILL.md

Designing Workflow Skills

Build workflow-based skills that execute reliably by following structural patterns, not prose.

Essential Principles

<essential_principles>

Claude decides whether to load a skill based solely on its frontmatter description. The body of SKILL.md — including "When to Use" and "When NOT to Use" sections — is only read AFTER the skill is already active. Put your trigger keywords, use cases, and exclusions in the description. A bad description means wrong activations or missed activations regardless of what the body says.

"When to Use" and "When NOT to Use" sections still serve a purpose: they scope the LLM's behavior once active. "When NOT to Use" should name specific alternatives: "use Semgrep for simple pattern matching" not "not for simple tasks."

Related skills
Installs
1.8K
GitHub Stars
5.1K
First Seen
Feb 19, 2026