grammy-jiang/subagent-factory/boundary-and-layering-review
Claude Code and agent skill by grammy-jiang/subagent-factory
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install grammy-jiang/subagent-factory/boundary-and-layering-reviewSKILL.md
The same SKILL.md was published earlier as majiayu000/claude-skill-registry-data/boundary-and-layering-review.
Boundary and layering review
Purpose
Keep details at the edges as plugins behind boundaries. The database, the web, and frameworks are details: the architecture should place them outside boundaries so business rules do not depend on a particular database engine, delivery mechanism, or third-party framework — and so decisions about those details can be deferred or changed. This skill reviews where infrastructure choices sit relative to the business rules and where a boundary is missing.
When to use
- A design couples core business rules to a specific database, framework, or delivery mechanism.
- The caller asks where infrastructure choices belong in the architecture.
- A framework upgrade or database swap would force changes deep in the business rules.
Do not invoke when the system is intentionally a thin adapter around one vendor with no independent policy.
Procedure
- Locate the business rules. Identify the durable policy the system exists to enforce —
the part that should outlive any particular framework or store.
- Locate the details. Identify the database, web/delivery mechanism, and frameworks. These
are details, not the architecture.
- Check for a boundary between them. Look for an abstraction (port/interface, gateway,
repository) that the business rules use, behind which the detail is a replaceable plugin. Its absence is the finding.
- Flag a framework marriage. If business rules import framework types or inherit framework
base classes throughout, flag that the durable rules are now coupled to a third party's volatile decisions; recommend keeping the framework at arm's length behind a boundary.
- Flag a database leak. If business rules embed schema, SQL, or ORM specifics, flag that the
store is no longer a plugin; recommend isolating it behind the boundary so the engine/schema can change.
- State the trade-off and what it defers. Note that the added boundary/indirection buys
independence from engine, delivery, and framework churn and lets those decisions be deferred — and that the cost is the indirection itself. Tie the recommendation to the characteristics the system actually prioritizes.
Inputs
- The design or code under review, showing where business rules sit relative to the database,
delivery mechanism, and frameworks.
Output
A findings list of missing or violated boundaries (framework marriage, database leak, delivery coupling), each with the coupling consequence, the boundary/plugin to introduce, and the trade-off the indirection carries.
References
details-as-plugins and the boundary checklist.
Provenance
Distilled from principle(s) P033/P022, claims C00957/C00958/C01215/C01216, evidence E00193/E00194/E00225/E00226, anchored in the cited architecture sources (sources/anchors/). Source is distillation-only: content is paraphrased, never quoted verbatim.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsubagents/software-architecture/skills/boundary-and-layering-review/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/grammy-jiang/subagent-factory/boundary-and-layering-review)