rune-kit/rune/ba

Claude Code and agent skill by rune-kit/rune

Trust tier 1
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Business Analyst agent. Use when starting a new feature requiring requirements elicitation BEFORE plan or cook. Asks probing questions, identifies hidden requirements, maps stakeholders, defines scope boundaries, and produces a structured Requirements Document that plan and cook consume.

Install

npx vskill@latest install rune-kit/rune/ba

SKILL.md

The same SKILL.md was published earlier as rune-kit/rune/ba.

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 cook Phase 1 when task is product-oriented (not a simple bug fix)
  • Called by scaffold Phase 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 context
  • research (L3): look up similar products, APIs, integrations
  • plan (L2): hand off Requirements Document for implementation planning
  • brainstorm (L2): when multiple approaches exist for a requirement
  • design (L2): when requirements include UI/UX components — hand off visual requirements

Called By (inbound)

  • cook (L1): before Phase 2 PLAN, when task is non-trivial
  • scaffold (L1): Phase 1, before any project generation
  • plan (L2): when plan receives vague requirements
  • brainstorm (L2): standalone ideation that picked an approach for a new feature with no spec — hands the chosen approach to ba for requirements before plan
  • mcp-builder (L2): requirements elicitation before MCP server design
  • User: /rune ba direct invocation

Cross-Hub Connections

  • ba → plan — ba produces requirements, plan produces implementation steps
  • ba → brainstorm — ba calls brainstorm when multiple requirement approaches exist
  • ba ↔ cook — cook calls ba for non-trivial tasks, ba feeds requirements into cook's pipeline
  • ba → scaffold — scaffold requires ba output before project generation

Executable Steps

Step 1 — Intake & Classify

Read the user's request. Classify the requirement type:

TypeSignalDepth
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.

Step 1.4 — Synthesis Trigger Check
Full detail moved to `references/synthesis-trigger.md` (progressive disclosure). Read that file before executing this section.
Step 1.5 — Out-of-Scope Match Check (READ)

Before any elicitation, check whether the request matches a concept previously rejected.

  1. Glob .out-of-scope/*.md — if directory absent, skip silently.
  2. For each file, parse YAML frontmatter (concept, aliases).
  3. Build a token map (lowercased, split on - and whitespace).
  4. Tokenize the user's request the same way.
  5. Compute lexical overlap per concept; keep the top match's confidence (0.0–1.0).

Action by confidence:

ConfidenceVerdictAction
≥ 0.8exact-matchSurface to user: "This matches a prior rejection (`.out-of-scope/<slug>.md`) — closed because [body's "Why out of scope" first sentence]. Do you still feel the same way?" Pause for user response before continuing.
0.5 – 0.79similarMention inline: "This is similar to a prior rejection (`<slug>`). Would you like to review it before we proceed?" Continue regardless of answer.
< 0.5no-matchContinue silently, no user-facing mention.

Emit outofscope.match signal with {concept, confidence, verdict} so downstream skills (cook, plan) inherit the context.

If verdict is exact-match AND user says "yes I still want it" → record their override reason in the Requirements Document ## Risks section AND mark priority_to_revisit: high in the existing .out-of-scope/<slug>.md (do NOT delete the file). The override forces the candidate up the revisit ladder; it doesn't erase the prior decision.

If verdict is exact-match AND user accepts the prior rejection → end the BA session with a one-line summary referencing the file. No further questions.

Format reference: references/out-of-scope-format.md.

Step 1.6 — Mid-Elicitation Reject WRITE Path
Full detail moved to `references/reject-write-path.md` (progressive disclosure). Read that file before executing this section.

<HARD-GATE> Mid-elicitation rejection MUST produce a .out-of-scope/<slug>.md file before session end. A rejection without a written record is a rejection that didn't happen. </HARD-GATE>

Step 2.0 — Explore-First Pre-Check (HARD-GATE)

Before emitting ANY of the 5 elicitation questions, run the 4-item pre-check on each intended question:

  1. Is the answer in package.json / pyproject.toml / Cargo.toml / go.mod / pom.xml?
  2. Is the answer in README.md / CLAUDE.md / docs/?
  3. Is it inferable from file extensions, directory structure, or config files?
  4. Has the user answered it earlier in this conversation?

<HARD-GATE> For every question Q the agent intends to ask, there MUST be prior tool-call evidence in the same session:

  • At least 1 Read / Glob / Grep related to Q's domain, OR
  • Explicit declaration: "Q cannot be answered from project artifacts because [specific reason]."

Without one of these, Q is BLOCKED — re-route to inference. </HARD-GATE>

The gate is "tried to infer" — not "must succeed in inferring." If the file genuinely doesn't have the answer, the attempt itself is the gate.

Cache inferred answers in the requirements doc:

**Inferred from package.json**: TypeScript 5.4, Next.js 14.2, React 18.3
**Inferred from .github/workflows/**: CI runs on PRs targeting main

Worked examples + edge cases: references/explore-first.md.

Step 2 — Requirement Elicitation (the "5 Questions")

Ask exactly 5 probing questions, ONE AT A TIME (not all at once):

  1. WHO — "Who is the end user? What's their technical level? What are they doing right before and after using this feature?"
  2. WHAT — "What specific outcome do they need? What does 'done' look like from the user's perspective?"
  3. WHY — "Why do they need this? What problem does this solve? What happens if we don't build it?"
  4. BOUNDARIES — "What should this NOT do? What's explicitly out of scope?"
  5. CONSTRAINTS — "Any technical constraints? (existing APIs, performance requirements, security needs, deadlines)"

<HARD-GATE> Do NOT skip questions. Do NOT answer your own questions. If user says "just build it" → respond with: "I'll build it better with 2 minutes of context. Question 1: [WHO]" Each question must be asked separately, wait for answer before next. Exception: if user provides a detailed spec/PRD → extract answers from it, confirm with user. </HARD-GATE>

Question Discipline (MANDATORY)

Every question the user answers burns attention you don't get back. Protect it.

  1. Max 5 questions total across the whole BA session. If you find yourself wanting a 6th, the answer is in the first 5 or you're stalling — re-read, don't re-ask.
  2. Prefer yes/no or multiple-choice over open-ended. An open-ended question is a last resort when no reasonable option set exists.
  • BAD: "What auth strategy do you want?"
  • GOOD: "Auth: (a) email+password with JWT, (b) OAuth (Google/GitHub), (c) magic link, (d) I'll decide — pick one."
  1. Never ask what you can infer. If the answer is in the repo, the user's message, or the classification from Step 1 — don't ask it.
  • Wrong stack? → read package.json, don't ask.
  • Wrong audience? → check the README, don't ask.
  • Wrong framework? → check config files, don't ask.
  1. Cache the answer. Write each Q→A pair into the Requirements Document verbatim. If the user restarts the BA session on the same feature, reuse the cached answers — never re-ask what was already answered.
  2. Bundle yes/no questions after Q1 if the user is concise. A user who replies "y" / "n" / "skip" in 1-2 words tolerates a bundle. A user who replies with paragraphs wants the slow pace — keep one-at-a-time.

Every Q should earn its slot: removing it must leave the Requirements Document materially worse. If it wouldn't, cut the question.

Structured Elicitation Frameworks
Full detail moved to `references/elicitation-frameworks.md` (progressive disclosure). Read that file before executing this section.
Step 2.5 — Ambiguity Scoring (Execution Gate)

After each question round, compute an Ambiguity Score to determine if requirements are clear enough to proceed. This prevents premature handoff to plan with vague inputs.

Scoring Formula
Full detail moved to `references/ambiguity-scoring.md` (progressive disclosure). Read that file before executing this section.
Dimension Scoring (0.0 – 1.0)
Full detail moved to `references/ambiguity-scoring.md` (progressive disclosure). Read that file before executing this section.
Threshold Gate
AmbiguityLevelAction
< 15%Crystal ClearProceed to Step 3 immediately
15-25%AcceptableProceed with noted assumptions — flag gaps in Requirements Doc
25-40%UnclearAsk 1-2 targeted follow-up questions on weakest dimension
> 40%BlockedDo NOT proceed. Re-ask the weakest dimension question with examples

<HARD-GATE> NEVER hand off to plan with Ambiguity > 40%. If user insists "just build it" at > 40%, respond: "Ambiguity is [X]% — the weakest area is [dimension]. One more answer cuts this in half: [targeted question]" </HARD-GATE>

Scoring After Each Question
Full detail moved to `references/ambiguity-scoring.md` (progressive disclosure). Read that file before executing this section.
Display Format
Full detail moved to `references/ambiguity-scoring.md` (progressive disclosure). Read that file before executing this section.
Step 2.6 — CONTEXT.md Cross-Reference Gate

After elicitation, before hidden-requirement discovery, scan the user's answers for assertions about current behavior — phrasings like "the system X", "the code does X", "we already X", "right now it X".

For each such assertion:

  1. Grep the codebase for evidence (function names, route handlers, schema definitions matching the asserted behavior).
  2. Compare grep results to the user's claim.

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassedPattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
77
Repository forks
21
Repository npm downloads, 30 days
548
7-day trend score
34

Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 4 Jul 2026, 4 months ago.

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/rune-kit/rune/ba/badge)](https://verified-skill.com/skills/rune-kit/rune/ba)

Something wrong with this skill or its page? Tell us.