@mrciphersmith/keryx 0.2.98 → 0.2.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +4057 -2510
- package/dist/core.js +39 -1
- package/package.json +1 -1
- package/src/gdskills/bundled/rules/core/cli-interface-design.mdc +237 -0
- package/src/gdskills/bundled/rules/core/definition-of-done.mdc +116 -0
- package/src/gdskills/bundled/rules/core/skills-storage-workflow.mdc +101 -11
- package/src/gdskills/bundled/rules/core/subagent-status-protocol.md +9 -2
- package/src/gdskills/bundled/skills/core/reviewer-skill-creator/SKILL.md +42 -5
- package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.md +19 -3
- package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.md +20 -4
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.md +32 -9
- package/src/gdskills/bundled/skills/orchestration/feature-dev/SKILL.md +18 -4
- package/src/gdskills/bundled/skills/orchestration/flow-orchestrator/SKILL.md +21 -5
- package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.md +4 -4
- package/src/gdskills/bundled/skills/orchestration/issue-analyzer/orchestrator-prompt.md +1 -1
- package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.md +42 -2
- package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.md +23 -9
- package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.md +33 -31
- package/src/gdskills/bundled/skills/orchestration/task-implementer/output-contract.schema.json +32 -1
- package/src/gdskills/bundled/skills/planning/autodoc-analyst/SKILL.md +16 -0
- package/src/gdskills/bundled/skills/planning/autodoc-architect/SKILL.md +16 -0
- package/src/gdskills/bundled/skills/planning/autodoc-assembler/SKILL.md +16 -0
- package/src/gdskills/bundled/skills/planning/autodoc-orchestrator/SKILL.md +17 -0
- package/src/gdskills/bundled/skills/planning/autodoc-scanner/SKILL.md +16 -0
- package/src/gdskills/bundled/skills/planning/autodoc-writer/SKILL.md +16 -0
- package/src/gdskills/bundled/skills/planning/brainstorm/SKILL.md +28 -3
- package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.codex.md +17 -0
- package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.cursor.md +17 -0
- package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.md +17 -0
- package/src/gdskills/bundled/skills/planning/docpack-orchestrator/SKILL.md +32 -2
- package/src/gdskills/bundled/skills/planning/docpack-review/SKILL.md +14 -2
- package/src/gdskills/bundled/skills/planning/interview/SKILL.md +29 -7
- package/src/gdskills/bundled/skills/planning/interviewer/SKILL.md +32 -6
- package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.codex.md +16 -0
- package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.cursor.md +16 -0
- package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.md +16 -0
- package/src/gdskills/bundled/skills/planning/planner/SKILL.codex.md +17 -0
- package/src/gdskills/bundled/skills/planning/planner/SKILL.cursor.md +17 -0
- package/src/gdskills/bundled/skills/planning/planner/SKILL.md +17 -0
- package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.md +20 -3
- package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.codex.md +16 -0
- package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.cursor.md +16 -0
- package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.md +16 -0
- package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.codex.md +16 -0
- package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.cursor.md +16 -0
- package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.md +16 -0
- package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.codex.md +4 -0
- package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.cursor.md +4 -0
- package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.md +4 -0
- package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.codex.md +4 -0
- package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.cursor.md +4 -0
- package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.md +4 -0
- package/src/gdskills/bundled/skills/platform/agent-entrypoint-distiller/SKILL.md +31 -4
- package/src/gdskills/bundled/skills/platform/claude-md-management/SKILL.md +26 -2
- package/src/gdskills/bundled/skills/platform/hookify/SKILL.md +28 -3
- package/src/gdskills/bundled/skills/quality/api-truth/SKILL.md +226 -0
- package/src/gdskills/bundled/skills/quality/changelog/SKILL.md +24 -4
- package/src/gdskills/bundled/skills/quality/commit/SKILL.md +24 -3
- package/src/gdskills/bundled/skills/quality/db-migrate/SKILL.md +24 -3
- package/src/gdskills/bundled/skills/quality/dependency-update/SKILL.md +25 -4
- package/src/gdskills/bundled/skills/quality/deploy/SKILL.md +26 -3
- package/src/gdskills/bundled/skills/quality/deprecation-path/SKILL.md +268 -0
- package/src/gdskills/bundled/skills/quality/fresh-eyes/SKILL.md +190 -0
- package/src/gdskills/bundled/skills/quality/metaproject-security/SKILL.md +24 -3
- package/src/gdskills/bundled/skills/quality/perf-check/SKILL.md +29 -8
- package/src/gdskills/bundled/skills/quality/pr/SKILL.md +24 -4
- package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.md +25 -2
- package/src/gdskills/bundled/skills/quality/push/SKILL.md +24 -3
- package/src/gdskills/bundled/skills/quality/root-cause/SKILL.md +204 -0
- package/src/gdskills/bundled/skills/quality/security-audit/SKILL.md +25 -4
- package/src/gdskills/bundled/skills/quality/test-gen/SKILL.md +24 -3
- package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.md +17 -2
- package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.md +40 -5
- package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.md +41 -1
- package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.md +44 -2
- package/src/gdskills/bundled/skills/review/code-style-review/SKILL.md +44 -4
- package/src/gdskills/bundled/skills/review/review-architecture/SKILL.md +3 -3
- package/src/gdskills/bundled/skills/review/review-backend/SKILL.md +2 -3
- package/src/gdskills/bundled/skills/review/review-clean-code/SKILL.md +4 -4
- package/src/gdskills/bundled/skills/review/review-core-boundaries/SKILL.md +36 -2
- package/src/gdskills/bundled/skills/review/review-flow-graph/SKILL.md +37 -3
- package/src/gdskills/bundled/skills/review/review-frontend/SKILL.md +2 -4
- package/src/gdskills/bundled/skills/review/review-frontend-conventions/SKILL.md +36 -2
- package/src/gdskills/bundled/skills/review/review-highload/SKILL.md +3 -5
- package/src/gdskills/bundled/skills/review/review-layout/SKILL.md +23 -2
- package/src/gdskills/bundled/skills/review/review-logic/SKILL.md +3 -3
- package/src/gdskills/bundled/skills/review/review-orchestrator/SKILL.md +9 -29
- package/src/gdskills/bundled/skills/review/review-performance/SKILL.md +9 -9
- package/src/gdskills/bundled/skills/review/review-pr-feedback/SKILL.md +3 -2
- package/src/gdskills/bundled/skills/review/review-regression/SKILL.md +33 -2
- package/src/gdskills/bundled/skills/review/review-security-code/SKILL.md +4 -2
- package/src/gdskills/bundled/skills/review/review-style/SKILL.md +2 -2
- package/src/gdskills/bundled/skills/review/review-testing-practices/SKILL.md +40 -2
- package/src/gdskills/bundled/skills/review/review-verifier/SKILL.md +1 -1
- package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.codex.md +0 -330
- package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.cursor.md +0 -330
- package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.opencode.md +0 -330
- package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.zed.md +0 -330
- package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.codex.md +0 -655
- package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.cursor.md +0 -655
- package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.opencode.md +0 -655
- package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.zed.md +0 -655
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.codex.md +0 -424
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.cursor.md +0 -424
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.opencode.md +0 -424
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.zed.md +0 -424
- package/src/gdskills/bundled/skills/orchestration/feature-dev/SKILL.codex.md +0 -163
- package/src/gdskills/bundled/skills/orchestration/feature-dev/SKILL.cursor.md +0 -163
- package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.codex.md +0 -373
- package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.cursor.md +0 -373
- package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.opencode.md +0 -373
- package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.zed.md +0 -373
- package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.codex.md +0 -374
- package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.cursor.md +0 -374
- package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.opencode.md +0 -374
- package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.zed.md +0 -374
- package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.codex.md +0 -2232
- package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.cursor.md +0 -2232
- package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.opencode.md +0 -2232
- package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.zed.md +0 -2232
- package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.codex.md +0 -668
- package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.cursor.md +0 -668
- package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.opencode.md +0 -668
- package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.zed.md +0 -668
- package/src/gdskills/bundled/skills/planning/brainstorm/SKILL.codex.md +0 -90
- package/src/gdskills/bundled/skills/planning/brainstorm/SKILL.cursor.md +0 -90
- package/src/gdskills/bundled/skills/planning/interview/SKILL.codex.md +0 -187
- package/src/gdskills/bundled/skills/planning/interview/SKILL.cursor.md +0 -187
- package/src/gdskills/bundled/skills/planning/interviewer/SKILL.codex.md +0 -105
- package/src/gdskills/bundled/skills/planning/interviewer/SKILL.cursor.md +0 -105
- package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.codex.md +0 -193
- package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.cursor.md +0 -193
- package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.opencode.md +0 -193
- package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.zed.md +0 -193
- package/src/gdskills/bundled/skills/platform/claude-md-management/SKILL.codex.md +0 -87
- package/src/gdskills/bundled/skills/platform/claude-md-management/SKILL.cursor.md +0 -87
- package/src/gdskills/bundled/skills/platform/hookify/SKILL.codex.md +0 -100
- package/src/gdskills/bundled/skills/platform/hookify/SKILL.cursor.md +0 -100
- package/src/gdskills/bundled/skills/quality/changelog/SKILL.codex.md +0 -84
- package/src/gdskills/bundled/skills/quality/changelog/SKILL.cursor.md +0 -84
- package/src/gdskills/bundled/skills/quality/commit/SKILL.codex.md +0 -66
- package/src/gdskills/bundled/skills/quality/commit/SKILL.cursor.md +0 -66
- package/src/gdskills/bundled/skills/quality/db-migrate/SKILL.codex.md +0 -66
- package/src/gdskills/bundled/skills/quality/db-migrate/SKILL.cursor.md +0 -66
- package/src/gdskills/bundled/skills/quality/dependency-update/SKILL.codex.md +0 -81
- package/src/gdskills/bundled/skills/quality/dependency-update/SKILL.cursor.md +0 -81
- package/src/gdskills/bundled/skills/quality/deploy/SKILL.codex.md +0 -70
- package/src/gdskills/bundled/skills/quality/deploy/SKILL.cursor.md +0 -70
- package/src/gdskills/bundled/skills/quality/perf-check/SKILL.codex.md +0 -83
- package/src/gdskills/bundled/skills/quality/perf-check/SKILL.cursor.md +0 -83
- package/src/gdskills/bundled/skills/quality/pr/SKILL.codex.md +0 -75
- package/src/gdskills/bundled/skills/quality/pr/SKILL.cursor.md +0 -75
- package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.codex.md +0 -378
- package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.cursor.md +0 -378
- package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.opencode.md +0 -378
- package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.zed.md +0 -378
- package/src/gdskills/bundled/skills/quality/push/SKILL.codex.md +0 -52
- package/src/gdskills/bundled/skills/quality/push/SKILL.cursor.md +0 -52
- package/src/gdskills/bundled/skills/quality/security-audit/SKILL.codex.md +0 -108
- package/src/gdskills/bundled/skills/quality/security-audit/SKILL.cursor.md +0 -108
- package/src/gdskills/bundled/skills/quality/test-gen/SKILL.codex.md +0 -80
- package/src/gdskills/bundled/skills/quality/test-gen/SKILL.cursor.md +0 -80
- package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.codex.md +0 -345
- package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.cursor.md +0 -345
- package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.opencode.md +0 -345
- package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.zed.md +0 -345
- package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.codex.md +0 -203
- package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.cursor.md +0 -203
- package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.opencode.md +0 -203
- package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.zed.md +0 -203
- package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.codex.md +0 -243
- package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.cursor.md +0 -243
- package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.opencode.md +0 -243
- package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.zed.md +0 -243
- package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.codex.md +0 -259
- package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.cursor.md +0 -259
- package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.opencode.md +0 -259
- package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.zed.md +0 -259
- package/src/gdskills/bundled/skills/review/code-style-review/SKILL.codex.md +0 -168
- package/src/gdskills/bundled/skills/review/code-style-review/SKILL.cursor.md +0 -168
- package/src/gdskills/bundled/skills/review/code-style-review/SKILL.opencode.md +0 -168
- package/src/gdskills/bundled/skills/review/code-style-review/SKILL.zed.md +0 -168
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: interviewer
|
|
3
|
-
description: "Use when a request is ambiguous and must be pinned down BEFORE any context is collected — the entry-point interview that turns a vague or expensive ask into a scoped brief. This is the `custom`-intent gate job-orchestrator runs at 0.1.5. For clarifying implementation specifics AFTER context is already collected, use `interview` instead."
|
|
4
|
-
triggers:
|
|
5
|
-
- "Interview me"
|
|
6
|
-
- "Ask me questions"
|
|
7
|
-
- "Clarify requirements"
|
|
8
|
-
- "Gather requirements"
|
|
9
|
-
- "What do you need to know"
|
|
10
|
-
metadata:
|
|
11
|
-
author: "MrCipherSmith"
|
|
12
|
-
version: "1.0.0"
|
|
13
|
-
category: "planning"
|
|
14
|
-
compatible_harnesses: "cursor,codex,zed,opencode,claude"
|
|
15
|
-
license: "MIT"
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
<SUBAGENT-STOP>
|
|
19
|
-
If you were dispatched as a subagent to execute a specific task, skip this skill entirely.
|
|
20
|
-
This skill is for orchestrators and interactive session-level routing only.
|
|
21
|
-
Proceed directly with your assigned task.
|
|
22
|
-
</SUBAGENT-STOP>
|
|
23
|
-
|
|
24
|
-
# Interviewer
|
|
25
|
-
|
|
26
|
-
## Purpose
|
|
27
|
-
|
|
28
|
-
Gathers precise context through focused, critical questions before a complex skill executes. Prevents wasted work from wrong assumptions. Asks **one question at a time**, provides options where possible, and skips questions the context already answers.
|
|
29
|
-
|
|
30
|
-
**Input schema:**
|
|
31
|
-
```
|
|
32
|
-
topic: string — what is being worked on
|
|
33
|
-
goal: string — which skill will use these answers
|
|
34
|
-
context?: { — optional, provided by calling skill
|
|
35
|
-
codebase_summary?: string
|
|
36
|
-
recent_changes?: string
|
|
37
|
-
relevant_files?: string[]
|
|
38
|
-
existing_analysis?: string
|
|
39
|
-
}
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
**Output schema:**
|
|
43
|
-
```
|
|
44
|
-
answers: [{question, answer, confidence: "certain"|"assumption"|"unknown"}]
|
|
45
|
-
derived_context: string — all gathered info as one coherent block
|
|
46
|
-
ready_to_proceed: boolean
|
|
47
|
-
blockers?: string[] — unresolved critical unknowns
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
## When to Use
|
|
51
|
-
|
|
52
|
-
- Called by `job-orchestrator`, `brainstorm`, `feature-dev` at start of Phase 0
|
|
53
|
-
- Directly by user: `/interviewer <topic>` — runs context-collector first if no context provided
|
|
54
|
-
- When requirements are vague or ambiguous
|
|
55
|
-
|
|
56
|
-
## Workflow
|
|
57
|
-
|
|
58
|
-
### If called by another skill (context provided)
|
|
59
|
-
1. Parse input context
|
|
60
|
-
2. Determine what's still unknown or ambiguous for the stated goal
|
|
61
|
-
3. Decide number of questions needed (typically 2-6)
|
|
62
|
-
4. Skip questions already answered by context
|
|
63
|
-
5. Ask questions one at a time
|
|
64
|
-
6. Produce output schema
|
|
65
|
-
|
|
66
|
-
### If called directly by user (no context)
|
|
67
|
-
1. Ask: "What are we working on?" (if topic not in arguments)
|
|
68
|
-
2. Run `context-collector` as sub-agent to gather codebase context
|
|
69
|
-
3. Proceed as above with collected context
|
|
70
|
-
|
|
71
|
-
## Question Rules
|
|
72
|
-
|
|
73
|
-
- **One question at a time** — never ask multiple at once
|
|
74
|
-
- **Provide options when possible**:
|
|
75
|
-
```
|
|
76
|
-
What is the primary trigger for this feature?
|
|
77
|
-
A) User request / new requirement
|
|
78
|
-
B) Tech debt or refactor
|
|
79
|
-
C) Bug or incident in production
|
|
80
|
-
D) Other (describe)
|
|
81
|
-
```
|
|
82
|
-
- **Skip if already known** — if context answers a question, don't ask it
|
|
83
|
-
- **Be critical** — focus on questions that would change the approach
|
|
84
|
-
- **Max 8 questions** — stop when enough context is gathered
|
|
85
|
-
- **Confirm before proceeding** — summarize gathered context and ask if correct
|
|
86
|
-
|
|
87
|
-
## Question Bank by Goal Type
|
|
88
|
-
|
|
89
|
-
### For implementation goals
|
|
90
|
-
- What is the expected input/output?
|
|
91
|
-
- What are the edge cases that must be handled?
|
|
92
|
-
- Are there existing similar patterns in the codebase to follow?
|
|
93
|
-
- What is the performance/scale requirement?
|
|
94
|
-
- What should NOT be changed (constraints)?
|
|
95
|
-
|
|
96
|
-
### For review goals
|
|
97
|
-
- What specific concerns should the review focus on?
|
|
98
|
-
- Are there known existing issues to watch for?
|
|
99
|
-
- What is the acceptance criteria?
|
|
100
|
-
|
|
101
|
-
### For architecture/design goals
|
|
102
|
-
- What are the hard constraints (performance, compat, timeline)?
|
|
103
|
-
- What does success look like in 6 months?
|
|
104
|
-
- What are you most worried about?
|
|
105
|
-
- Who else is affected by this decision?
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: prd-creator
|
|
3
|
-
description: "Use when a vague or unstructured request needs to be converted into a formal, testable Product Requirements Document."
|
|
4
|
-
triggers:
|
|
5
|
-
- "Create a PRD"
|
|
6
|
-
- "Formulate requirements"
|
|
7
|
-
- "Write a product requirements document"
|
|
8
|
-
- "Draft PRD"
|
|
9
|
-
- "Analyze requirements"
|
|
10
|
-
metadata:
|
|
11
|
-
author: "MrCipherSmith"
|
|
12
|
-
version: "1.0.0"
|
|
13
|
-
category: "planning"
|
|
14
|
-
compatible_harnesses: "cursor,codex,zed,opencode,claude"
|
|
15
|
-
license: "MIT"
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
# PRD-Creator Sub-Agent
|
|
19
|
-
|
|
20
|
-
## 1. Purpose
|
|
21
|
-
|
|
22
|
-
The PRD-Creator transforms unstructured user requests into structured, complete, and testable Product Requirements Documents (PRD).
|
|
23
|
-
|
|
24
|
-
It operates in two modes:
|
|
25
|
-
- **Direct Mode** — interacts directly with the user.
|
|
26
|
-
- **Orchestrated Mode** — invoked by another agent with structured context input.
|
|
27
|
-
|
|
28
|
-
---
|
|
29
|
-
|
|
30
|
-
## 2. Responsibilities
|
|
31
|
-
|
|
32
|
-
The agent MUST:
|
|
33
|
-
|
|
34
|
-
1. Analyze the initial request.
|
|
35
|
-
2. Detect ambiguities and missing context.
|
|
36
|
-
3. Generate clarification questions.
|
|
37
|
-
4. Prefer multiple-choice questions when possible.
|
|
38
|
-
5. Ask open-ended questions only when unavoidable.
|
|
39
|
-
6. Limit clarification rounds to 7 questions per iteration.
|
|
40
|
-
7. Generate a complete PRD only after ambiguities are resolved.
|
|
41
|
-
8. Always include:
|
|
42
|
-
- Goals
|
|
43
|
-
- Non-Goals
|
|
44
|
-
- Functional Requirements
|
|
45
|
-
- Non-Functional Requirements
|
|
46
|
-
- Constraints
|
|
47
|
-
- Acceptance Criteria (Gherkin)
|
|
48
|
-
- Verification Section
|
|
49
|
-
|
|
50
|
-
The agent MUST NOT:
|
|
51
|
-
- Assume missing context.
|
|
52
|
-
- Skip constraint validation.
|
|
53
|
-
- Produce incomplete PRDs.
|
|
54
|
-
|
|
55
|
-
---
|
|
56
|
-
|
|
57
|
-
## 3. Operational Modes
|
|
58
|
-
|
|
59
|
-
### 3.1 Direct Mode
|
|
60
|
-
|
|
61
|
-
- **Input:** Raw user request (string)
|
|
62
|
-
- **Output:** Clarification questions OR Completed PRD
|
|
63
|
-
|
|
64
|
-
### 3.2 Orchestrated Mode
|
|
65
|
-
|
|
66
|
-
- **Input:** Schema-validated input including `contextSchema`, `initialRequest`, `constraints`, `metadata`. (See `input-contract.schema.json`)
|
|
67
|
-
- **Output:** Schema-validated clarification questions OR Completed PRD. (See `output-contract.schema.json`)
|
|
68
|
-
|
|
69
|
-
---
|
|
70
|
-
|
|
71
|
-
## 4. Internal Processing Flow
|
|
72
|
-
|
|
73
|
-
1. Extract entities and scope.
|
|
74
|
-
2. Classify change type:
|
|
75
|
-
- UI only
|
|
76
|
-
- UI + state logic
|
|
77
|
-
- Architecture change
|
|
78
|
-
- Refactor
|
|
79
|
-
- Bug fix
|
|
80
|
-
- Performance
|
|
81
|
-
- Integration
|
|
82
|
-
3. Detect missing information.
|
|
83
|
-
4. Generate clarification questions.
|
|
84
|
-
5. Validate completeness.
|
|
85
|
-
6. Construct final PRD.
|
|
86
|
-
|
|
87
|
-
---
|
|
88
|
-
|
|
89
|
-
## 5. Built-in PRD Template
|
|
90
|
-
|
|
91
|
-
When generating the final PRD, follow this exact structure:
|
|
92
|
-
|
|
93
|
-
```markdown
|
|
94
|
-
# PRD: {Feature Name}
|
|
95
|
-
|
|
96
|
-
Version: 0.1.0
|
|
97
|
-
|
|
98
|
-
## 1. Overview
|
|
99
|
-
Brief summary of the feature.
|
|
100
|
-
|
|
101
|
-
## 2. Context
|
|
102
|
-
Product:
|
|
103
|
-
Module:
|
|
104
|
-
User Role:
|
|
105
|
-
Tech Stack:
|
|
106
|
-
|
|
107
|
-
## 3. Problem Statement
|
|
108
|
-
Clear definition of the current issue.
|
|
109
|
-
|
|
110
|
-
## 4. Goals
|
|
111
|
-
- Goal 1
|
|
112
|
-
- Goal 2
|
|
113
|
-
|
|
114
|
-
## 5. Non-Goals
|
|
115
|
-
- Explicit exclusions
|
|
116
|
-
|
|
117
|
-
## 6. Functional Requirements
|
|
118
|
-
FR-1:
|
|
119
|
-
FR-2:
|
|
120
|
-
|
|
121
|
-
## 7. Non-Functional Requirements
|
|
122
|
-
NFR-1:
|
|
123
|
-
NFR-2:
|
|
124
|
-
|
|
125
|
-
## 8. Constraints
|
|
126
|
-
- Architectural constraints
|
|
127
|
-
- Tech constraints
|
|
128
|
-
- Design constraints
|
|
129
|
-
|
|
130
|
-
## 9. Edge Cases
|
|
131
|
-
- Case 1
|
|
132
|
-
- Case 2
|
|
133
|
-
|
|
134
|
-
## 10. Acceptance Criteria (Gherkin)
|
|
135
|
-
Given
|
|
136
|
-
When
|
|
137
|
-
Then
|
|
138
|
-
|
|
139
|
-
## 11. Verification
|
|
140
|
-
- How to test
|
|
141
|
-
- Where to test
|
|
142
|
-
- Observability checks
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
---
|
|
146
|
-
|
|
147
|
-
## 6. Output Location & Format
|
|
148
|
-
|
|
149
|
-
**Direct Mode:**
|
|
150
|
-
- You MUST follow `rules/core/requirements-package-standard.mdc` (via `rules/core/documentation-management.mdc` for the `requirements` category).
|
|
151
|
-
- Before saving, ASK the user to confirm the feature name (`<name>`) or to suggest a custom path.
|
|
152
|
-
- The default target path is: `<current_project_root>/docs/requirements/<name>/prd.md` — no date-stamped folder.
|
|
153
|
-
- If the requirements package (`README.md`, `prd.md`, `specification.md`) does not exist yet, create it; otherwise update `prd.md` in place and bump its `Version` field rather than creating a parallel copy.
|
|
154
|
-
- Default to a single document in the project's documentation language (`en` unless the project states otherwise). Generate additional language variants only when the user explicitly asks for them, and keep any variants you create synchronized.
|
|
155
|
-
- You MUST NOT create a single file in the generic `docs/` root.
|
|
156
|
-
|
|
157
|
-
**Orchestrated Mode:**
|
|
158
|
-
- The PRD MUST be saved within the active job's directory for traceability: `<JOBS_ROOT>/<current_job>/`
|
|
159
|
-
- Follow the orchestrator's constraints for exact file naming in the job context.
|
|
160
|
-
|
|
161
|
-
---
|
|
162
|
-
|
|
163
|
-
## 7. API Contract Design
|
|
164
|
-
|
|
165
|
-
Both Direct Mode and Orchestrated Mode adhere to strict JSON schemas to ensure reliable inter-agent communication.
|
|
166
|
-
|
|
167
|
-
- **Input Schema:** Defines the incoming request context. (See `input-contract.schema.json`)
|
|
168
|
-
- **Output Schema:** Defines the response structure, which is either an array of clarification questions or a finalized PRD payload. (See `output-contract.schema.json`)
|
|
169
|
-
|
|
170
|
-
---
|
|
171
|
-
|
|
172
|
-
## 8. Quality Control Checklist
|
|
173
|
-
|
|
174
|
-
Before finalizing PRD, the agent MUST verify:
|
|
175
|
-
|
|
176
|
-
- [ ] Is the business goal clearly defined?
|
|
177
|
-
- [ ] Are technical/design constraints explicit?
|
|
178
|
-
- [ ] Are non-goals present and clear?
|
|
179
|
-
- [ ] Are all acceptance criteria testable and formatted in Gherkin?
|
|
180
|
-
- [ ] Is the verification method fully defined?
|
|
181
|
-
- [ ] Is the potential architecture impact clear?
|
|
182
|
-
|
|
183
|
-
**CRITICAL:** If any answer is NO → The PRD must not be finalized. Return to the user/orchestrator with clarification questions.
|
|
184
|
-
|
|
185
|
-
---
|
|
186
|
-
|
|
187
|
-
## 9. Intended Usage
|
|
188
|
-
|
|
189
|
-
Designed for multi-agent orchestration pipelines, such as:
|
|
190
|
-
|
|
191
|
-
`User → Intent Agent → PRD-Creator → Tech Spec Agent → Code Agent`
|
|
192
|
-
|
|
193
|
-
All programmatic interactions are strictly schema-validated.
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: prd-creator
|
|
3
|
-
description: "Use when a vague or unstructured request needs to be converted into a formal, testable Product Requirements Document."
|
|
4
|
-
triggers:
|
|
5
|
-
- "Create a PRD"
|
|
6
|
-
- "Formulate requirements"
|
|
7
|
-
- "Write a product requirements document"
|
|
8
|
-
- "Draft PRD"
|
|
9
|
-
- "Analyze requirements"
|
|
10
|
-
metadata:
|
|
11
|
-
author: "MrCipherSmith"
|
|
12
|
-
version: "1.0.0"
|
|
13
|
-
category: "planning"
|
|
14
|
-
compatible_harnesses: "cursor,codex,zed,opencode,claude"
|
|
15
|
-
license: "MIT"
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
# PRD-Creator Sub-Agent
|
|
19
|
-
|
|
20
|
-
## 1. Purpose
|
|
21
|
-
|
|
22
|
-
The PRD-Creator transforms unstructured user requests into structured, complete, and testable Product Requirements Documents (PRD).
|
|
23
|
-
|
|
24
|
-
It operates in two modes:
|
|
25
|
-
- **Direct Mode** — interacts directly with the user.
|
|
26
|
-
- **Orchestrated Mode** — invoked by another agent with structured context input.
|
|
27
|
-
|
|
28
|
-
---
|
|
29
|
-
|
|
30
|
-
## 2. Responsibilities
|
|
31
|
-
|
|
32
|
-
The agent MUST:
|
|
33
|
-
|
|
34
|
-
1. Analyze the initial request.
|
|
35
|
-
2. Detect ambiguities and missing context.
|
|
36
|
-
3. Generate clarification questions.
|
|
37
|
-
4. Prefer multiple-choice questions when possible.
|
|
38
|
-
5. Ask open-ended questions only when unavoidable.
|
|
39
|
-
6. Limit clarification rounds to 7 questions per iteration.
|
|
40
|
-
7. Generate a complete PRD only after ambiguities are resolved.
|
|
41
|
-
8. Always include:
|
|
42
|
-
- Goals
|
|
43
|
-
- Non-Goals
|
|
44
|
-
- Functional Requirements
|
|
45
|
-
- Non-Functional Requirements
|
|
46
|
-
- Constraints
|
|
47
|
-
- Acceptance Criteria (Gherkin)
|
|
48
|
-
- Verification Section
|
|
49
|
-
|
|
50
|
-
The agent MUST NOT:
|
|
51
|
-
- Assume missing context.
|
|
52
|
-
- Skip constraint validation.
|
|
53
|
-
- Produce incomplete PRDs.
|
|
54
|
-
|
|
55
|
-
---
|
|
56
|
-
|
|
57
|
-
## 3. Operational Modes
|
|
58
|
-
|
|
59
|
-
### 3.1 Direct Mode
|
|
60
|
-
|
|
61
|
-
- **Input:** Raw user request (string)
|
|
62
|
-
- **Output:** Clarification questions OR Completed PRD
|
|
63
|
-
|
|
64
|
-
### 3.2 Orchestrated Mode
|
|
65
|
-
|
|
66
|
-
- **Input:** Schema-validated input including `contextSchema`, `initialRequest`, `constraints`, `metadata`. (See `input-contract.schema.json`)
|
|
67
|
-
- **Output:** Schema-validated clarification questions OR Completed PRD. (See `output-contract.schema.json`)
|
|
68
|
-
|
|
69
|
-
---
|
|
70
|
-
|
|
71
|
-
## 4. Internal Processing Flow
|
|
72
|
-
|
|
73
|
-
1. Extract entities and scope.
|
|
74
|
-
2. Classify change type:
|
|
75
|
-
- UI only
|
|
76
|
-
- UI + state logic
|
|
77
|
-
- Architecture change
|
|
78
|
-
- Refactor
|
|
79
|
-
- Bug fix
|
|
80
|
-
- Performance
|
|
81
|
-
- Integration
|
|
82
|
-
3. Detect missing information.
|
|
83
|
-
4. Generate clarification questions.
|
|
84
|
-
5. Validate completeness.
|
|
85
|
-
6. Construct final PRD.
|
|
86
|
-
|
|
87
|
-
---
|
|
88
|
-
|
|
89
|
-
## 5. Built-in PRD Template
|
|
90
|
-
|
|
91
|
-
When generating the final PRD, follow this exact structure:
|
|
92
|
-
|
|
93
|
-
```markdown
|
|
94
|
-
# PRD: {Feature Name}
|
|
95
|
-
|
|
96
|
-
Version: 0.1.0
|
|
97
|
-
|
|
98
|
-
## 1. Overview
|
|
99
|
-
Brief summary of the feature.
|
|
100
|
-
|
|
101
|
-
## 2. Context
|
|
102
|
-
Product:
|
|
103
|
-
Module:
|
|
104
|
-
User Role:
|
|
105
|
-
Tech Stack:
|
|
106
|
-
|
|
107
|
-
## 3. Problem Statement
|
|
108
|
-
Clear definition of the current issue.
|
|
109
|
-
|
|
110
|
-
## 4. Goals
|
|
111
|
-
- Goal 1
|
|
112
|
-
- Goal 2
|
|
113
|
-
|
|
114
|
-
## 5. Non-Goals
|
|
115
|
-
- Explicit exclusions
|
|
116
|
-
|
|
117
|
-
## 6. Functional Requirements
|
|
118
|
-
FR-1:
|
|
119
|
-
FR-2:
|
|
120
|
-
|
|
121
|
-
## 7. Non-Functional Requirements
|
|
122
|
-
NFR-1:
|
|
123
|
-
NFR-2:
|
|
124
|
-
|
|
125
|
-
## 8. Constraints
|
|
126
|
-
- Architectural constraints
|
|
127
|
-
- Tech constraints
|
|
128
|
-
- Design constraints
|
|
129
|
-
|
|
130
|
-
## 9. Edge Cases
|
|
131
|
-
- Case 1
|
|
132
|
-
- Case 2
|
|
133
|
-
|
|
134
|
-
## 10. Acceptance Criteria (Gherkin)
|
|
135
|
-
Given
|
|
136
|
-
When
|
|
137
|
-
Then
|
|
138
|
-
|
|
139
|
-
## 11. Verification
|
|
140
|
-
- How to test
|
|
141
|
-
- Where to test
|
|
142
|
-
- Observability checks
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
---
|
|
146
|
-
|
|
147
|
-
## 6. Output Location & Format
|
|
148
|
-
|
|
149
|
-
**Direct Mode:**
|
|
150
|
-
- You MUST follow `rules/core/requirements-package-standard.mdc` (via `rules/core/documentation-management.mdc` for the `requirements` category).
|
|
151
|
-
- Before saving, ASK the user to confirm the feature name (`<name>`) or to suggest a custom path.
|
|
152
|
-
- The default target path is: `<current_project_root>/docs/requirements/<name>/prd.md` — no date-stamped folder.
|
|
153
|
-
- If the requirements package (`README.md`, `prd.md`, `specification.md`) does not exist yet, create it; otherwise update `prd.md` in place and bump its `Version` field rather than creating a parallel copy.
|
|
154
|
-
- Default to a single document in the project's documentation language (`en` unless the project states otherwise). Generate additional language variants only when the user explicitly asks for them, and keep any variants you create synchronized.
|
|
155
|
-
- You MUST NOT create a single file in the generic `docs/` root.
|
|
156
|
-
|
|
157
|
-
**Orchestrated Mode:**
|
|
158
|
-
- The PRD MUST be saved within the active job's directory for traceability: `<JOBS_ROOT>/<current_job>/`
|
|
159
|
-
- Follow the orchestrator's constraints for exact file naming in the job context.
|
|
160
|
-
|
|
161
|
-
---
|
|
162
|
-
|
|
163
|
-
## 7. API Contract Design
|
|
164
|
-
|
|
165
|
-
Both Direct Mode and Orchestrated Mode adhere to strict JSON schemas to ensure reliable inter-agent communication.
|
|
166
|
-
|
|
167
|
-
- **Input Schema:** Defines the incoming request context. (See `input-contract.schema.json`)
|
|
168
|
-
- **Output Schema:** Defines the response structure, which is either an array of clarification questions or a finalized PRD payload. (See `output-contract.schema.json`)
|
|
169
|
-
|
|
170
|
-
---
|
|
171
|
-
|
|
172
|
-
## 8. Quality Control Checklist
|
|
173
|
-
|
|
174
|
-
Before finalizing PRD, the agent MUST verify:
|
|
175
|
-
|
|
176
|
-
- [ ] Is the business goal clearly defined?
|
|
177
|
-
- [ ] Are technical/design constraints explicit?
|
|
178
|
-
- [ ] Are non-goals present and clear?
|
|
179
|
-
- [ ] Are all acceptance criteria testable and formatted in Gherkin?
|
|
180
|
-
- [ ] Is the verification method fully defined?
|
|
181
|
-
- [ ] Is the potential architecture impact clear?
|
|
182
|
-
|
|
183
|
-
**CRITICAL:** If any answer is NO → The PRD must not be finalized. Return to the user/orchestrator with clarification questions.
|
|
184
|
-
|
|
185
|
-
---
|
|
186
|
-
|
|
187
|
-
## 9. Intended Usage
|
|
188
|
-
|
|
189
|
-
Designed for multi-agent orchestration pipelines, such as:
|
|
190
|
-
|
|
191
|
-
`User → Intent Agent → PRD-Creator → Tech Spec Agent → Code Agent`
|
|
192
|
-
|
|
193
|
-
All programmatic interactions are strictly schema-validated.
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: prd-creator
|
|
3
|
-
description: "Use when a vague or unstructured request needs to be converted into a formal, testable Product Requirements Document."
|
|
4
|
-
triggers:
|
|
5
|
-
- "Create a PRD"
|
|
6
|
-
- "Formulate requirements"
|
|
7
|
-
- "Write a product requirements document"
|
|
8
|
-
- "Draft PRD"
|
|
9
|
-
- "Analyze requirements"
|
|
10
|
-
metadata:
|
|
11
|
-
author: "MrCipherSmith"
|
|
12
|
-
version: "1.0.0"
|
|
13
|
-
category: "planning"
|
|
14
|
-
compatible_harnesses: "cursor,codex,zed,opencode,claude"
|
|
15
|
-
license: "MIT"
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
# PRD-Creator Sub-Agent
|
|
19
|
-
|
|
20
|
-
## 1. Purpose
|
|
21
|
-
|
|
22
|
-
The PRD-Creator transforms unstructured user requests into structured, complete, and testable Product Requirements Documents (PRD).
|
|
23
|
-
|
|
24
|
-
It operates in two modes:
|
|
25
|
-
- **Direct Mode** — interacts directly with the user.
|
|
26
|
-
- **Orchestrated Mode** — invoked by another agent with structured context input.
|
|
27
|
-
|
|
28
|
-
---
|
|
29
|
-
|
|
30
|
-
## 2. Responsibilities
|
|
31
|
-
|
|
32
|
-
The agent MUST:
|
|
33
|
-
|
|
34
|
-
1. Analyze the initial request.
|
|
35
|
-
2. Detect ambiguities and missing context.
|
|
36
|
-
3. Generate clarification questions.
|
|
37
|
-
4. Prefer multiple-choice questions when possible.
|
|
38
|
-
5. Ask open-ended questions only when unavoidable.
|
|
39
|
-
6. Limit clarification rounds to 7 questions per iteration.
|
|
40
|
-
7. Generate a complete PRD only after ambiguities are resolved.
|
|
41
|
-
8. Always include:
|
|
42
|
-
- Goals
|
|
43
|
-
- Non-Goals
|
|
44
|
-
- Functional Requirements
|
|
45
|
-
- Non-Functional Requirements
|
|
46
|
-
- Constraints
|
|
47
|
-
- Acceptance Criteria (Gherkin)
|
|
48
|
-
- Verification Section
|
|
49
|
-
|
|
50
|
-
The agent MUST NOT:
|
|
51
|
-
- Assume missing context.
|
|
52
|
-
- Skip constraint validation.
|
|
53
|
-
- Produce incomplete PRDs.
|
|
54
|
-
|
|
55
|
-
---
|
|
56
|
-
|
|
57
|
-
## 3. Operational Modes
|
|
58
|
-
|
|
59
|
-
### 3.1 Direct Mode
|
|
60
|
-
|
|
61
|
-
- **Input:** Raw user request (string)
|
|
62
|
-
- **Output:** Clarification questions OR Completed PRD
|
|
63
|
-
|
|
64
|
-
### 3.2 Orchestrated Mode
|
|
65
|
-
|
|
66
|
-
- **Input:** Schema-validated input including `contextSchema`, `initialRequest`, `constraints`, `metadata`. (See `input-contract.schema.json`)
|
|
67
|
-
- **Output:** Schema-validated clarification questions OR Completed PRD. (See `output-contract.schema.json`)
|
|
68
|
-
|
|
69
|
-
---
|
|
70
|
-
|
|
71
|
-
## 4. Internal Processing Flow
|
|
72
|
-
|
|
73
|
-
1. Extract entities and scope.
|
|
74
|
-
2. Classify change type:
|
|
75
|
-
- UI only
|
|
76
|
-
- UI + state logic
|
|
77
|
-
- Architecture change
|
|
78
|
-
- Refactor
|
|
79
|
-
- Bug fix
|
|
80
|
-
- Performance
|
|
81
|
-
- Integration
|
|
82
|
-
3. Detect missing information.
|
|
83
|
-
4. Generate clarification questions.
|
|
84
|
-
5. Validate completeness.
|
|
85
|
-
6. Construct final PRD.
|
|
86
|
-
|
|
87
|
-
---
|
|
88
|
-
|
|
89
|
-
## 5. Built-in PRD Template
|
|
90
|
-
|
|
91
|
-
When generating the final PRD, follow this exact structure:
|
|
92
|
-
|
|
93
|
-
```markdown
|
|
94
|
-
# PRD: {Feature Name}
|
|
95
|
-
|
|
96
|
-
Version: 0.1.0
|
|
97
|
-
|
|
98
|
-
## 1. Overview
|
|
99
|
-
Brief summary of the feature.
|
|
100
|
-
|
|
101
|
-
## 2. Context
|
|
102
|
-
Product:
|
|
103
|
-
Module:
|
|
104
|
-
User Role:
|
|
105
|
-
Tech Stack:
|
|
106
|
-
|
|
107
|
-
## 3. Problem Statement
|
|
108
|
-
Clear definition of the current issue.
|
|
109
|
-
|
|
110
|
-
## 4. Goals
|
|
111
|
-
- Goal 1
|
|
112
|
-
- Goal 2
|
|
113
|
-
|
|
114
|
-
## 5. Non-Goals
|
|
115
|
-
- Explicit exclusions
|
|
116
|
-
|
|
117
|
-
## 6. Functional Requirements
|
|
118
|
-
FR-1:
|
|
119
|
-
FR-2:
|
|
120
|
-
|
|
121
|
-
## 7. Non-Functional Requirements
|
|
122
|
-
NFR-1:
|
|
123
|
-
NFR-2:
|
|
124
|
-
|
|
125
|
-
## 8. Constraints
|
|
126
|
-
- Architectural constraints
|
|
127
|
-
- Tech constraints
|
|
128
|
-
- Design constraints
|
|
129
|
-
|
|
130
|
-
## 9. Edge Cases
|
|
131
|
-
- Case 1
|
|
132
|
-
- Case 2
|
|
133
|
-
|
|
134
|
-
## 10. Acceptance Criteria (Gherkin)
|
|
135
|
-
Given
|
|
136
|
-
When
|
|
137
|
-
Then
|
|
138
|
-
|
|
139
|
-
## 11. Verification
|
|
140
|
-
- How to test
|
|
141
|
-
- Where to test
|
|
142
|
-
- Observability checks
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
---
|
|
146
|
-
|
|
147
|
-
## 6. Output Location & Format
|
|
148
|
-
|
|
149
|
-
**Direct Mode:**
|
|
150
|
-
- You MUST follow `rules/core/requirements-package-standard.mdc` (via `rules/core/documentation-management.mdc` for the `requirements` category).
|
|
151
|
-
- Before saving, ASK the user to confirm the feature name (`<name>`) or to suggest a custom path.
|
|
152
|
-
- The default target path is: `<current_project_root>/docs/requirements/<name>/prd.md` — no date-stamped folder.
|
|
153
|
-
- If the requirements package (`README.md`, `prd.md`, `specification.md`) does not exist yet, create it; otherwise update `prd.md` in place and bump its `Version` field rather than creating a parallel copy.
|
|
154
|
-
- Default to a single document in the project's documentation language (`en` unless the project states otherwise). Generate additional language variants only when the user explicitly asks for them, and keep any variants you create synchronized.
|
|
155
|
-
- You MUST NOT create a single file in the generic `docs/` root.
|
|
156
|
-
|
|
157
|
-
**Orchestrated Mode:**
|
|
158
|
-
- The PRD MUST be saved within the active job's directory for traceability: `<JOBS_ROOT>/<current_job>/`
|
|
159
|
-
- Follow the orchestrator's constraints for exact file naming in the job context.
|
|
160
|
-
|
|
161
|
-
---
|
|
162
|
-
|
|
163
|
-
## 7. API Contract Design
|
|
164
|
-
|
|
165
|
-
Both Direct Mode and Orchestrated Mode adhere to strict JSON schemas to ensure reliable inter-agent communication.
|
|
166
|
-
|
|
167
|
-
- **Input Schema:** Defines the incoming request context. (See `input-contract.schema.json`)
|
|
168
|
-
- **Output Schema:** Defines the response structure, which is either an array of clarification questions or a finalized PRD payload. (See `output-contract.schema.json`)
|
|
169
|
-
|
|
170
|
-
---
|
|
171
|
-
|
|
172
|
-
## 8. Quality Control Checklist
|
|
173
|
-
|
|
174
|
-
Before finalizing PRD, the agent MUST verify:
|
|
175
|
-
|
|
176
|
-
- [ ] Is the business goal clearly defined?
|
|
177
|
-
- [ ] Are technical/design constraints explicit?
|
|
178
|
-
- [ ] Are non-goals present and clear?
|
|
179
|
-
- [ ] Are all acceptance criteria testable and formatted in Gherkin?
|
|
180
|
-
- [ ] Is the verification method fully defined?
|
|
181
|
-
- [ ] Is the potential architecture impact clear?
|
|
182
|
-
|
|
183
|
-
**CRITICAL:** If any answer is NO → The PRD must not be finalized. Return to the user/orchestrator with clarification questions.
|
|
184
|
-
|
|
185
|
-
---
|
|
186
|
-
|
|
187
|
-
## 9. Intended Usage
|
|
188
|
-
|
|
189
|
-
Designed for multi-agent orchestration pipelines, such as:
|
|
190
|
-
|
|
191
|
-
`User → Intent Agent → PRD-Creator → Tech Spec Agent → Code Agent`
|
|
192
|
-
|
|
193
|
-
All programmatic interactions are strictly schema-validated.
|