Skill-Based Architecture
Make your coding agent follow the project's real rules, business meaning, and definition of done.
SBA turns scattered agent instructions into one routable, verifiable, maintainable project Skill.
SBA is a Skill, not an agent operating system, task database, or execution runtime.
Get started ·
Try the safe demo ·
Read the product principles
English | 中文
Most coding agents can read a rules file. Real repositories ask for more: rules are scattered across tool entry files, business meaning is not identical to current code, the right context changes by task, and a successful command is often only an intermediate state.
SBA gives the Agent a project-level operating contract. The Agent inventories the repository, selects one workflow, loads only evidence that can change the next decision, binds desired meaning to the current code owner, verifies the requested result, and records proven learning only when it will change a future action. Ordinary users keep the decisions that truly belong to them: product meaning, business rules, permissions, and high-cost tradeoffs.
What Changes
| Without SBA | With SBA |
|---|
The same rule is copied across AGENTS.md, CLAUDE.md, Cursor rules, and README notes | Complete meaning has one owner; tool entry files keep only the local hook needed to reach it |
| Every task loads one large instruction file | One task route selects one workflow; later knowledge is pulled only when an unresolved decision needs it |
| The Agent guesses implementation scope from request keywords | User-confirmed meaning and repository evidence are translated into the current code owner and an executable change contract |
| A command, commit, or push is treated as "done" | Completion is checked against the current task's bound deliverables and exact requested terminal state |
| Lessons accumulate as passive documentation | A proven, reusable failure is reconciled into the right owner and connected to the next task that needs it |
When It Fits
Use SBA when one or more of these pressures are real:
- project instructions are duplicated or contradictory across agent entry files;
- a single
SKILL.md has become hard to navigate;
- recurring tasks need procedures, fitted verification, or reliable completion checks;
- costly failures keep being rediscovered because the lesson is stored but never activated;
- several harnesses need the same project knowledge without maintaining several rule systems.
Small projects should stay small. Quick Start now derives a direct, folder, or broad downstream shape from the target repository's evidence. A full migration workflow remains available when the admitted work needs deeper analysis; ordinary users do not select tiers, profiles, capability packs, or installation modes.
SBA is usually unnecessary for a temporary repository, a project with fewer than three small rule/document files, or a team that already has a compact, reliable instruction system and does not want to migrate. See Progressive Rigor for the growth model.
Quick Start
1. Make SBA available to your Agent
Claude Code: install with two commands.
/plugin marketplace add WoJiSama/skill-based-architecture
/plugin install skill-based-architecture@skill-based-architecture
Use /plugin marketplace update when you want the latest marketplace version.
Cursor, Codex, Gemini, Windsurf, OpenCode, or another file-aware harness: clone it next to the target project.
git clone https://github.com/WoJiSama/skill-based-architecture.git \
../skill-based-architecture
The exact location is not part of the product contract. The Agent only needs read access and an explicit path when its harness does not discover the Skill automatically. Tool-specific entry options live in Per-tool shells.
2. Ask for the result in ordinary language