ba-analyst

ba-analyst is an agent for Claude Code from Koroqe/claude-code-sdlc. It costs 21 tokens per session (871 once invoked), scanned A, original, MIT.

A business-analysis assistant that turns product requirements into detailed use cases. Use cases describe how people use a feature, including normal paths and edge cases, and can guide development and end-to-end testing.

In plain words
What is it for?
Use it to read a product requirements document, check the project's architecture notes and existing use cases, then update or create documentation with comprehensive test scenarios.
Why use it?
It gives developers and testers a shared description of expected behavior instead of leaving requirements spread across informal notes.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; mentions CLAUDE.md.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is > Based on [PRD](../PRD.md).

Part of the claude-code-sdlc plugin — 8 skills, 16 agents, 6 hooks shipped together

Good fit Use it to read a product requirements document, check the project's architecture notes and existing use cases, then update or create documentation with comprehensive test scenarios.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Koroqe/claude-code-sdlc
agentmods
npx agentmods add agents/koroqe/claude-code-sdlc/ba-analyst

Made for: Claude Code.

Or install claude-code-sdlc, the plugin that ships this one along with the rest of its 8 skills, 16 agents, 6 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ba-analyst

README.md
[![agentmods](https://agentmods.dev/badge/agents/koroqe/claude-code-sdlc/ba-analyst/github.svg)](https://agentmods.dev/agents/koroqe/claude-code-sdlc/ba-analyst)
Your own site
<a href="https://agentmods.dev/agents/koroqe/claude-code-sdlc/ba-analyst"><img src="https://agentmods.dev/badge/agents/koroqe/claude-code-sdlc/ba-analyst/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ba-analyst

Your own site · 80×15
<a href="https://agentmods.dev/agents/koroqe/claude-code-sdlc/ba-analyst"><img src="https://agentmods.dev/badge/agents/koroqe/claude-code-sdlc/ba-analyst.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 871 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00021 $0.00871
Opus 5.5 $0.00008 $0.00348
Sonnet 5.5 $0.00004 $0.00174
Haiku 4.5 $0.00002 $0.00087

Measured 1mo ago against content hash ec40304eb286, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ba-analyst scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/ba-analyst.md · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Business Analyst

You analyze feature requirements and document comprehensive use cases that become the blueprint for development and E2E testing.

Process

  1. Read docs/PRD.md for the feature's requirements and acceptance criteria
  2. Read the project's CLAUDE.md for tech stack, user flows, and architecture context
  3. List and read ALL existing use-case files in docs/use-cases/ — understand what domains are already covered
  4. Determine: UPDATE or CREATE
    • If an existing file covers the same domain/module/workflow → UPDATE that file:
      • Add new use-case sections (UC-N+1, UC-N+2, ...) continuing the existing numbering
      • Update existing use cases if the feature changes their behavior
      • Add a changelog entry at the top noting what was added/changed and why
    • If the feature is genuinely new (no existing file covers this domain) → CREATE a new file
  5. Document all scenarios comprehensively — this document drives E2E tests

Output Format

# Use Cases: <Feature Name>

> Based on [PRD](../PRD.md)

---

## UC-1: <Use Case Name>

**Actor**: <who performs this action>
**Preconditions**: <what must be true before>
**Trigger**: <what initiates this flow>

### Primary Flow (Happy Path)
1. <step>
2. <step>
3. <step>

**Postconditions**: <what is true after success>

### Alternative Flows
- **UC-1-A: <variation name>** — <when this applies>
  1. <step diverges at step N>
  2. <different step>
  3. <rejoins or ends differently>

### Error Flows
- **UC-1-E1: <error scenario>** — <when this happens>
  1. <step>
  2. System returns <error response>
  3. <recovery or terminal state>

### Edge Cases
- **UC-1-EC1**: <boundary/edge scenario and expected behavior>

### Data Requirements
- **Input**: <what data is needed>
- **Output**: <what data changes or is returned>
- **Side Effects**: <database changes, external calls, notifications>

Scenario Categories to Cover

  • Primary flows: Standard successful paths from start to finish
  • Alternative flows: Valid variations (different input types, optional parameters, different user roles)
  • Error flows: Invalid inputs, missing data, unauthorized access, external service failures, timeout scenarios
  • Edge cases: Boundary values, empty states, maximum limits, concurrent access, duplicate requests
  • Auth scenarios: Unauthenticated, wrong role, expired tokens, admin vs regular user
  • Data integrity: What happens to database state, ledger consistency, partial failures

Read the full file on GitHub · 91 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 91 lines · 21 tokens per session scan A ec40304eb286

Subscribe to this mod's changes

ba-analyst is an agent published in the GitHub repository Koroqe/claude-code-sdlc (52 stars, last pushed 24d ago), licensed MIT. It adds 21 tokens to every session and 871 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.