Individual skill
skill-based-architecture
This skill should be used when the user asks to "organize the project rules", "clean up scattered documentation", "把规则迁移到 skills 目录", "优化 skill 路由", "提高 description 命中率", or "减少薄壳重复维护". Activate when a SKILL.md is too large, rules are duplicated across agent entry files, task routing or trigger_examples miss natural user language, or templates / thin shells / validation scripts need drift-resistant maintenance.
SKILL.md
Source commit e5d2da58ec6812b4615d39869f630cfd20fd58a5
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 4, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 619
- Repository last updated
- Sep 20, 2026
- License
- MIT
Observed agent integration: claude-code, codex, cursor, gemini-cli
- ai Repository topic
- claude Repository topic
- skill Repository topic
- agent Repository topic
- chatbot Repository topic
- markdown Repository topic
- spec Repository topic
- engineering Derived category
- docs Derived category
- productivity Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
.claude-plugin/marketplace.jsonasset · 820 bytes.claude-plugin/plugin.jsonasset · 524 bytes.claude/hooks/session-startruns · 935 bytes.claude/settings.jsonasset · 707 bytes.cursor/rules/workflow.mdcasset · 3,883 bytes.cursor/skills/skill-based-architecture/SKILL.mddoc · 1,862 bytes.gitignoreasset · 26 bytes.maintenance-log.yamlasset · 1,703 bytesAGENTS.mddoc · 3,900 bytesCLAUDE.mddoc · 3,784 bytesCODEX.mddoc · 4,091 bytesEXAMPLES.mddoc · 7,795 bytesGEMINI.mddoc · 3,784 bytesLICENSEasset · 1,065 bytesREADME.mddoc · 17,657 bytesREADME.zh-CN.mddoc · 16,222 bytesREFERENCE.mddoc · 7,226 bytesSKILL.mdcore · 13,212 bytesSKILL.mdcore · 13,212 bytesSKILL.mdcore · 13,212 bytesTEMPLATES-GUIDE.mddoc · 11,205 bytesUPSTREAM-CHANGES-archive.mddoc · 222,512 bytesUPSTREAM-CHANGES.mddoc · 18,990 bytesWORKFLOW.mddoc · 12,569 bytesassets/skill-based-architecture-title.pngasset · 3,411 bytesdocs/diagrams/README.mddoc · 7,451 bytesdocs/diagrams/file-call-graph-fixbug.pngasset · 151,607 bytesdocs/diagrams/file-call-graph-fixbug.svgasset · 6,084 bytesdocs/diagrams/progressive-rigor.pngasset · 88,160 bytesdocs/diagrams/progressive-rigor.svgasset · 3,872 bytesdocs/diagrams/routes-to-workflows.pngasset · 124,081 bytesdocs/diagrams/routes-to-workflows.svgasset · 5,119 bytesdocs/diagrams/routing-core.pngasset · 244,956 bytesdocs/diagrams/routing-core.svgasset · 8,419 bytesdocs/diagrams/skill-flow-complete.pngasset · 395,275 bytesdocs/diagrams/skill-flow-complete.svgasset · 13,987 bytesdocs/diagrams/system-panorama.pngasset · 260,186 bytesdocs/diagrams/system-panorama.svgasset · 9,988 bytesdocs/diagrams/upstream-downstream-sync.pngasset · 136,564 bytesdocs/diagrams/upstream-downstream-sync.svgasset · 6,024 bytesdocs/linuxdo-project-introduction.mddoc · 16,532 bytesdocs/plans/2026-05-12-thin-shells-generator.mddoc · 3,688 bytesdocs/plans/2026-05-20-subagent-surface-hints.mddoc · 19,809 bytesdocs/plans/2026-06-24-skeleton-flesh-axis/plan.mddoc · 13,143 bytesdocs/plans/2026-06-24-skeleton-flesh-axis/prd.mddoc · 5,698 bytesdocs/plans/2026-07-09-dynamic-rigor-assembly.mddoc · 13,707 bytesdocs/plans/2026-07-16-business-global-model-and-load-reason/prd.mddoc · 35,643 bytesdocs/plans/2026-07-27-rule-ownership-and-change-fanout/prd.mddoc · 21,922 bytesdocs/plans/2026-07-27-user-confirmed-plan-mainline/prd.mddoc · 7,200 bytesdocs/plans/2026-07-30-evidence-driven-progressive-disclosure/prd.mddoc · 29,191 bytesdocs/plans/2026-07-31-evidence-funnel-code-localization.mddoc · 34,224 bytesdocs/plans/2026-07-31-plan-feature-workflow-redesign/design.mddoc · 18,440 bytesdocs/plans/2026-07-31-plan-feature-workflow-redesign/prd.mddoc · 12,864 bytesdocs/plans/2026-08-03-plan-composition-and-db-artifacts/prd.mddoc · 43,188 bytesdocs/plans/2026-08-03-requirement-semantics-change-contract/prd.mddoc · 40,686 bytesdocs/plans/2026-08-04-default-downstream-simplification/prd.mddoc · 27,827 bytesdocs/plans/2026-08-04-failure-driven-long-term-memory.mddoc · 28,916 bytesdocs/plans/2026-08-04-proactive-workflow-distillation.mddoc · 26,541 bytesdocs/plans/2026-08-05-rule-update-progressive-disclosure/prd.mddoc · 30,957 bytesdocs/plans/2026-08-06-chaos-runtime-context-reduction/prd.mddoc · 75,130 bytesdocs/plans/2026-08-12-bounded-deterministic-execution.mddoc · 27,871 bytesdocs/plans/2026-08-12-requirement-first-planning.mddoc · 18,640 bytesdocs/plans/2026-08-13-requirement-definition-plan-separation/design.mddoc · 16,208 bytesdocs/plans/2026-08-13-requirement-definition-plan-separation/prd.mddoc · 10,336 bytesdocs/plans/README.mddoc · 15,324 bytesdocs/plans/_TEMPLATE.mddoc · 5,854 bytesdocs/sba-bible.mddoc · 21,227 bytesdocs/task-anchor-native-plan.mddoc · 17,073 bytesexamples/behavior-failures.mddoc · 16,803 bytesexamples/simple-repo/COPY-PASTE-INPUT.mddoc · 4,432 bytesexamples/simple-repo/EXPECTED-SHAPE.mddoc · 1,580 bytesexamples/simple-repo/README.mddoc · 2,329 bytesexamples/simple-repo/repo/.cursor/rules/frontend.mdcasset · 839 bytesexamples/simple-repo/repo/AGENTS.mddoc · 1,457 bytesexamples/simple-repo/repo/CLAUDE.mddoc · 920 bytesexamples/simple-repo/repo/README.mddoc · 549 bytesexamples/simple-repo/repo/package.jsonruns · 163 bytesexamples/simple-repo/repo/src/cart.jsruns · 1,032 bytesreferences/README.mddoc · 515 bytesreferences/business-global-model.mddoc · 18,580 bytesreferences/conventions.mddoc · 11,508 bytesreferences/executable-skill-architecture.mddoc · 7,755 bytesreferences/layout.mddoc · 14,463 bytesreferences/multi-skill-routing.mddoc · 13,713 bytesreferences/per-tool-shells.mddoc · 6,876 bytesreferences/permission-model.mddoc · 4,904 bytesreferences/progressive-rigor.mddoc · 10,661 bytesreferences/protocols.mddoc · 27,587 bytesreferences/scenario-testing.mddoc · 6,388 bytesreferences/self-hosting-conformance.yamlasset · 49,500 bytesreferences/self-hosting-routing.yamlasset · 5,017 bytesreferences/self-hosting-shell-base.mddoc · 2,930 bytesreferences/self-hosting-shells.yamlasset · 2,927 bytesreferences/skeleton-flesh-split.mddoc · 15,907 bytesreferences/skill-composition.mddoc · 7,533 bytesreferences/tests-as-spec.mddoc · 6,721 bytesreferences/thin-shells.mddoc · 16,465 bytesscripts/README.mddoc · 13,976 bytesscripts/check-all.shruns · 39,246 bytesscripts/check-live-agent-journey.shruns · 11,239 bytesscripts/check-migration-evidence.shruns · 9,219 bytesscripts/check-self-scenarios.shruns · 87,677 bytesscripts/check-self-shells.shruns · 2,887 bytesscripts/check-template-hooks.shruns · 4,382 bytesscripts/check-upstream-changes.shruns · 3,998 bytesscripts/check-upstream-supersedes.shruns · 2,618 bytesscripts/check-validation-contract.shruns · 100,522 bytesscripts/scaffold-downstream.shruns · 63,716 bytesscripts/skill-assetruns · 19,433 bytesscripts/sync-self-shells.shruns · 10,246 bytesscripts/test.jsruns · 7,731 bytesskill.yamlasset · 2,480 bytestemplates/ANTI-TEMPLATES.mddoc · 11,941 bytestemplates/README.mddoc · 11,384 bytestemplates/hooks/README.mddoc · 3,722 bytestemplates/hooks/SECURITY.mddoc · 2,080 bytestemplates/hooks/hooks-cursor.jsonasset · 904 bytestemplates/hooks/hooks.jsonasset · 921 bytestemplates/hooks/session-startruns · 2,378 bytestemplates/hooks/workflow-stateruns · 2,640 bytestemplates/shells/.cursor/rules/workflow.mdcasset · 3,820 bytestemplates/shells/.cursor/skills/{{NAME}}/SKILL.md.templateasset · 1,919 bytestemplates/shells/.cursor/skills/{{NAME}}/SKILL.single.md.templateasset · 513 bytestemplates/shells/AGENTS.mddoc · 4,244 bytestemplates/shells/CLAUDE.mddoc · 4,409 bytestemplates/shells/CODEX.mddoc · 4,230 bytestemplates/shells/GEMINI.mddoc · 4,231 bytestemplates/shells/single-entry.md.templateasset · 842 bytestemplates/skill/.upstream-syncasset · 472 bytestemplates/skill/SKILL.md.templateasset · 6,207 bytestemplates/skill/SKILL.routed.md.templateasset · 2,000 bytestemplates/skill/SKILL.single.md.templateasset · 2,244 bytestemplates/skill/conformance.yamlasset · 44,620 bytestemplates/skill/protocol-blocks/ambiguous-request-gate.mddoc · 3,213 bytestemplates/skill/protocol-blocks/change-contract.mddoc · 5,085 bytestemplates/skill/protocol-blocks/composite-plan-execution.mddoc · 2,480 bytestemplates/skill/protocol-blocks/external-delivery-verification.mddoc · 4,620 bytestemplates/skill/protocol-blocks/plan-knowledge-closure.mddoc · 3,390 bytestemplates/skill/protocol-blocks/reboot-check.mddoc · 1,958 bytestemplates/skill/protocol-blocks/source-localization.mddoc · 3,379 bytestemplates/skill/protocol-blocks/subagent-contract.mddoc · 2,572 bytestemplates/skill/protocol-blocks/user-decision-drift.mddoc · 2,881 bytestemplates/skill/protocol-blocks/workflow-distillation-proposal.mddoc · 2,021 bytestemplates/skill/references/behavior-failures.mddoc · 2,133 bytestemplates/skill/references/gotchas.mddoc · 1,150 bytestemplates/skill/references/subagent-verification.mddoc · 4,090 bytestemplates/skill/routing.yamlasset · 4,395 bytestemplates/skill/rules/change-discipline.mddoc · 1,687 bytestemplates/skill/rules/coding-standards.mddoc · 508 bytestemplates/skill/rules/project-rules.mddoc · 469 bytestemplates/skill/scripts/audit-orphans.shruns · 5,629 bytestemplates/skill/scripts/check-version-conformance.shruns · 15,109 bytestemplates/skill/scripts/route-health.shruns · 7,139 bytestemplates/skill/scripts/route-reachability.shruns · 7,380 bytestemplates/skill/scripts/smoke-test.shruns · 58,372 bytestemplates/skill/scripts/sync-routing.shruns · 31,244 bytestemplates/skill/scripts/sync-vendor.shruns · 5,749 bytestemplates/skill/scripts/upstream-status.shruns · 5,662 bytestemplates/skill/sync-manifest.yamlasset · 1,467 bytestemplates/skill/workflows/change-managed.mddoc · 5,252 bytestemplates/skill/workflows/define-requirement.mddoc · 7,653 bytestemplates/skill/workflows/edit-templates.mddoc · 3,800 bytestemplates/skill/workflows/fix-bug.mddoc · 9,302 bytestemplates/skill/workflows/invoke-skill.md.exampleasset · 5,416 bytestemplates/skill/workflows/light-task.md.templateasset · 872 bytestemplates/skill/workflows/maintain-docs.mddoc · 20,861 bytestemplates/skill/workflows/plan-feature.mddoc · 9,885 bytestemplates/skill/workflows/plan-large.mddoc · 5,216 bytestemplates/skill/workflows/profile-business-model.md.exampleasset · 14,549 bytestemplates/skill/workflows/profile-project.mddoc · 6,998 bytestemplates/skill/workflows/receiving-review.mddoc · 2,059 bytestemplates/skill/workflows/refactor-fanout.mddoc · 2,240 bytestemplates/skill/workflows/rule-update/business-truth.mddoc · 5,598 bytestemplates/skill/workflows/rule-update/knowledge-reconciliation.mddoc · 3,422 bytestemplates/skill/workflows/rule-update/verified-failure.mddoc · 5,921 bytestemplates/skill/workflows/rule-update/workflow-distillation.mddoc · 3,240 bytestemplates/skill/workflows/subagent-auxiliary.mddoc · 2,383 bytestemplates/skill/workflows/subagent-driven.mddoc · 2,295 bytestemplates/skill/workflows/subagent-orchestration.mddoc · 3,402 bytestemplates/skill/workflows/task-closure.materialized.md.templateasset · 722 bytestemplates/skill/workflows/task-closure.mddoc · 10,745 bytestemplates/skill/workflows/task-execution.materialized.md.templateasset · 2,046 bytestemplates/skill/workflows/task-execution.mddoc · 16,232 bytestemplates/skill/workflows/update-rules.mddoc · 7,827 bytestemplates/skill/workflows/update-upstream.mddoc · 10,090 bytesworkflows/full-migration.mddoc · 19,510 bytesworkflows/upgrade-downstream.mddoc · 5,470 bytes
Read excerpt
# Skill-Based Architecture
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.
## When to Use
- A single `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.
- Recurring tasks need procedures, fitted verification, or reliable completion checks; or the user explicitly requests Skill-based architecture or rule consolidation.
- Skip temporary repos with no durable routing need, teams with a working compact instruction system, and small projects; an explicit SBA request may still materialize a complete direct `SKILL.md` carrier.
## Progressive Rigor
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](references/progressive-rigor.md).