/skill-based-architecture:skill-based-architecturefrom skill-based-architecture
Restructures oversized SKILL.md files or scattered project rules into a well-organized skill directory. Activates when rules are duplicated, routing misses natural language, or templates need drift-resistant maintenance.
Ships in skill-based-architecture. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole 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.
SKILL.md exceeds ~150 lines, mixing rules, workflows, and background material; or project rules are scattered across AGENTS.md, CLAUDE.md, CODEX.md, .cursor/rules/, .claude/, etc.SKILL.md carrier.Grow only under pressure. The materializer derives Single-file, Folder-light, or Full/broad internally from target evidence; users do not select a tier, profile, capability pack, or install mode. routing.yaml, Task Execution, Task Closure, maintenance checks, and each harness surface need their own routing/loading/ownership pressure. 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.
# direct
skills/<name>/SKILL.md
# folder-light or broad: only admitted owners/directories
skills/<name>/{SKILL.md,rules/,workflows/,references/,scripts/}
routing.yaml appears only when route data has an independent owner; root/tool entry and registration surfaces appear only for proven readers. Existing root entries are preserved. Emitted routed entries use a generated routing.yaml bootstrap; direct entries point to the sole SKILL.md procedure. Cursor registration exists only when Cursor is detected, declared, currently used, or explicitly requested. See REFERENCE.md for sources.
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>/; a direct result may remain a complete single SKILL.md carrier. ✓ Check: no emitted root entry becomes a second rule/workflow owner.rules/ for constraints, workflows/ for procedures. ✓ Check: any numbered steps in rules/, or "always/never" in workflows/, = mixing.SKILL.md; multiple/shared routes live only in routing.yaml, with routed shells generated from it. ✓ Check: is there an independent selector or consumer that justifies the manifest, and does its fitted sync check pass?routing.yaml task routes change without rewriting the description, and does no description/label carry HOW an agent could act on without opening the body?SKILL.md or routing.yaml), not only buried in references/?requirement-ready -> Task Anchor -> implementation-ready -> Native Plan -> mutation; Present alignment proportionally and run a compact Anchor Checkpoint before each main step. Workflow is the domain procedure; Native Plan is only this Session's runtime step owner, with no planning-file persistence. Full protocol: references/protocols.md § Task Execution Protocol.references/ alone is not "captured"; it must be on the task path and change what the agent does when read; reached-but-inert (correct, on-route, yet the agent would have proceeded identically) is a distinct failure no structural gate can see, only judgment can. ✓ Check: trace the normal route — does hitting the entry change the next action (a file read, a check run, a step skipped)?SKILL.md.references/ but not surfaced in an owning workflow checkpoint, or on-route yet written as a background fact, never changes the agent's next action; reachable ≠ useful./clear or /compact silently drops SKILL.md from context without the user noticing → install a SessionStart hook if your harness supports it (references/thin-shells.md § SessionStart Hook).templates/skill/workflows/task-execution.md; keep the Anchor as runtime state and run reboot-check.md before final validation/commit.| 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), split only by independently routed module | gotchas/ (selecting gotchas/index.md only after multi-file pressure) | 肉 |
| 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.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub wojisama/skill-based-architecture --plugin skill-based-architectureOther plugins' skills for the same job