analyze_requirement_document

A command for analyzing requirement documents such as Jira tickets, Word files, PDFs, spreadsheets, CSVs, XML, and user stories. It produces a detailed analysis without creating test cases.

In plain words
What is it for?
Use it to extract and organize requirements, assign requirement or ambiguity identifiers, compare information across documents, and record unresolved questions.
Why use it?
It helps expose missing details, conflicting statements, and risks before development begins.

Command for Claude Code

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 commands/anhtester/claude-testing-kit/analyze_requirement_document
Clone the repo
git clone --depth 1 https://github.com/anhtester/claude-testing-kit

Made for: Claude Code.

Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,635 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 $0.00041 $0.05635
Opus 5 $0.00020 $0.02818
Sonnet 5 $0.00008 $0.01127
Haiku 4.5 $0.00004 $0.00564

Measured 2d ago against content hash 8ca4a218a0f3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

analyze_requirement_document 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 2d 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/commands/analyze_requirement_document.md · 324 lines

How it starts

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

BẮT BUỘC (MANDATORY SKILL): Bạn PHẢI nạp skill skills-requirements-analyzer (tại .claude/skills/skills-requirements-analyzer/SKILL.md) trước khi bắt đầu. Workflow này chạy nhánh Document Analysis, chỉ dùng các mục sau của skill:

Mục skill Dùng để
2 + 2.1 Quy ước đánh mã REQ/AMB/RISK + quy tắc nối tiếp mã giữa các đợt
3.2 Quy trình trích xuất từ tài liệu (đọc file, đối chiếu chéo, xử lý tài liệu thiếu)
4 Framework phát hiện Ambiguity & Risk
5 Quy tắc quy mô/tách file
7.1 + 7.3 Strict rules chung + strict rules riêng nhánh tài liệu

KHÔNG dùng mục 3.1 (UI Recon) và mục 6 (cấu trúc tài liệu đặc tả module) — workflow này có template riêng ở phần "Cấu trúc Output" bên dưới.

Workflow: Phân Tích Requirement Document

Workflow này phân tích requirement documents (Jira tickets, .doc files, user stories, design mockups) và sinh ra một tài liệu phân tích chi tiết. KHÔNG sinh test cases — chỉ tập trung vào hiểu, phân rã, và phát hiện rủi ro/mơ hồ trong yêu cầu.

Khi nào sử dụng

  • User cung cấp Jira ticket hoặc requirement document (.doc, .docx, .pdf, .xlsx, .csv, .xml, .md) và yêu cầu "phân tích"
  • User đã có sẵn bộ file đặc tả (tài liệu + file bảng field + mockup) và muốn tổng hợp thành một tài liệu phân tích
  • User muốn hiểu rõ scope, acceptance criteria, và dependencies trước khi viết test
  • User cần danh sách các điểm mơ hồ (ambiguities) để clarify với PO/BA
  • User nói: "phân tích requirement", "review yêu cầu", "analyze this ticket"

KHÔNG dùng workflow này khi nguồn sự thật là hệ thống đang chạy (không có tài liệu) → dùng /generate_requirements_from_website.

Đầu vào (Input)

Agent cần thu thập từ user:

# Input Bắt buộc Mô tả
1 Requirement document Xem bảng định dạng bên dưới
2 Mockup/Screenshot ⭕ Khuyến khích Hình ảnh UI design, wireframe, hoặc screenshot hiện tại
3 Related tickets ⭕ Tùy chọn Các ticket phụ thuộc hoặc liên quan (dependencies)
4 File bảng đính kèm ⭕ Rất giá trị .xlsx/.csv chứa danh sách field, message lỗi, ma trận phân quyền/trạng thái
5 Context bổ sung ⭕ Tùy chọn Thông tin về hệ thống hiện tại, business domain

Read the full file on GitHub · 324 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. 2d ago First seen · 324 lines · 41 tokens per session scan A 8ca4a218a0f3

Subscribe to this mod's changes

analyze_requirement_document is a command published in the GitHub repository anhtester/claude-testing-kit (49 stars, last pushed 24d ago), licensed MIT. It adds 41 tokens to every session and 5,635 once invoked, about $0.0002 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-30.