ba-spec

ba-spec is a skill for Claude Code from hiepdnh/Agentic-Development-Lifecycle. It costs 69 tokens per session (1,186 once invoked), scanned A, original, MIT.

A business-analysis workflow that turns raw requests, such as emails, meeting notes, or tickets, into a structured requirements document.

In plain words
What is it for?
It identifies stakeholders, the problem, scope, and involved users or systems, then writes a requirements document after clarification.
Why use it?
It exposes unclear scope, missing business rules, actors, constraints, and integration needs before development starts.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Part of the agentic-development-lifecycle plugin — 35 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/hiepdnh/agentic-development-lifecycle/ba-spec
Any agent
npx skills add hiepdnh/Agentic-Development-Lifecycle --skill ba-spec
Clone the repo
git clone --depth 1 https://github.com/hiepdnh/Agentic-Development-Lifecycle

Made for: Claude Code.

Or install agentic-development-lifecycle, the plugin that ships this one along with the rest of its 35 skills.

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-spec

README.md
[![agentmods](https://agentmods.dev/badge/skills/hiepdnh/agentic-development-lifecycle/ba-spec.svg)](https://agentmods.dev/skills/hiepdnh/agentic-development-lifecycle/ba-spec)
Your own site
<a href="https://agentmods.dev/skills/hiepdnh/agentic-development-lifecycle/ba-spec"><img src="https://agentmods.dev/badge/skills/hiepdnh/agentic-development-lifecycle/ba-spec.svg" alt="Measured on agentmods" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,186 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00069 $0.01186
Opus 5 $0.00034 $0.00593
Sonnet 5 $0.00014 $0.00237
Haiku 4.5 $0.00007 $0.00119

Measured 5d ago against content hash e16eb310e476, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

ba-spec 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 5d 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.

.claude/skills/ba-spec/SKILL.md · 101 lines

How it starts

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

Skill: /ba-spec

Role: Business Analyst
Mục đích: Chuyển đổi yêu cầu thô (raw requirement) thành tài liệu đặc tả nghiệp vụ có cấu trúc.


Hướng dẫn thực hiện

Bước 1 — Đọc và phân tích input

Nhận input từ người dùng (email, meeting notes, verbal description, Jira ticket...). Phân tích để xác định:

  • Stakeholder chính
  • Vấn đề cần giải quyết (problem statement)
  • Phạm vi (scope)
  • Các actor liên quan
  • Điều kiện ràng buộc đã biết

Bước 2 — Gate: Trình bày hiểu biết ban đầu + Hỏi làm rõ

Trình bày theo format:

## Tôi hiểu yêu cầu như sau:

**Vấn đề cần giải quyết**: [...]
**Stakeholder chính**: [...]
**Phạm vi sơ bộ**: [...]
**Các actor**: [...]

## Trước khi tôi soạn spec, tôi cần làm rõ:

| # | Câu hỏi | Lựa chọn |
|---|---------|---------|
| 1 | [Câu hỏi về business rule chưa rõ] | _(điền vào)_ |
| 2 | [Câu hỏi về edge case hoặc exception] | _(điền vào)_ |
| 3 | [Câu hỏi về tích hợp với hệ thống khác nếu có] | A: Có tích hợp — mô tả: ___ / B: Không / C: Khác: ___ |

Chờ human trả lời trước khi tiếp tục.

Bước 3 — Soạn Specification Document

Sau khi nhận câu trả lời, tạo docs/tasks/[TASK-ID]/requirements.md dùng template templates/task-doc-requirements.md.

Frontmatter: điền sessionId (định dạng TASK-ID-YYYYMMDD-HHMM), createdAt, updatedAt, roundCount: 1.

Điền đầy đủ:

  • Section 1-3: Context, mục tiêu, phạm vi
  • Section 4-5: Actors + Business Rules (BR phải có ID để tham chiếu)
  • Section 6-7: Happy path + alternative flows
  • Section 8: Acceptance Criteria — mỗi AC phải testable (Given/When/Then nếu cần)
  • Section 9: NFR nếu có performance/security requirements
  • Section 10: User Stories — chỉ điền skeleton (ID + tên + priority); chi tiết AC sẽ do /ba-user-story mở rộng
  • Section 11: Câu hỏi mở còn lại (không tự answer nếu không chắc)
  • Section 12: Harness Delta — đánh dấu "Không có friction" hoặc log entry cụ thể
  • Section 13: Q&A History — ghi entry "Round 1" với toàn bộ câu hỏi/đáp ở Bước 2, kèm Impact chỉ rõ section/BR/AC nào bị ảnh hưởng bởi mỗi answer

Read the full file on GitHub · 101 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 101 lines · 69 tokens per session scan A e16eb310e476

Subscribe to this mod's changes

ba-spec is a skill published in the GitHub repository hiepdnh/Agentic-Development-Lifecycle (6 stars, last pushed 8d ago), licensed MIT. It adds 69 tokens to every session and 1,186 once invoked, about $0.0003 per session on Opus 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-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens