Skip to main content
Teaches design patterns for building workflow-based Claude Code skills with multi-step phases, decision trees, subagent delegation, and progressive disclosure. Includes a review agent for auditing existing skills.

Overview

The Workflow Skill Design plugin provides comprehensive guidance for designing, structuring, and reviewing workflow-based Claude Code skills. It teaches five core patterns and includes a review agent for quality auditing. Author: Benjamin Samuels

Components

Skills

  • designing-workflow-skills - Guides the design and structuring of workflow-based skills with multi-step phases, decision trees, subagent delegation, and progressive disclosure

Agents

  • workflow-skill-reviewer - Reviews workflow-based skills for structural quality, pattern adherence, tool assignment correctness, and anti-pattern detection. Produces graded audit report.

Five Workflow Patterns

When to Use

  • Designing a new skill with multi-step workflows or phased execution
  • Creating a skill that routes between multiple independent tasks
  • Building a skill with safety gates (destructive actions requiring confirmation)
  • Structuring a skill that uses subagents or task tracking
  • Reviewing or refactoring an existing workflow skill for quality
  • Deciding how to split content between SKILL.md, references/, and workflows/

Installation

Essential Principles

1. Description is the Trigger

The description field is the ONLY thing that controls when a skill activates.
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 in description:
  • Trigger keywords
  • Use cases
  • Exclusions
“When to Use” and “When NOT to Use” still matter:
  • They scope Claude’s behavior once active
  • “When NOT to Use” should name specific alternatives: “use Semgrep for simple pattern matching” not “not for simple tasks”

2. Numbered Phases

Phases must be numbered with entry and exit criteria.
Unnumbered prose instructions produce unreliable execution order. Every phase needs:
  • A number (Phase 1, Phase 2, …)
  • Entry criteria (what must be true before starting)
  • Numbered actions (what to do)
  • Exit criteria (how to know it’s done)

3. Tools Match Executor

Skills use allowed-tools: in frontmatter Agents use tools: in frontmatter Never list tools the component doesn’t use. Never use Bash for operations that have dedicated tools (Glob, Grep, Read, Write, Edit).
Most skills and agents should include TodoRead and TodoWrite in their tool list - these enable progress tracking during multi-step execution.

4. Progressive Disclosure

SKILL.md stays under 500 lines. It contains only what Claude needs for every invocation:
  • Principles
  • Routing
  • Quick references
  • Links
Detailed patterns go in references/. Step-by-step processes go in workflows/. One level deep - no reference chains.

5. Scalable Tool Patterns

Instructions must produce tool-calling patterns that scale.
Every workflow instruction becomes tool calls at runtime. Apply the 10,000-file test:
  • Mentally run the workflow against a large repo
  • Check that tool call count stays bounded
Anti-patterns:
  • Searching N files for M patterns → N×M calls (bad)
  • One subagent per file → unbounded spawning (bad)
Better:
  • Combine into one regex, grep once, then filter (good)
  • Batch items into groups, one subagent per batch (good)

6. Degrees of Freedom

Match instruction specificity to task fragility:
Use for: Fragile operations (database migrations, crypto, destructive actions)Format: Exact commands, no variation

Pattern Selection

Choose the right pattern for your skill’s structure:

Designing a New Skill

1

Define Scope and Goals

  • What problem does this skill solve?
  • What are the expected inputs?
  • What are the expected outputs?
  • When should this skill activate?
2

Choose Pattern

Use the pattern selection decision tree above.
3

Map Phases

Number all phases with:
  • Entry criteria
  • Numbered actions
  • Exit criteria
4

Assign Tools

  • List minimum tools needed
  • Use dedicated tools (Glob, Grep, Read) over Bash
  • Include TodoRead/TodoWrite for progress tracking
5

Split Content

  • SKILL.md: Principles, routing, quick refs (under 500 lines)
  • references/: Detailed patterns
  • workflows/: Step-by-step processes
6

Write Description

Put trigger keywords, use cases, and exclusions in frontmatter description.

Reviewing an Existing Skill

The workflow-skill-reviewer agent can audit any skill:
The agent produces a graded audit report:
  • Structural quality - Phases numbered? Entry/exit criteria?
  • Pattern adherence - Matches a recognized pattern?
  • Tool assignment - Tools match executor? Minimum needed?
  • Anti-pattern detection - Hardcoded paths? Reference chains?

Anti-Pattern Quick Reference

The most common mistakes:

Structural Anatomy

Every workflow skill needs this skeleton:

Tool Assignment Quick Reference

Key rules:
  • Use Glob (not find), Grep (not grep), Read (not cat)
  • Skills use allowed-tools: — agents use tools:
  • List only tools that instructions actually reference
  • Read-only components should never have Write or Bash

Reference Documentation

The skill includes detailed reference files:
  • workflow-patterns.md - 5 patterns with structural skeletons and examples
  • anti-patterns.md - 20 anti-patterns with before/after fixes
  • tool-assignment-guide.md - Tool selection matrix, component comparison, subagent guidance
  • progressive-disclosure-guide.md - Content splitting rules, the 500-line rule, sizing guidelines
Workflows:
  • design-a-workflow-skill.md - 6-phase creation process from scope to self-review
  • review-checklist.md - Structured self-review checklist for submission readiness

Success Criteria

A well-designed workflow skill:

Rationalizations to Reject

When designing workflow skills, reject these shortcuts:
  • Skill Improver - Uses workflow patterns for iterative refinement
  • Git Cleanup - Example of Safety Gate pattern
  • Devcontainer Setup - Example of Linear Progression pattern
  • Ask Questions If Underspecified - Example of minimal gated workflow