/bee:architecture-patternsfrom bee
Evaluates architecture options, enforces dependency direction rules, and provides YAGNI-based decision criteria for choosing between Simple, MVC, and Onion patterns.
Ships in bee. 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.
Use when: Scripts, utilities, CLI tools, small services with minimal business logic, CRUD with no rules beyond validation.
Structure: Functions or modules organized by feature. No layers, no ports.
Tradeoff: Fastest to build. Hardest to extend if complexity grows. Refactor to layers when it hurts, not before.
Use when: Web apps, APIs, most CRUD-heavy applications. The default for Rails, Django, Express, Spring.
Structure: Route -> Controller (thin, delegates) -> Service (business logic) -> Model/Repository (data).
Dependency direction: Controller depends on Service, Service depends on Model. Never the reverse.
Tradeoff: Familiar, well-tooled, lots of examples. Services can grow large as business logic gets complex. At that point, consider extracting a domain layer.
Use when: Complex domain logic with many business rules. Multiple input channels (HTTP, CLI, events). Need to swap infrastructure (different DB, different API provider).
Structure: Pure domain core (zero external dependencies) -> Use cases (orchestration) -> Adapters (HTTP, DB, messaging).
Dependency direction: Everything points inward. Outer layers depend on inner layers. Inner layers know nothing about outer layers. Ports (interfaces) define the boundaries.
Tradeoff: More structure upfront. Trivially testable domain. Worth it when business rules are complex. Overkill for simple CRUD.
The cardinal rule: inner layers never import from outer layers.
Violations of this rule create coupling that makes testing hard and changes expensive.
You Aren't Gonna Need It. Before creating any abstraction, ask:
The rule: Extract an interface when the second implementation arrives. Not before.
Why this matters for AI: AI loves generating interfaces, abstract factories, and strategy patterns. It will create IUserRepository, UserRepositoryImpl, UserRepositoryFactory for a single Postgres query. Push back. Use the concrete class. Extract when you need to.
Warranted abstractions:
Unwarranted abstractions:
What SKILL.md sets; muted values are Claude Code's defaults
21 skills in this plugin
/ai-ergonomicsThis skill should be used when evaluating how well code supports LLM-assisted development. Contains context window friendliness, explicitness, module boundaries, test-as-spec, and naming criteria./ai-workflowThis skill should be used when explaining why Bee follows spec-first TDD workflows, or when teaching mode is on. Contains the reasoning behind spec → plan → test → code ordering./bee-stateThis skill should be used when updating workflow state in bee-state.local.md. Contains the full command reference for update-bee-state.sh including init, set, get, clear, all flags, and multi-line field syntax./boundary-generationThis skill should be used after discovery completes on a greenfield project when the discovery document contains a Module Structure section. Contains the full procedure for parsing module boundaries, generating BOUNDARIES.md, and optionally linking it from CLAUDE.md./brainstormingThis skill should be used when the user wants to brainstorm, explore ideas, think through options, says 'let's brainstorm', 'what are our options', 'how might we', 'what if we', 'help me think through', 'explore approaches', or presents an open-ended problem without a clear solution. Covers cross-domain thinking where changing one dimension (product, tech, UX) can simplify another./browser-testingThis skill should be used when running browser-based verification. Supports two providers: Claude-in-Chrome (primary) and chrome-devtools-mcp (fallback). Contains tool reference, dev server detection, screenshot conventions, and graceful degradation.npx claudepluginhub incubyte/ai-plugins --plugin beeOther plugins' skills for the same job