PB

phong-baruby/ba-skills

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

10 stars 质量 49 趋势 18MIT

Stop writing 100-page SRS nobody reads. Claude Code skills that interview, structure, and logic-verify your requirements — then output specs AI can actually implement.

概览

A collection of Claude Code SKILL.md files for Business Analysis workflows. Designed to turn vague feature ideas into structured, logic-verified specs — ready for AI coding agents to implement. Drop the skill file into your Claude Code project: Then in your CLAUDE.md (or claude.md), add: Trigger bằng cách nói tự nhiên với Claude Code: Claude sẽ tự động: 1. — hỏi làm rõ yêu cầu (WHO, WHAT, FLOW, EDGE CASES) theo từng round, không dump câu hỏi 2. — điền vào Use Case template chuẩn (Actors, Pre/Postconditions, Main Flow, Alternate Flows, Exception Flows, Business Rules) 3. — tự rà logic: precondition có được enforce không, exception có handle đủ business rule không, state machine có orphan state không 4. — tạo 3 files: - UC-XXX-feature-name.md — Use Case document - UC-XXX-feature-name.mermaid — Sequence diagram + State machine - UC-XXX-feature-name-tasks.md — Task breakdown cho AI coding agent Claude sẽ: 1. — phỏng vấn Socratic để lộ requirements ẩn 2.

README

以下为原文 README 节选,完整内容请查看原文。

ba-skills

A collection of Claude Code SKILL.md files for Business Analysis workflows. Designed to turn vague feature ideas into structured, logic-verified specs — ready for AI coding agents to implement.


Skills

Skill Trigger What it does
srs-agent “spec cho…”, “mình cần feature…”, “đặc tả…” Interview → Use Case doc + Mermaid diagram + task breakdown
brd-agent “viết BRD”, “phân tích yêu cầu”, “stakeholder muốn…” Elicit requirements → BRD + gap analysis AS-IS/TO-BE

How to install

Option 1 — Project-level (recommended)

Drop the skill file into your Claude Code project:

# Clone this repo
git clone https://github.com/phong-baruby/ba-skills.git

# Copy the skill(s) you want into your project
cp ba-skills/skills/srs-agent/SKILL.md your-project/.claude/skills/srs-agent/SKILL.md

Then in your CLAUDE.md (or claude.md), add:

## Skills
- .claude/skills/srs-agent/SKILL.md — BA spec workflow
- .claude/skills/brd-agent/SKILL.md — BRD workflow

Option 2 — Global (applies to all projects)

cp ba-skills/skills/srs-agent/SKILL.md ~/.claude/skills/srs-agent/SKILL.md

How to use

SRS Agent — Use Case spec

Trigger bằng cách nói tự nhiên với Claude Code:

"mình cần tính năng cho phép khách đổi hàng sau khi nhận"
"spec cho flow thanh toán COD"
"feature này làm gì: user tạo trade-in request..."

Claude sẽ tự động:

  1. Interview — hỏi làm rõ yêu cầu (WHO, WHAT, FLOW, EDGE CASES) theo từng round, không dump câu hỏi
  2. Structure — điền vào Use Case template chuẩn (Actors, Pre/Postconditions, Main Flow, Alternate Flows, Exception Flows, Business Rules)
  3. Verify — tự rà logic: precondition có được enforce không, exception có handle đủ business rule không, state machine có orphan state không
  4. Output — tạo 3 files:
    • UC-XXX-feature-name.md — Use Case document
    • UC-XXX-feature-name.mermaid — Sequence diagram + State machine
    • UC-XXX-feature-name-tasks.md — Task breakdown cho AI coding agent

Sample output structure:

docs/specs/
├── UC-001-return-request.md
├── UC-001-return-request.mermaid
└── UC-001-return-request-tasks.md

BRD Agent — Business Requirements Document

Trigger:

"viết BRD cho dự án X"
"phân tích yêu cầu từ stakeholder"
"cần tài liệu cho management review"

Claude sẽ:

  1. Elicit — phỏng vấn Socratic để lộ requirements ẩn
  2. AS-IS / TO-BE analysis — gap analysis trạng thái hiện tại vs mục tiêu
  3. Output — BRD chuẩn Markdown + Mermaid diagram

Why SKILL.md instead of a plain prompt?

Plain prompts chạy một lần rồi thôi. SKILL.md được Claude Code load vào context của từng session, hoạt động như một persistent workflow — Claude biết khi nào trigger, chạy phases theo thứ tự, và nhớ format output chuẩn mà không cần nhắc lại mỗi lần.


Philosophy

在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add phong-baruby/ba-skills
新手?先看 mcpskill.org 教程 →