Restructures oversized SKILL.md files and scattered project rules into a well-organized skill directory with progressive tiers (single-file → folder-light → full).
How this skill is triggered — by the user, by Claude, or both
Slash command
/skill-based-architecture:skill-based-architectureThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Restructure oversized single-file Skills or scattered project rules into a well-organized Skill directory. Builds on the official minimal Agent Skill contract (`name` + `description`) and kicks in when a single small `SKILL.md` is no longer enough.
Restructure oversized single-file Skills or scattered project rules into a well-organized Skill directory. Builds on the official minimal Agent Skill contract (name + description) and kicks in when a single small SKILL.md is no longer enough.
AGENTS.md, CLAUDE.md, CODEX.md, .cursor/rules/, .claude/, etc.Grow only under pressure. Tiers: Single-file (SKILL.md only, < 3 topics) → Folder-light (+ rules/, 3–5 topics or 1 recurring workflow) → Full (+ workflows/ + references/ + thin shells; ≥ 3 routed tasks, gotcha log, or multi-harness repo). Upgrade triggers: SKILL.md body > 90 lines or description > 25 lines, same pitfall surfaces twice, a task needs step-by-step instructions, or two harnesses share routing. Split by abstraction (骨架/肉) when content tangles invariant design theory with current-code facts: abstract theory → architecture/, code maps → references/, house style → conventions/, per-module landmines → gotchas/ (methodology stays in rules/). Downgrade when content shrinks. Details: references/progressive-rigor.md.
skills/<name>/
├── SKILL.md # dual budget (description ≤ 25 + body ≤ 90 lines): always-read list, task routing, priority
├── architecture/ # abstract design theory (骨架) — layering/contract principles, the "why" — NOT the module map
├── conventions/ # house style (肉) — naming, paths, commands, formats
├── gotchas/ # code-coupled landmines (肉) — one file per module; index.md hub lists them
├── workflows/ # step-by-step procedures (骨架 — process theory)
├── references/ # code maps + background (肉) — module tree, dir layout, source index, build/env
└── docs/ # Optional: prompts, reports, external-facing material
Root entries (AGENTS.md, CLAUDE.md, CODEX.md, GEMINI.md, .cursor/rules/*.mdc) → thin shells with a routing.yaml bootstrap, not duplicated route tables.
.cursor/skills/<name>/SKILL.md → Cursor registration entry (required for discovery). See REFERENCE.md for templates.
SKILL.md keeps a dual budget: description ≤ 25 lines (trigger phrases + activation) + body ≤ 90 lines (navigation). It navigates, not exhausts. ✓ Check: smoke-test reports both separately; over either → split intent clusters / move detail to sub-files.skills/<name>/, not scattered at repo root. ✓ Check: ls *.md at root shows only thin shells, not rule/workflow files.rules/ for constraints, workflows/ for procedures. ✓ Check: any numbered steps in rules/? Any "always/never" in workflows/? Either = mixing.routing.yaml; shells only say how to read it. ✓ Check: route changed without running sync/check? No → drift risk..cursor/skills/<name>/SKILL.md must exist. ✓ Check: ls .cursor/skills/ — missing = Cursor cannot discover the skill.references/?references/ alone is not "captured"; must also be on the task path. ✓ Check: trace normal route for this scenario — Agent hits the entry without hunting? No → stored, not activated.skills/<name>/ but no .cursor/skills/<name>/SKILL.md → Cursor never discovers the skill; all rules/workflows silently ignoredrouting.yaml bootstrap → instruction lost after context summarization in long conversationsreferences/ but not surfaced in any workflow checklist or SKILL.md routing → future agents still miss it/clear or /compact silently drops SKILL.md from context; agent loses all routing and protocol awareness without the user noticing → install SessionStart hook if your harness supports it (see references/thin-shells.md § SessionStart Hook)templates/protocol-blocks/reboot-check.md before final validation/commit if original constraints are no longer fresh| Content type — tier by abstraction: 骨架 (architecture/workflows/rules = invariant theory) vs 肉 (conventions/gotchas/references = current-code facts) · split playbook | Target | Kind |
|---|---|---|
| Abstract design theory — layering/contract/orchestration/transaction principles, the "why" (NOT the module map) | architecture/ | 骨架 |
| Code maps + background — module tree, dir layout, source index, build/env notes | references/ | 肉 |
| House style — naming, paths, commands, formats, must/never conventions | conventions/ | 肉 |
| Code-coupled landmines (symptom → cause → fix), one file per module | gotchas/ (hub: gotchas/index.md) | 肉 |
| Step-by-step task procedures (process theory) | workflows/ | 骨架 |
| Prompts/reports/docs · editor config (thin shells) | docs/ · .cursor/ .claude/ | — |
Multi-skill repos — see references/multi-skill-routing.md (operating + fission + coexistence). For invoking other skills from your workflows (embedded / serial / subagent delegation), see references/skill-composition.md + starter templates/skill/workflows/invoke-skill.md.example.
npx claudepluginhub wojisama/skill-based-architecture --plugin skill-based-architectureCreates, audits, and consolidates Claude Code agent skills following the Agent Skills open standard. Interviews for intent, scope, and edge cases before drafting.
Design and iterate Claude Code skills: SKILL.md structure, description formulas, content architecture, and quality evaluation. Invoke whenever task involves any interaction with Claude Code skills — creating, reviewing, evaluating, debugging, or improving skills.
Creates a SKILL.md file following the Agent Skills open standard (agentskills.io). Covers frontmatter schema, section structure, Expected/On failure pairs, validation checklists, and registry integration.