بنقرة واحدة
prd
Generate detailed PRDs with hyper-specific tasks from an approved Master Plan
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Generate detailed PRDs with hyper-specific tasks from an approved Master Plan
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Execute PRDs mechanically using task agents or swarm mode
Collaborative planning conversation to produce a Master Plan for a feature
Launch parallel code review agents to review execution results against PRD specifications
Retrospective - review execution, capture learnings, update documentation
Explore a codebase area in depth with parallel research agents before planning
| name | prd |
| description | Generate detailed PRDs with hyper-specific tasks from an approved Master Plan |
| argument-hint | <prd-directory-name or feature-name> |
| tags | ["prd","specification","planning"] |
Generate detailed PRDs from an approved Master Plan. Each PRD contains tiny, hyper-specific tasks that agents can execute mechanically.
/plan)prds/<timestamp>_<feature-name>/master-plan.mdAPPROVEDRead prds/{{argument}}/master-plan.md (or find the latest PRD directory).
Verify:
For each PRD in the master plan:
This exploration is critical. You MUST read the actual files before specifying changes.
Before writing any PRD, run a comprehensive impact audit for every field, function, type, or interface being changed:
Call-site audit. For every field/function/type being modified, renamed, or removed, grep the ENTIRE codebase for all usages. Include controllers, utilities, jobs, admin code, scripts — not just models and services.
Consumer audit. For every data access pattern being changed (e.g., column rename, type change, new lookup method), find ALL consumers. Check every layer of the codebase, not just the obvious ones.
Index/constraint audit. For every model or schema being modified, review its full definition including indexes, unique constraints, and associations. If a column is being renamed, added, or removed, verify all indexes and constraints referencing it are updated.
Migration consistency audit. For any migration that drops or renames columns, verify it also handles indexes referencing those columns. For any migration that adds columns, verify default values and nullability.
If the audit reveals call sites or consumers not covered by the current PRD plan, add tasks to cover them. Do NOT rely on agents to "discover" these during execution — they won't.
This step prevents the most common PRD failure mode: changing how something is stored or accessed but missing places that read it.
For each PRD, create a file following the format in .claude/rules/prd-format.md.
Key rules:
Created: header with UTC timestamp.Write all PRD files to the same directory as the Master Plan:
prds/<timestamp>_<feature-name>/
master-plan.md # Already exists
prd-01_description.md # Generated now
prd-02_description.md # Generated now
...
Update the Master Plan:
PRDS_GENERATEDTell the engineer:
Do NOT proceed to execution. The engineer reviews PRDs in their editor and either approves or requests changes.
### Task 1: Add PaymentStatus type
##### CREATE: src/types/payment.ts
```ts
export type PaymentStatus = 'pending' | 'completed' | 'failed' | 'refunded';
export type PaymentRecord = {
id: string;
status: PaymentStatus;
amount: number;
currency: string;
createdAt: number;
};
### Bad (too big, requires decisions):
```markdown
### Task 1: Build the entire payment system
Create types, API client, state management, and UI components for payments.
### Task 3: Wire PaymentStatus to PaymentScreen
##### MODIFY: src/components/PaymentScreen.tsx
**Add import** (after existing type imports):
```ts
import type { PaymentRecord } from '../../types/payment';
Add to StateProps type:
type StateProps = {
// ...existing props...
paymentRecord?: PaymentRecord; // Add this
};
Add to withGlobal (after existing selectors):
paymentRecord: selectPaymentRecord(global, ownProps.paymentId),
## File Change Specification
Follow these rules from `.claude/rules/prd-format.md`:
| Change Size | What to Show |
|-------------|-------------|
| < 20 lines | Exact code with insertion point |
| 20-50 lines | Function signatures + key logic |
| 50+ lines / new files | Structure, exports, key functions with descriptions |
Always provide **context anchors**:
- "After the line containing `const lang = useLang()`"
- "Inside the `handleSubmit` function, after validation"
- "Before the `export default` statement"
## Recommending Skills
If the project has project-specific skills (e.g., `/component`, `/lang-key`, `/review`), include them in task recommendations:
```markdown
**Recommended skills:** `/component PaymentCard`, `/lang-key`
This tells the executing agent which skills to use. If no project-specific skills exist, omit this field.
If the project has specialized agents (e.g., component-builder, state-architect), recommend them:
**Recommended agent:** `component-builder`
This tells the executor which agent type to assign. If no specialized agents exist, omit this field.
Follow the full testing rules in .claude/rules/prd-format.md. Key points: