skill-architect
Build, validate, and improve Claude Code skills using a design-first methodology.
how to use
/skill-architect — apply skill architecture principles to the current conversation.
/skill-architect build <name> — create a new skill from scratch following the full build workflow.
/skill-architect review <path> — review an existing skill and produce a scored quality report.
/skill-architect validate <path> — run the validator and report structural/frontmatter/content issues.
when to apply
- Creating a new Claude Code skill from scratch.
- Improving or refactoring an existing skill.
- Auditing skill quality across a skill library.
- Troubleshooting why a skill is not triggering correctly.
- Reviewing a skill before publishing or sharing.
- Converting a one-off workflow into a reusable skill.
when NOT to apply
- General coding tasks — use
coding-workflow instead.
- "Improve my skills" meaning career or personal development.
- Prompt engineering for chat conversations (skills are file-based, not chat-based).
- Writing one-off documentation or READMEs.
- Configuring MCP servers (that is infrastructure, not skill authoring).
- Iterative skill improvement with eval benchmarks — use
skill-creator instead;
it provides subagent testing, programmatic grading, eval-viewer, and
description optimization with eval queries.
rule priorities
| Priority |
Category |
Impact |
| 1 |
Design-first thinking |
Critical |
| 2 |
YAML frontmatter |
Critical |
| 3 |
Folder structure |
Critical |
| 4 |
Instruction quality |
High |
| 5 |
Progressive disclosure |
High |
| 6 |
Composability |
Medium |
| 7 |
Testing |
Medium |
| 8 |
Iteration |
Low |
Full per-category rules: references/skill-system-patterns.md.
critical constraints
Design-first (priority 1)
- MUST define 3+ trigger prompts before writing.
- MUST identify the skill category (document/asset, workflow automation, MCP enhancement).
- MUST check existing skills for overlap.
- MUST define explicit scope boundaries — what the skill does NOT cover.
- NEVER start writing SKILL.md without completing the design phase.
YAML frontmatter (priority 2)
- MUST start with
--- on line 1.
- MUST include
name in kebab-case matching the folder name exactly.
- MUST include
description under 1024 characters with no angle brackets.
- MUST NOT use forbidden terms in
name: claude, anthropic, plugin, extension.
- The description's first sentence determines triggering.
- Use
> folded scalar for multi-line descriptions.
Full field spec: references/yaml-reference.md.
Folder structure (priority 3)
skill-name/
├── SKILL.md # Required
├── scripts/ # Optional — stdlib only
└── references/ # Optional — supplementary docs
- Folder name MUST be kebab-case and MUST match the
name field.
- MUST NOT have both
README.md and SKILL.md.
- Scripts MUST use Python stdlib only — no pip dependencies.
- Keep SKILL.md under 5000 words; spill into
references/.
core workflow
Build (creating a new skill)
- Design — define triggers, category, scope, and name.
- Structure — create folder layout.
- Content — write scripts → references → SKILL.md.
- Validate — run
scripts/validate_skill.py (13 checks must pass).
- Test — Tier 1 triggering, Tier 2 functional.
- Refine — register, iterate on real usage.
Full procedure with templates: references/architecture-workflow.md.
Review (auditing an existing skill)
- Read SKILL.md, references/, scripts/.
- Validate with
validate_skill.py --verbose.
- Score 8 dimensions (0-5 each, 40 max).
- Output validator results, scorecard, top 3 issues, fixes.
Full scoring rubric and review procedure: references/evaluation-and-validation.md.
skill categories
| Category |
Description |
Examples |
| Document/Asset |
Static references, lookup tables, specs |
api-design-patterns |
| Workflow Automation |
Multi-step processes, checklists, pipelines |
coding-workflow, git-workflows |
| MCP Enhancement |
MCP server wrappers with domain rules |
aster-trading |
Per-category patterns: references/skill-system-patterns.md.
validation gates
Structural validation — all 13 checks must pass before shipping:
python3 ~/.claude/skills/skill-architect/scripts/validate_skill.py <skill-path>
Testing tiers — full methodology in references/testing-guide.md:
| Tier |
What |
How |
| 0 |
Structural validity |
validate_skill.py |
| 1 |
Triggering accuracy |
3+ positive / 3+ negative prompts |
| 2 |
Functional correctness |
Happy path + error path + boundary |
| 3 |
Performance delta |
With-skill vs without |
safety constraints
- Do not create misleading skills.
- Do not include malware, exploit code, credential harvesting, or data exfiltration patterns.
- Do not bundle secrets, credentials, tokens, private context, personal identifiers, or local user paths in skill files.
- Preserve existing
name and frontmatter identity when improving an installed skill unless the user explicitly asks for a rename.
- Treat bundled scripts as code: keep them scoped, inspectable, testable, and stdlib-only.
output expectations
When creating or modifying a skill, report:
- Skill folder and files created or changed.
- Trigger behavior (positive + negative scope).
- Safety constraints included.
- Validator results (which of 13 checks passed/failed).
- Tests performed and results.
- Known limitations and recommended next iteration.
minimal frontmatter example
---
name: example-skill
description: >
One-sentence trigger statement. Use when <specific user intent A> or
<specific user intent B>.
version: 1.0.0
keywords: domain, capability, target
---
Full templates and patterns: references/yaml-reference.md,
references/workflow-patterns.md.
Reference map
| Need |
Read |
| Full build + review workflow with templates |
references/architecture-workflow.md |
| 8 rule categories detailed, skill category patterns |
references/skill-system-patterns.md |
| Testing tiers, scoring rubric, validator details |
references/evaluation-and-validation.md |
| Anti-patterns and diagnostics |
references/troubleshooting.md |
| End-to-end skill construction walkthroughs |
references/examples.md |
| YAML frontmatter field specification |
references/yaml-reference.md |
| 5 reusable workflow patterns |
references/workflow-patterns.md |
| 3-tier testing methodology |
references/testing-guide.md |
| Pre/during/post development checklists |
references/checklist.md |
| Automated validator (13 checks) |
scripts/validate_skill.py |
1---2name: skill-architect3description: Build, validate, and improve Claude Code skills. Design-first workflow with YAML frontmatter validation, progressive disclosure, and quality assessment. Use when creating new skills, improving existing ones, auditing skill quality, or troubleshooting skill triggering issues.4---56# skill-architect78Build, validate, and improve Claude Code skills using a design-first methodology.910## how to use1112- `/skill-architect` — apply skill architecture principles to the current conversation.13- `/skill-architect build <name>` — create a new skill from scratch following the full build workflow.14- `/skill-architect review <path>` — review an existing skill and produce a scored quality report.15- `/skill-architect validate <path>` — run the validator and report structural/frontmatter/content issues.1617## when to apply1819- Creating a new Claude Code skill from scratch.20- Improving or refactoring an existing skill.21- Auditing skill quality across a skill library.22- Troubleshooting why a skill is not triggering correctly.23- Reviewing a skill before publishing or sharing.24- Converting a one-off workflow into a reusable skill.2526## when NOT to apply2728- General coding tasks — use `coding-workflow` instead.29- "Improve my skills" meaning career or personal development.30- Prompt engineering for chat conversations (skills are file-based, not chat-based).31- Writing one-off documentation or READMEs.32- Configuring MCP servers (that is infrastructure, not skill authoring).33- Iterative skill improvement with eval benchmarks — use `skill-creator` instead;34 it provides subagent testing, programmatic grading, eval-viewer, and35 description optimization with eval queries.3637## rule priorities3839| Priority | Category | Impact |40|----------|----------|--------|41| 1 | Design-first thinking | Critical |42| 2 | YAML frontmatter | Critical |43| 3 | Folder structure | Critical |44| 4 | Instruction quality | High |45| 5 | Progressive disclosure | High |46| 6 | Composability | Medium |47| 7 | Testing | Medium |48| 8 | Iteration | Low |4950Full per-category rules: `references/skill-system-patterns.md`.5152## critical constraints5354### Design-first (priority 1)5556- MUST define 3+ trigger prompts before writing.57- MUST identify the skill category (document/asset, workflow automation, MCP enhancement).58- MUST check existing skills for overlap.59- MUST define explicit scope boundaries — what the skill does NOT cover.60- NEVER start writing SKILL.md without completing the design phase.6162### YAML frontmatter (priority 2)6364- MUST start with `---` on line 1.65- MUST include `name` in kebab-case matching the folder name exactly.66- MUST include `description` under 1024 characters with no angle brackets.67- MUST NOT use forbidden terms in `name`: `claude`, `anthropic`, `plugin`, `extension`.68- The description's first sentence determines triggering.69- Use `>` folded scalar for multi-line descriptions.7071Full field spec: `references/yaml-reference.md`.7273### Folder structure (priority 3)7475```text76skill-name/77├── SKILL.md # Required78├── scripts/ # Optional — stdlib only79└── references/ # Optional — supplementary docs80```8182- Folder name MUST be kebab-case and MUST match the `name` field.83- MUST NOT have both `README.md` and `SKILL.md`.84- Scripts MUST use Python stdlib only — no pip dependencies.85- Keep SKILL.md under 5000 words; spill into `references/`.8687## core workflow8889### Build (creating a new skill)90911. **Design** — define triggers, category, scope, and name.922. **Structure** — create folder layout.933. **Content** — write scripts → references → SKILL.md.944. **Validate** — run `scripts/validate_skill.py` (13 checks must pass).955. **Test** — Tier 1 triggering, Tier 2 functional.966. **Refine** — register, iterate on real usage.9798Full procedure with templates: `references/architecture-workflow.md`.99100### Review (auditing an existing skill)1011021. **Read** SKILL.md, references/, scripts/.1032. **Validate** with `validate_skill.py --verbose`.1043. **Score** 8 dimensions (0-5 each, 40 max).1054. **Output** validator results, scorecard, top 3 issues, fixes.106107Full scoring rubric and review procedure: `references/evaluation-and-validation.md`.108109## skill categories110111| Category | Description | Examples |112|----------|-------------|----------|113| Document/Asset | Static references, lookup tables, specs | `api-design-patterns` |114| Workflow Automation | Multi-step processes, checklists, pipelines | `coding-workflow`, `git-workflows` |115| MCP Enhancement | MCP server wrappers with domain rules | `aster-trading` |116117Per-category patterns: `references/skill-system-patterns.md`.118119## validation gates120121Structural validation — all 13 checks must pass before shipping:122123```bash124python3 ~/.claude/skills/skill-architect/scripts/validate_skill.py <skill-path>125```126127Testing tiers — full methodology in `references/testing-guide.md`:128129| Tier | What | How |130|------|------|-----|131| 0 | Structural validity | `validate_skill.py` |132| 1 | Triggering accuracy | 3+ positive / 3+ negative prompts |133| 2 | Functional correctness | Happy path + error path + boundary |134| 3 | Performance delta | With-skill vs without |135136## safety constraints137138- Do not create misleading skills.139- Do not include malware, exploit code, credential harvesting, or data exfiltration patterns.140- Do not bundle secrets, credentials, tokens, private context, personal identifiers, or local user paths in skill files.141- Preserve existing `name` and frontmatter identity when improving an installed skill unless the user explicitly asks for a rename.142- Treat bundled scripts as code: keep them scoped, inspectable, testable, and stdlib-only.143144## output expectations145146When creating or modifying a skill, report:147148- Skill folder and files created or changed.149- Trigger behavior (positive + negative scope).150- Safety constraints included.151- Validator results (which of 13 checks passed/failed).152- Tests performed and results.153- Known limitations and recommended next iteration.154155## minimal frontmatter example156157```yaml158---159name: example-skill160description: >161 One-sentence trigger statement. Use when <specific user intent A> or162 <specific user intent B>.163version: 1.0.0164keywords: domain, capability, target165---166```167168Full templates and patterns: `references/yaml-reference.md`,169`references/workflow-patterns.md`.170171## Reference map172173| Need | Read |174|---|---|175| Full build + review workflow with templates | `references/architecture-workflow.md` |176| 8 rule categories detailed, skill category patterns | `references/skill-system-patterns.md` |177| Testing tiers, scoring rubric, validator details | `references/evaluation-and-validation.md` |178| Anti-patterns and diagnostics | `references/troubleshooting.md` |179| End-to-end skill construction walkthroughs | `references/examples.md` |180| YAML frontmatter field specification | `references/yaml-reference.md` |181| 5 reusable workflow patterns | `references/workflow-patterns.md` |182| 3-tier testing methodology | `references/testing-guide.md` |183| Pre/during/post development checklists | `references/checklist.md` |184| Automated validator (13 checks) | `scripts/validate_skill.py` |