/bee:spec-writingfrom bee
Writes specs, acceptance criteria, and slices features into vertical slices. Includes rules for testable ACs, code-in-specs guidelines, and outside-in slicing by user-visible capability.
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.
Each criterion is a single, testable statement. It describes one observable behavior in one sentence.
Good:
- [ ] User can create an account with email and password
- [ ] Shows error when email is already taken
- [ ] Password must be at least 8 characters
- [ ] Sends welcome email after successful signup
Bad:
- [ ] Handle user registration (How? What happens? What does the user see?)
- [ ] The registration feature works correctly (What does "correctly" mean?)
- [ ] Use bcrypt for password hashing with 12 salt rounds (Implementation, not behavior)
The test: Can a developer write a test from this criterion without asking clarifying questions? If yes, it's good. If no, it needs more detail.
Small indicative code is fine when it clarifies intent:
GOOD — API shape:
POST /api/orders
{ userId, items: [{ productId, qty }] }
→ 201 { orderId, total, status }
GOOD — Data structure:
Order: { id, userId, items[], total, status, createdAt }
BAD — Implementation logic:
const order = await db.insert('orders', { ... });
Use code to show contracts and shapes. Never use code to show logic — that's the TDD planner's job.
These principles apply at every size — SMALL, FEATURE, and EPIC. They are not optional techniques for large tasks.
Always slice by user-visible capability, not by technical layer.
Vertical (correct):
Horizontal (wrong):
Why vertical wins:
A good slice is: independently releasable, testable in isolation, small enough for one TDD plan, and delivers user-visible value.
Ordering: Start with the walking skeleton — the thinnest end-to-end path. Each subsequent slice adds capability. Later slices can assume earlier slices work.
Outside-in within each slice: Order ACs from what the user experiences inward — UI behavior first, then API contract, then data. This ensures the spec reads like a user journey, not a technical blueprint.
Not every spec needs the same rigor:
Low risk (internal tool, easy to revert):
Moderate risk (user-facing, business logic):
High risk (payments, auth, data migration):
Explicitly state what you are NOT doing. This prevents scope creep during implementation and gives the AI clear boundaries.
Examples:
Without an explicit out-of-scope list, the AI may build features you didn't ask for.
# Spec: [Feature Name]
## Overview
[1-2 sentences: what and why]
## Acceptance Criteria
- [ ] [Testable behavior]
- [ ] [Error case]
- [ ] [Edge case]
## API Shape (if applicable)
[Indicative code — endpoints, request/response shapes]
## Out of Scope
- [What we're explicitly not doing]
## Technical Context
- Patterns to follow: [from codebase]
- Key dependencies: [existing code this integrates with]
- Risk level: [LOW/MODERATE/HIGH]
# Spec: [Feature Name]
## Overview
[1-2 sentences: what and why]
## Slice 1: [Name — the walking skeleton]
- [ ] [AC]
- [ ] [AC]
## Slice 2: [Name — builds on Slice 1]
- [ ] [AC]
- [ ] [AC]
## Out of Scope
- [What we're explicitly not doing]
## Technical Context
- Patterns to follow: [from codebase]
- Risk level: [LOW/MODERATE/HIGH]
Checkboxes (- [ ]) track progress. Each AC gets checked off [x] when the verifier confirms it has a passing test.
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./architecture-patternsThis skill should be used when evaluating architecture options, checking dependency direction, or deciding between onion, MVC, and simple patterns. Contains YAGNI-based decision criteria./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.npx claudepluginhub incubyte/ai-plugins --plugin beeOther plugins' skills for the same job