/bee:ai-workflowfrom bee
Explains spec-first TDD workflow for AI development: specs, tests, vertical slicing, risk assessment. Activates when teaching mode is on or explaining Bee's ordering.
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.
The #1 reason AI-generated code misses the mark is ambiguous requirements. "Add authentication" forces the AI to guess 100 decisions — session vs JWT, cookie vs header, redirect vs 401, password rules, lockout policy. Each guess compounds.
A spec with clear acceptance criteria eliminates guessing. The AI gets unambiguous targets and nails them on the first pass.
The tradeoff: 10 minutes writing a spec saves hours of rework. Without a spec, you'll spend that time anyway — just spread across debugging, re-prompting, and rewriting.
AI doesn't know when it's finished. It will keep generating code until you stop it. Tests give it a concrete finish line.
A failing test is the clearest possible prompt: "Make this pass." The AI doesn't need to interpret requirements — the test IS the requirement in executable form.
Red-green-refactor with AI:
AI works best with focused, bounded tasks. A vertical slice (UI + backend + data for one capability) gives the AI everything it needs to deliver something complete and testable.
Horizontal slicing (all database tables, then all APIs, then all UI) forces the AI to build things it can't test in isolation. Each layer depends on layers that don't exist yet.
Vertical slice benefits:
Low-risk code (internal tool, easy to revert) doesn't need the same rigor as high-risk code (payment flow, auth, data migration). Applying the same process to both wastes time on low-risk tasks and under-serves high-risk ones.
Risk-aware workflow means:
Not every task needs a spec. Not every change needs TDD. The workflow should match the task:
The right amount of process is the minimum needed to produce correct, maintainable code. More process than needed is waste. Less process than needed is risk.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub incubyte/ai-plugins --plugin bee21 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./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.Other plugins' skills for the same job