Skip to content

Commit a1d2168

Browse files
πŸ“[Enhancement]: Add structured reporting for analysis, clarification, specification, planning, and task generation prompts
1 parent 0b6bdd2 commit a1d2168

File tree

5 files changed

+68
-5
lines changed

5 files changed

+68
-5
lines changed

β€Ž.github/prompts/analyze.prompt.mdβ€Ž

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,46 @@ Execution steps:
9494
* Duplication Count
9595
* Critical Issues Count
9696

97-
7. At end of report, output a concise Next Actions block:
97+
7. **Post issue comment** with analysis results organized by severity:
98+
- Post a comment to the GitHub issue with the analysis findings
99+
- Format the comment with separate tables for each severity level (only include levels that have findings):
100+
```markdown
101+
## Analysis Report
102+
103+
### Summary
104+
- Total Requirements: X
105+
- Total Tasks: Y
106+
- Coverage: Z%
107+
- Issues Found: N (A critical, B high, C medium, D low)
108+
109+
### Critical Issues
110+
| ID | Category | Location(s) | Summary | Recommendation |
111+
|----|----------|-------------|---------|----------------|
112+
| C1 | ... | ... | ... | ... |
113+
114+
### High Priority Issues
115+
| ID | Category | Location(s) | Summary | Recommendation |
116+
|----|----------|-------------|---------|----------------|
117+
| H1 | ... | ... | ... | ... |
118+
119+
### Medium Priority Issues
120+
| ID | Category | Location(s) | Summary | Recommendation |
121+
|----|----------|-------------|---------|----------------|
122+
| M1 | ... | ... | ... | ... |
123+
124+
### Low Priority Issues
125+
| ID | Category | Location(s) | Summary | Recommendation |
126+
|----|----------|-------------|---------|----------------|
127+
| L1 | ... | ... | ... | ... |
128+
129+
### Next Actions
130+
- [Recommendation based on findings]
131+
```
132+
- Keep tables concise, limit to 20 findings per severity level
133+
- If more than 20 findings in a category, add a note: "_(Additional N issues not shown - see full report)_"
134+
- Include the complete "Next Actions" block with specific recommendations
135+
136+
8. At end of report, output a concise Next Actions block:
98137
- If CRITICAL issues exist: Recommend resolving them before `/implement`.
99138
- If only LOW/MEDIUM issues: User may proceed, but provide improvement suggestions.
100139
- Provide explicit command suggestions: e.g., "Run /specify with refinement", "Run /plan to adjust architecture", or "Manually edit tasks.md to add coverage for 'performance-metrics'".

β€Ž.github/prompts/clarify.prompt.mdβ€Ž

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,24 @@ Execution steps:
142142

143143
7. Write the updated spec back to `FEATURE_SPEC`.
144144

145-
8. Report completion (after questioning loop ends or early termination):
145+
8. **Post issue comment** with clarification summary (only if questions were asked and answered):
146+
- Post a comment to the GitHub issue summarizing the clarifications
147+
- Format the comment as:
148+
```markdown
149+
## Clarification Session (YYYY-MM-DD)
150+
151+
| # | Question | Answer |
152+
|---|----------|--------|
153+
| 1 | <question text> | <answer text> |
154+
| 2 | <question text> | <answer text> |
155+
| ... | ... | ... |
156+
157+
_All clarifications have been integrated into the specification._
158+
```
159+
- Keep the table concise and readable
160+
- Include all questions asked and answers received during this session (up to 5)
161+
162+
9. Report completion (after questioning loop ends or early termination):
146163
- Number of questions asked & answered.
147164
- Path to updated spec.
148165
- Sections touched (list names).

β€Ž.github/prompts/plan.prompt.mdβ€Ž

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Given the implementation details provided as an argument, do this:
2323
- **If exists**: You are ITERATING on an existing plan. User input should guide refinements/additions to the existing plan content.
2424
- **If not exists**: You are CREATING a new plan from scratch.
2525
- BEFORE proceeding, inspect FEATURE_SPEC for a `## Clarifications` section with at least one `Session` subheading. If missing or clearly ambiguous areas remain (vague adjectives, unresolved critical choices), PAUSE and instruct the user to run `/clarify` first to reduce rework. Only continue if: (a) Clarifications exist OR (b) an explicit user override is provided (e.g., "proceed without clarification"). Do not attempt to fabricate clarifications yourself.
26+
2627
2. Read and analyze the feature specification to understand:
2728
- The feature requirements and user stories
2829
- Functional and non-functional requirements
@@ -138,6 +139,8 @@ Given the implementation details provided as an argument, do this:
138139
gh issue edit <issue-number> --remove-label "Specification" --add-label "Plan"
139140
```
140141

141-
9. Report results with branch name, PR URL, file paths, and generated artifacts.
142+
9. **Post final status comment**: "βœ… Planning complete. Ready for task generation with `/tasks` or analysis with `/analyze`."
143+
144+
10. Report results with branch name, PR URL, file paths, and generated artifacts.
142145

143146
Use absolute paths with the repository root for all file operations to avoid path issues.

β€Ž.github/prompts/specify.prompt.mdβ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ Given that feature description, do this:
137137
gh issue edit <issue-number> --body-file <SPEC_FILE>
138138
```
139139

140-
8. Report completion with branch name, spec file path, whether it's a new or updated feature, issue number, target repository (if fork), and readiness for the next phase.
140+
8. **Post final status comment**: "βœ… Specification complete. Ready for clarification with `/clarify` or planning with `/plan`."
141+
142+
9. Report completion with branch name, spec file path, whether it's a new or updated feature, issue number, target repository (if fork), and readiness for the next phase.
141143

142144
Note: The script handles branch creation/reuse and initializes the spec file before writing.

β€Ž.github/prompts/tasks.prompt.mdβ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ $ARGUMENTS
109109
rm temp_body.md
110110
```
111111

112-
9. Report completion with task count, file path, and PR update status.
112+
9. **Post final status comment**: "βœ… Task list ready. Run `/analyze` for quality check or `/implement` to begin execution."
113+
114+
10. Report completion with task count, file path, and PR update status.
113115

114116
Context for task generation: $ARGUMENTS
115117

0 commit comments

Comments
Β (0)