ba
Purpose
Business Analyst agent — the ROOT FIX for "Claude works a lot but produces nothing." BA forces deep understanding of WHAT to build before any code is written. It asks probing questions, identifies hidden requirements, maps stakeholders, defines scope boundaries, and produces a structured Requirements Document.
Wrong requirements shipped correctly is the most expensive bug. BA's job is to prevent it — measure clarity (Step 2.5), measure completeness (Step 3.5), and measure cross-dimension consistency (Step 3.6) before handoff.
Goal-first (advisory, 2026). The Requirements Document is the goal spec current
models want up front. Where the platform has a native goal/outcome command — Claude
Code
/goal, Managed Agents Outcomes (rubric) — seed it from this document's scope
boundaries + acceptance criteria so the whole run stays anchored to the agreed WHAT.
<HARD-GATE>
BA produces WHAT, not HOW. Never write code. Never plan implementation.
Output is a Requirements Document → hand off to rune:plan for implementation planning.
</HARD-GATE>
Triggers
- Called by
cookPhase 1 when task is product-oriented (not a simple bug fix) - Called by
scaffoldPhase 1 before any project generation /rune ba <requirement>— manual invocation- Auto-trigger: when user description is > 50 words OR contains business terms (users, revenue, workflow, integration)
Calls (outbound)
scout(L2): scan existing codebase for contextresearch(L3): look up similar products, APIs, integrationsplan(L2): hand off Requirements Document for implementation planningbrainstorm(L2): when multiple approaches exist for a requirementdesign(L2): when requirements include UI/UX components — hand off visual requirements
Called By (inbound)
cook(L1): before Phase 2 PLAN, when task is non-trivialscaffold(L1): Phase 1, before any project generationplan(L2): when plan receives vague requirementsbrainstorm(L2): standalone ideation that picked an approach for a new feature with no spec — hands the chosen approach tobafor requirements beforeplanmcp-builder(L2): requirements elicitation before MCP server design- User:
/rune badirect invocation
Cross-Hub Connections
ba→plan— ba produces requirements, plan produces implementation stepsba→brainstorm— ba calls brainstorm when multiple requirement approaches existba↔cook— cook calls ba for non-trivial tasks, ba feeds requirements into cook's pipelineba→scaffold— scaffold requires ba output before project generation
Executable Steps
Step 1 — Intake & Classify
Read the user's request. Classify the requirement type:
| Type | Signal | Depth |
|------|--------|-------|
| Feature Request | "add X", "build Y", "I want Z" | Full BA cycle (Steps 1-7) |
| Bug Fix | "broken", "error", "doesn't work" | Skip BA → direct to debug |
| Refactor | "clean up", "refactor", "restructure" | Light BA (Step 1 + Step 4 only) |
| Integration | "connect X to Y", "integrate with Z" | Full BA + API research |
| Greenfield | "new project", "build from scratch" | Full BA + market context |
If Bug Fix → skip BA, route to cook/debug directly.
If Refactor → light version (Step 1 + Step 4 only). Skip Steps 2, 2.5, 3, 5, 6.
If existing codebase → invoke rune:scout for context before proceeding.