prd
Skill0 starsChanged 3 months agoMITView on GitHub
BA Agent — Viết PRD / GDD, User Stories cho mọi dự án. Dùng khi user nói 'viết PRD', 'product spec', 'feature spec'.
136 other projects use a version of this.
Adopted by
Most recently taken up by
- aayushostwal/nexustheir own version, first seen Nov 29, 2026
- goeroeku/aicrewtheir own version, first seen Nov 29, 2026
- weltonclima/claude-skillstheir own version, first seen Nov 29, 2026
- ZeroOnehub/aipm-skill-packtheir own version, first seen Nov 29, 2026
- jellydn/my-ai-toolstheir own version, first seen Nov 29, 2026
- modeled-information-format/mif-docs-plugintheir own version, first seen Nov 25, 2026
Used with
Projects with it also use modern-go, usecase and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
jidechaoSkillmodern-go
Modernize Go code by applying version-appropriate idioms and APIs (gofix-style transformations). Scans go.mod for the Go version, then transforms Go source files to use modern patterns—from Go 1.0 through 1.26+. Use when the user says "现代化","现代Go语言", "地道的", "idiomatic", "modernize", "modern-go", "update Go code", "gofix", or wants to upgrade Go idioms.
Also in 3 projects that use this
gabriellstSkillusecase
Create an application use case. Use when implementing business operations like CreateOrder, ProcessPayment, CancelBooking. Use this skill for any command/mutation that orchestrates domain logic, whether simple CRUD or complex multi-step transactions with sagas. Dispatch hub — routes to typescript/go variants by file extension.
Also in 3 projects that use this
ulises-jeremiasSkilltrd
WHAT — Draft and review a Technical Requirements Document (TRD) using the template, typically
Also in 3 projects that use this
SireJeffSkillcontext-optimize
Context Optimization - Orchestrate RPI workflow TODO generation with interactive scoping
Also in 3 projects that use this
jidechaoSkillloop-it
Automated issue loop with checkpoint/resume: fetch open GitHub issues → dependency-aware topological sort → implement each issue end-to-end → review with /review-it → document with /note-it → ship with /ship-it → repeat. Persists state to .loop-state.json for crash recovery. Triggers on: loop-it, loop issues, auto implement, 批量实现, 循环实现, 实现所有issue, 恢复循环, resume loop.
Also in 3 projects that use this
snarktankSkillralph
Convert PRDs to prd.json format for the Ralph autonomous agent system. Use when you have an existing PRD and need to convert it to Ralph's JSON format. Triggers on: convert this prd, turn this into ralph format, create prd.json from this, ralph json.
Also in 17 projects that use this
- +2 more from jidechao
Other versions136 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 136
- github/awesome-copilot★ 42ksame name
- snarktank/ralph★ 22ksame name
- SethGammon/Citadel★ 927same name
- smallnest/autoresearch★ 571same name
- snarktank/compound-product★ 542same name
- CatCatUncle/openworkbuddy★ 448same name
- smallnest/goal-workflow★ 283same name
- OffchainLabs/arbitrum-docs★ 253same name
- julianromli/ai-skills★ 244same name
- Joonghyun-Lee-Frieren/oh-my-antigravity★ 229same name
126 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- feature-researchSkill
- loop-verifierSkill
- product-briefSkill
- release-noteSkill
- review-prdSkill
- review-prd-vs-codeSkill
- review-researchSkill
- review-user-storySkill
- user-storySkill
The file
Files
PRD Writing — Guide & Template
Phạm vi: skill này dùng cho mọi loại dự án. Xác định loại dự án trước khi viết:
- Sản phẩm có người dùng trả tiền → giữ nguyên toàn bộ quy ước bên dưới (design system của nền tảng, tracker, wiki, docs per-repo, cổng chặn khi sửa source).
- Dự án cá nhân / nội bộ / học liệu → bỏ mục tracker/wiki, bỏ ràng buộc design system của nền tảng, dùng cấu trúc thư mục của chính dự án đó.
STEP 1: PRE-WRITING (luôn làm trước khi viết)
- Đọc research — tìm
RESEARCH_*.md,docs/research/, hoặc tài liệu nghiên cứu thị trường. Đây là nguồn chính cho pain point, persona, phân tích đối thủ. Không có research thì không viết PRD. - Đọc knowledge base của dự án (nếu có) — kiến trúc, gói giá, quy ước đặt tên.
- Đọc
UI_SNAPSHOT.md(nếu có ở gốc project) — UI pattern, sơ đồ trang, quy ước component của app này. Dùng để viết mục Design Description đúng với UI đang có. Không có file này → bỏ qua. - Khám phá codebase liên quan (BẮT BUỘC nếu viết Data Model / API) — dùng Glob/Grep để hiểu code
hiện có. Với hai mục kỹ thuật (§8 Data Model, §9 API): phải đọc code trên nhánh mặc định của
remote (
git show origin/<default-branch>:<path>) trước khi ghi field hay endpoint. Chỉ ghi cái verify được; chỗ chưa chắc đánh dấu ⚠️ để Dev chốt — tuyệt đối không bịa schema / endpoint. - Check Impact Analysis — tính năng mới có kéo theo thay đổi ở đâu không:
- Gói giá: cần thêm dòng vào bảng so sánh gói? Giới hạn theo gói nào?
- Trang cài đặt: cần thêm setting toàn cục?
- Tính năng đã có: có làm đổi hành vi cũ không?
- Tài liệu / hỗ trợ: cần thêm link "Learn more" trỏ tới bài hướng dẫn?
- Trang giới thiệu sản phẩm: cần cập nhật mô tả / ảnh chụp trên store? Ghi kết quả vào §7.
- Hỏi nếu thiếu thông tin bắt buộc: tên tính năng, deadline / milestone (nếu có).
- Lưu file
PRD_[FEATURE_NAME].md.
STEP 2: WRITING STYLE
- Tone: trang trọng nhưng thân thiện — không cứng nhắc, không dài dòng.
- Ngôn ngữ: tiếng Việt CÓ DẤU đầy đủ. Tuyệt đối không viết tiếng Việt không dấu. Thuật ngữ kỹ thuật giữ tiếng Anh (filter, export, webhook…).
- User Stories: format "Là 1 [role], tôi muốn [action] để [outcome]".
- UI Reference: PRD không vẽ ASCII mockup / UI Flow. Thay bằng link file UI thật (mockup / design) đặt ở đầu Product Solutions; mô tả UI chi tiết dồn vào §5 Design Description. Cơ chế kỹ thuật (caching, fallback) không thuộc PRD — đó là việc của dev.
- UI label casing: mọi label, title, button dùng sentence case — chỉ hoa chữ cái đầu của từ đầu tiên. Ví dụ: "Country visibility", "Select all", "No countries selected". Không Title Case.
- Acceptance Criteria: bullet point (
-), ngắn gọn, testable.
MVP SCOPE GUARD: chỉ đưa vào những gì PO hoặc research đã xác nhận rõ. Không tự thêm tính năng, state hay flow ngoài scope (error state phức tạp, unsaved-changes dialog, analytics dashboard…). Muốn đề xuất → ghi vào "Ngoài scope" kèm lý do, để PO quyết.
MULTI-PRD: tính năng phức tạp cần tách thì tạo N file PRD riêng, có cross-reference và ghi rõ dependency. Mỗi PRD phải tự đứng được — đọc một file là đủ context.
STEP 3: PRD TEMPLATE
Dùng đủ template này. Sub-section nào không áp dụng thì bỏ hẳn, không để trống.
Phần 1: Header
Không thêm "Link task tracker" hay bảng Task List ở đầu PRD. Phần liên kết tracker do agent điều phối quản lý ở khâu hậu cần.
# PRD - [Feature Name]
### History
| Phiên bản | Ngày | Tác giả | Loại (A/M/D) | Mô tả thay đổi |
|-----------|------|---------|--------------|----------------|
| 1.0 | DD/MM/YYYY | [Name] | A | Tạo mới |
> A = Added, M = Modified, D = Deleted
---
## Mục Lục
1. [Executive Summary](#1-executive-summary)
2. [Personas & User Stories](#2-personas--user-stories)
3. [Product Solutions](#3-product-solutions)
4. [Acceptance Criteria](#4-acceptance-criteria)
5. [Design Description](#5-design-description)
6. [Legal & Compliance](#6-legal--compliance)
7. [Impact Analysis](#7-impact-analysis)
8. [Data Model / Database](#8-data-model--database)
9. [API / Integration](#9-api--integration)Phần 2: Executive Summary
3–5 bullet ngắn. Đọc 30 giây phải hiểu toàn bộ tính năng.
## 1. Executive Summary
- **Vấn đề**: [Pain point cốt lõi — 1 câu]
- **Giải pháp**: [Tính năng làm gì — 1 câu]
- **Đối tượng**: [Persona sử dụng]
- **Business value**: [Lợi ích cụ thể — có metric nếu có]
- **Scope**: [Tóm tắt MVP trong 1 câu]Ví dụ:
## 1. Executive Summary
- **Vấn đề**: Người dùng không có cách xem và xuất lịch sử xác minh để phục vụ audit tuân thủ.
- **Giải pháp**: Verification History — dashboard xem, lọc và xuất toàn bộ bản ghi xác minh.
- **Đối tượng**: Chủ cửa hàng bán sản phẩm hạn chế độ tuổi (rượu, thuốc lá, dao).
- **Business value**: Đáp ứng yêu cầu pháp lý GDPR/CCPA/LGPD, giảm rủi ro bị phạt.
- **Scope**: MVP = xem bản ghi, lọc theo ngày/kết quả/quốc gia, xuất CSV/PDF.Phần 3: Personas & User Stories
Persona: chỉ liệt kê người thực sự dùng tính năng này. User Story dùng đúng format.
## 2. Personas & User Stories
### Personas
| Persona | Profile | Nhu cầu chính |
|---------|---------|---------------|
| [Name] | [Role, quy mô, mức độ rành công nghệ] | [Nhu cầu cụ thể] |
### User Stories
Là 1 [role], tôi muốn [action] để [outcome].Ví dụ:
### Personas
| Persona | Profile | Nhu cầu chính |
|---------|---------|---------------|
| Alex — Compliance Manager | Marketing Manager, doanh nghiệp lớn, bán rượu online, rành công nghệ | Xuất bản ghi để nộp cho legal team khi bị audit |
| Sam — Store Owner | Chủ shop một mình, doanh thu 20–50K/tháng, rành công nghệ mức trung bình | Xem nhanh ai đã pass/fail |
### User Stories
Là 1 chủ cửa hàng, tôi muốn xem tất cả bản ghi xác minh độ tuổi để đảm bảo tuân thủ quy định pháp lý.
Là 1 chủ cửa hàng, tôi muốn lọc bản ghi theo khoảng thời gian, kết quả và quốc gia để phân tích hành vi khách hàng.
Là 1 chủ cửa hàng, tôi muốn xuất dữ liệu (CSV/PDF) để dùng trong audit hoặc báo cáo compliance.Phần 4: Product Solutions
Mục lớn nhất. Mô tả chi tiết những gì sẽ được xây. Sub-section không áp dụng thì bỏ.
KHÔNG nhét vào đây:
- Data Model, API endpoint — có mục riêng ở cuối (§8, §9); đừng trộn vào.
- Kiến trúc chi tiết, chiến lược detection, cơ chế kỹ thuật (caching, fallback) — việc của Dev.
- Mô tả hệ thống hiện tại — dev tự khám phá codebase.
- Kế hoạch phát hành / timeline / deliverable theo tuần.
- Success metric / KPI / tracking event.
Product Solutions mô tả WHAT. Phần HOW chỉ gói trong §8 và §9, kèm luật ground bắt buộc.
## 3. Product Solutions
### 3.1. Solution Overview
[1–2 đoạn: tính năng làm gì, giá trị mang lại, các phần chính — dạng bullet]
### 3.2. Scope
**Trong scope (MVP):**
- [Phần A]
- [Phần B]
**Ngoài scope:**
- [Phần X] — Lý do: [why]
### 3.3. UI Reference
**Link UI:** [đường dẫn file mockup / design thật]
Chi tiết component dồn vào §5 Design Description.
### 3.4. Error Messages *(nếu có)*
| Error | Mô tả | Message hiển thị | Action |
|-------|-------|-----------------|--------|
| [Tên] | [Khi nào xảy ra] | "[Nguyên văn message]" | [Hành động tiếp theo] |
### 3.5. Success Messages *(nếu có)*
| Event | Mô tả | Message hiển thị |
|-------|-------|-----------------|
| [Tên] | [Khi nào xảy ra] | "[Nguyên văn message]" |Ví dụ (§3.4):
| Error | Mô tả | Message hiển thị | Action |
|-------|-------|-----------------|--------|
| Wrong date format | Nhập sai format (18/02/2026 thay vì 02/18/2026) | "Wrong date format" | Hiện inline dưới input, chặn Apply |
| Export failed | Lỗi server khi export | "Export data failed" | Toast notification |
| File quá lớn | Export > 10,000 bản ghi | "The export file exceeds the maximum size limit." | Hiện instruction bar: "Contact us for assistance with larger exports." |Phần 5: Acceptance Criteria
Bullet point (
-). Mỗi item phải testable — dev đọc là viết được test case. Tổ chức theo tính năng / user story, không gộp thành một khối.Không thêm: Non-Functional Requirements (performance, security, compatibility, accessibility) — do Dev xác định khi technical review.
## 4. Acceptance Criteria
### [Tên tính năng / User Story] (US-X)
- [Yêu cầu 1 — mô tả hành vi cụ thể]
- [Yêu cầu 2]
### Edge Cases
- [Edge case — scenario + hành vi mong đợi]Ví dụ:
### View records (US-1)
- Người dùng xem được tất cả bản ghi trong dashboard
- IP hiển thị dạng masked trên UI: 192.168.1.***
- IP hiển thị đầy đủ trong file export
- Bảng hiển thị đúng cột: IP, Timestamp, Min Age, Result, Method, Email, Country
- Result đúng màu: Pass = xanh, Fail = đỏ
### Edge Cases
- Không có bản ghi trong khoảng thời gian chọn → hiển thị "No data found"
- Export > 10,000 bản ghi → hiện error message và hướng dẫn
- Email hoặc Country trống/null → hiển thị rỗng, không crash
- Click "Clear" filter → quay về khoảng thời gian mặc địnhPhần 6: Design Description
Mô tả UI spec cho từng màn hình / component. Dùng bảng chuẩn 6 cột. Có mockup HTML hoặc link design thì note ở đầu mục.
## 5. Design Description
### 5.1. [Tên màn hình / tab]
> Màn hình mở khi: [điều kiện]
**UI Specifications:**
| Item | Data Type | Required | Default | Mô tả | Validate Rule |
|------|-----------|----------|---------|-------|---------------|
| [Component] | Text/DateTime/Number/Badge/Selection/Button | Y/N | [Mặc định] | [Hành vi / hiển thị] | [Luật validate] |Ví dụ:
| Item | Data Type | Required | Default | Mô tả | Validate Rule |
|------|-----------|----------|---------|-------|---------------|
| Page Title | Text | Y | "Verification history" | Tiêu đề trang ở top | N/A |
| Date Range | Selection | Y | Tháng hiện tại | Calendar picker + quick filter (Today/Yesterday/Last week/Last month) | Đúng format mm/dd/yyyy |
| Country | Multiple Selection | N | — | Chọn một hoặc nhiều quốc gia, có flag icon | N/A |
| Export Button | Button + Dropdown | Y | — | 2 lựa chọn: Export CSV, Export PDF. Có loading state | N/A |
| IP | Text | Y | — | Hiển thị masked: 192.168.1.*** | Mask octet cuối |
| Result | Badge | Y | — | Pass (xanh) / Fail (đỏ) | Pass / Fail |
| Email | Text | N | Rỗng | Truncate nếu quá dài (deb...@example.com) | Email hợp lệ hoặc rỗng |
| Pagination | Controls | Y | 10 items/page | Previous \| Page X of Y \| Next. Dropdown 10/25/50/100 | Page hợp lệ |Phần 7: Legal & Compliance (nếu có)
Chỉ thêm khi tính năng liên quan compliance (consent, privacy, xác minh độ tuổi, T&C). Không liên quan → bỏ hẳn mục này.
Chỉ gồm 2 sub-section: 6.1 Bối cảnh pháp lý · 6.2 Các quy định liên quan. Không thêm: biện pháp compliance, disclaimer, dependency, glossary, Q&A, references.
## 6. Legal & Compliance
### 6.1. Bối cảnh pháp lý
[1–2 câu: tại sao tính năng này cần tuân thủ]
### 6.2. Các quy định liên quan
| Quy định | Khu vực | Yêu cầu chính | Ảnh hưởng đến tính năng |
|----------|---------|---------------|------------------------|
| [Regulation] | [Region] | [Yêu cầu] | [Ảnh hưởng thế nào] |Phần 8: Impact Analysis
Liệt kê phần khác trong sản phẩm cần cập nhật khi ship. Chỉ ghi mục có ảnh hưởng.
## 7. Impact Analysis
| Phần | Cần update |
|------|-----------|
| Gói giá | Thêm dòng vào bảng so sánh gói, giới hạn cho gói Pro |
| Tính năng đã có | Trang X thêm cột "Reset status" và filter "Reset by" |
| Tài liệu / hỗ trợ | Thêm link "Learn more" ở header trỏ tới bài hướng dẫn |Phần 9: Data Model / Database
⚠️ RULE GROUNDING (BẮT BUỘC): chỉ viết mục này sau khi đã đọc code trên nhánh mặc định của remote (
git show origin/<default-branch>:<path>). Ghi data requirement — cần lưu gì, kiểu gì, giữ bao lâu, quan hệ ra sao — ở mức PO/BA hiểu. Không tự chế schema / index / migration nếu chưa verify. Field / collection / kiểu nào chưa chắc → đánh ⚠️ để Dev chốt. Tính năng không đụng dữ liệu lưu trữ → bỏ hẳn mục này.
## 8. Data Model / Database
### 8.1. Dữ liệu cần lưu
| Entity | Field | Kiểu | Bắt buộc | Mô tả | Ghi chú |
|--------|-------|------|----------|-------|---------|
| [Tên] | [field] | String/Number/Boolean/Timestamp | Y/N | [Ý nghĩa] | ⚠️ nếu chưa verify |
### 8.2. Storage & Retention
- **Nơi lưu**: [nếu biết; ⚠️ nếu chưa chắc]
- **Retention**: [giữ bao lâu, khi nào xoá — quan trọng nếu dính GDPR]
- **Quan hệ**: [liên kết entity nào]Ví dụ:
| Entity | Field | Kiểu | Bắt buộc | Mô tả | Ghi chú |
|--------|-------|------|----------|-------|---------|
| verificationRecord | accountId | String | Y | ID tài khoản sở hữu bản ghi | |
| verificationRecord | ip | String | Y | IP khi verify | Lưu đầy đủ, mask ở UI |
| verificationRecord | result | String | Y | Pass / Fail | |
| verificationRecord | country | String | N | Mã quốc gia (ISO) | ⚠️ nguồn geo chưa rõ — Dev chốt |
### 8.2. Storage & Retention
- **Nơi lưu**: ⚠️ collection `verificationRecords` (Dev verify tên thật trên nhánh mặc định)
- **Retention**: giữ tối thiểu 3 năm phục vụ audit; cần job xoá bản ghi cũ hơn.
- **Quan hệ**: mỗi bản ghi thuộc 1 tài khoản; query theo accountId + verifiedAt.Phần 10: API / Integration
⚠️ RULE GROUNDING (BẮT BUỘC): chỉ viết sau khi đọc code nhánh mặc định. Mô tả capability cần có ở mức contract. Chi tiết payload / auth / rate-limit để Dev hoàn thiện. Endpoint hay param chưa chắc → ⚠️. Không bịa endpoint. Tính năng thuần UI, không phát sinh API → bỏ hẳn mục này.
## 9. API / Integration
### 9.1. Endpoints / Capabilities cần có
| Method | Endpoint / Action | Mục đích | Request | Response | Ghi chú |
|--------|-------------------|----------|---------|----------|---------|
| GET | /api/records | List có filter + pagination | accountId, dateFrom, dateTo, result | Danh sách + total | |
| POST | /api/records/export | Tạo file export theo filter | accountId, filter, format | URL file / job id | ⚠️ sync hay async — Dev chốt |
### 9.2. Tích hợp ngoài / Webhook *(nếu có)*
| Nguồn | Loại | Mục đích | Ghi chú |
|-------|------|----------|---------|
| [Nền tảng] | Webhook | Xoá PII khi người dùng yêu cầu (GDPR) | Phải xoá IP thật trong bản ghi |STEP 4: CHECKLIST
Trước khi đưa PRD sang verifier:
[ ] Đã lưu ra file .md (không chỉ trả lời trong chat)
[ ] Tên file đúng: PRD_[FEATURE_NAME].md
[ ] Header có History table và Mục Lục
[ ] Executive Summary đủ 5 bullet, đọc 30 giây hiểu hết
[ ] User Stories đúng format "Là 1 [role], tôi muốn... để..."
[ ] UI Reference: có link file UI thật (KHÔNG vẽ ASCII UI Flow trong PRD)
[ ] Error Messages có nguyên văn message (không mô tả chung chung)
[ ] Acceptance Criteria dùng bullet (-), mỗi item testable, tổ chức theo user story
[ ] Edge Cases có ít nhất 3 scenario thực tế
[ ] Design Description dùng bảng chuẩn 6 cột
[ ] Sub-section không áp dụng đã bỏ hẳn — không để trống
[ ] §8 + §9: CHỈ ghi cái đã check code nhánh mặc định; chưa chắc thì ⚠️; KHÔNG bịa
[ ] KHÔNG có kiến trúc chi tiết, detection strategy, caching/fallback (việc của Dev)
[ ] KHÔNG có Non-Functional Requirements
[ ] KHÔNG có Release Plan / timeline / Success Metrics / KPI / tracking event
[ ] KHÔNG có Disclaimer, Dependencies, Glossary, Q&A, References
[ ] Impact Analysis đã check đủ 5 mục — chỉ ghi mục có ảnh hưởngSTEP 5: SAU KHI VIẾT
- Spawn agent MỚI chạy
/review-prd— verifier tài liệu. Tuyệt đối không tự review inline trong cùng context (maker không chấm bài của chính mình). - Spawn agent MỚI chạy
/review-prd-vs-code— verifier đối chiếu code thật. - Còn MAJOR hoặc phán quyết (C) → sửa, chấm lại. Sạch → gửi PO kèm 3 điểm cần người quyết.
- Release note viết sau khi ship, bằng skill
/release-note— không viết trong PRD.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

