Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Design better AI skills with proven architecture patterns. Helps you decide Workflow vs Agent, pick the right pattern (Prompt Chaining, Routing, Parallelization, Orchestrator-Workers, Evaluator-Optimizer), write clean SKILL.md files, and catch common mistakes with a 25-point quality checklist. Based on design principles from Anthropic, OpenAI, and LangChain.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 26% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 58% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 53% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 27% | 0% |
| case-16 | ✗→✓ | ▲ Improved | 73% | 0% |
> 30-Second Test: If you're writing a SKILL.md or your skill "works but feels messy", load this guide.
| Tool | Purpose | |------|---------| | skill-creator | HOW to structure a SKILL.md file | | THIS GUIDE | WHY behind design decisions — Workflow vs Agent, which pattern |
This guide answers WHY, not HOW. See references/agent-design-research.md for full industry research background.
| Mode | Trigger | Output | |------|---------|--------| | New Design | "I want to build a X] skill" | Architecture blueprint (pattern + structure) | | Skill Review | "Review this skill" / "Check quality" | Report via checklist | | Pattern Selection | "Should I use X or Y?" | Pattern recommendation with rationale |
> These cannot be violated. They override all other considerations.
[Deterministic]/[LLM], Hard Rules, Failure Handling, Output Format.> Start simple. Add complexity only when simpler solutions fall short.
Practical checklist:
| Layer | Role | File | |-------|------|------| | Brain | Decision logic, workflow definition | SKILL.md | | Hands | Deterministic execution | scripts/ | | Session | Knowledge base, config, templates | references/, assets/ |
Your skills already follow this: data-ai-daily-brief (scripts fetch data), benjie-model (Session layer for other skills).
One question: Are the task steps predetermined?
| Type | When | |------|------| | Workflow | Steps are clear and predictable → choose this (faster, cheaper, debuggable) | | Agent | Steps uncertain, need dynamic planning → choose this (flexible but costly) |
Most things are workflows. Don't pick Agent because it sounds advanced.
Five workflow patterns. Full details in references/pattern-details.md.
| Pattern | Best For | |---------|----------| | Prompt Chaining | Sequential steps with checkpoints | | Routing | Clear input types → different paths | | Parallelization | Independent subtasks | | Orchestrator-Workers | Unpredictable subtasks (sparingly!) | | Evaluator-Optimizer | Generate→Evaluate→Repeat until pass |
| Component | Content | |-----------|---------| | SKILL.md | YAML frontmatter (name, description, read_when) + workflow + Hard Rules + Failure Handling + Output Format |
| Component | When | |-----------|------| | references/ | Domain knowledge (loaded on demand) | | scripts/ | Deterministic steps | | assets/ | Templates, configs |
yaml--- name: my-skill description: One sentence. Trigger keywords: a, b, c. version: 1.0.0 read_when: - "trigger phrase 1" - "trigger phrase 2" --- # Skill Name Overview paragraph. ## Workflow ### Step 1: [Deterministic] Confirm Input - Validate input exists - If missing, stop and report ### Step 2: [Deterministic] Load Materials - Read `references/xxx.md` (only needed files) ### Step 3: [LLM] Core Execution - Generate output following these rules: - Rule 1 - Rule 2 ### Step 4: [LLM] Self-Check - Verify output meets criteria → fix → re-output ### Step 5: [Deterministic] Save Output ## Hard Rules > These cannot be violated. 1. Rule 1 2. Rule 2 ## Failure Handling | Scenario | Action | |----------|--------| | Source file not found | Stop, report missing file | | Output 50% over limit | Compress and rewrite | ## Output Format [Define exact format and fields]
After completing a skill, run the full governance-aware checklist. Load references/quality-checklist.md for details.
Structure ✓ | Principles ✓ | Tools ✓ | Guardrails ✓ | Observability ✓
| Anti-Pattern | Fix | |-------------|------| | Over-engineering | Start with single SKILL.md | | Full preload | Load references on-demand only | | God Skill | Split duties — one skill, one thing | | All-LLM | Scripts for deterministic steps | | No guardrails | Add Hard Rules + Failure Handling | | Vague output | Define exact format and fields | | Publishing dirty | Before publishing, run skill-publish to audit and clean |
When the skill is ready to share on ClawHub/GitHub, use skill-publish to audit and publish. It handles: personal data scanning, frontmatter validation, content cleanup, bilingual enforcement, file separation (local vs published), and dual-platform push.
| Scenario | Action | |----------|--------| | User asks for code, not design | Redirect to skill-creator | | Pattern comparison ambiguous | Load references/pattern-details.md | | Review request without skill details | Ask: "Show me your SKILL.md or describe what the skill does" | | User wants to publish a completed skill | Redirect to skill-publish |
| Need | Load | |------|------| | 25-point checklist | references/quality-checklist.md | | Pattern deep dive | references/pattern-details.md | | Platform-specific config | references/platform-compatibility.md | | Industry research background | references/agent-design-research.md | | Anthropic tool design | references/anthropic-tool-design.md | | Publishing to ClawHub/GitHub | Use skill-publish (separate skill) |
v1.4.6 | Based on Anthropic/OpenAI/LangChain design principles | 2026-08-02
Changelog:
skill-design-guide-skill — restores 9 metadata.openclaw.tags (discoverability) + 1.4.4 governance-aware checklist / Governance & Continuity checks. (Prior 1.4.5/1.4.6 attempts landed on a stray skill-design-guide slug by mistake; that duplicate should be deleted.)metadata.openclaw.tags (9 discoverability tags) dropped in the 1.4.4 sync; no content change beyond 1.4.4 governance additionsreference/ + references/ into a single references/ dir; fixed all reference pathsreferences/; added Hard Rules + Failure Handling; reduced SKILL.md from 13K to ~5K charsOther measured skills in the registry, with their headline benchmark lift.