Skip to content

Commit c55a727

Browse files
committed
Fix create spec
1 parent d1f1dae commit c55a727

25 files changed

Lines changed: 79 additions & 3775 deletions

.claude/commands/context-explorer.runbook.md

Lines changed: 0 additions & 402 deletions
This file was deleted.

.claude/commands/git/issue-init.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

.claude/commands/git/pr-init.md

Lines changed: 0 additions & 37 deletions
This file was deleted.

.claude/commands/plan.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

.claude/commands/prime.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

.claude/commands/spec/feature.md

Lines changed: 44 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Feature Spec Template Generator
22

3-
Generate a feature spec template file for a new issue. The output should be saved to:
4-
`$PROJECT_ROOT/.claude/specs/feature-[ISSUE_NUMBER]-[SHORTDESC]/SPEC.md`
3+
Generate a feature spec template file for a new issue. The output should be saved to:
4+
`$PROJECT_ROOT/.claude/specs/feat-[ISSUE_NUMBER]-[SHORTDESC]/SPEC.md`
55

66
---
77

@@ -10,9 +10,9 @@ Generate a feature spec template file for a new issue. The output should be save
1010
- **ISSUE_NUMBER**: The numeric identifier for the feature (required)
1111
- **SHORTDESC**: A short description of the feature (kebab-case, required)
1212

13-
Example:
14-
Input: `123-user-dashboard`
15-
Template file path: `.claude/specs/feature-123-user-dashboard/SPEC.md`
13+
Example:
14+
Input: `123-user-dashboard`
15+
Template file path: `.claude/specs/feat-123-user-dashboard/SPEC.md`
1616

1717
---
1818

@@ -21,61 +21,56 @@ Template file path: `.claude/specs/feature-123-user-dashboard/SPEC.md`
2121
When invoked, generate a markdown file containing the following template structure:
2222

2323
```markdown
24-
# Feature: [SHORTDESC] ([ISSUE_NUMBER])
24+
---
25+
task: [SHORTDESC] (Feature #[ISSUE_NUMBER])
26+
test_command: "[REPLACE: command to verify feature works]"
27+
---
2528

26-
> **⚠️ IMPORTANT**: Before implementing this feature, READ `/CLAUDE.md` first.
29+
# Task: [SHORTDESC] (Feature #[ISSUE_NUMBER])
2730

28-
## Summary
31+
> **⚠️ IMPORTANT**: Before implementing this feature, READ `/CLAUDE.md` first.
2932
3033
_A concise summary of the feature and its purpose._
3134

32-
## User Stories
33-
34-
- As a [user type], I want [goal] so that [benefit].
35-
36-
## Acceptance Criteria
37-
38-
- [ ]
39-
- [ ]
40-
- [ ]
41-
42-
## Technical Requirements
35+
## Requirements
4336

44-
_Key technical considerations, constraints, or dependencies._
37+
1. [Requirement 1]
38+
2. [Requirement 2]
39+
3. [Requirement 3]
4540

46-
## Implementation Notes
41+
## Success Criteria
4742

48-
_High-level approach or architecture decisions._
43+
1. [ ] [Testable criterion 1]
44+
2. [ ] [Testable criterion 2]
45+
3. [ ] [Testable criterion 3]
46+
4. [ ] [Testable criterion 4]
47+
5. [ ] [Testable criterion 5]
48+
6. [ ] [Testable criterion 6]
4949

50-
## Dependencies
50+
## Example Output
5151

52-
- _List any blocking issues, APIs, or services._
53-
54-
## Out of Scope
55-
56-
_What is explicitly NOT part of this feature._
57-
58-
## Success Metrics
59-
60-
_How will we measure success?_
61-
62-
## Additional Context
63-
64-
_Mockups, references, or related discussion._
52+
\`\`\`
53+
[Expected output or behavior demonstration]
54+
\`\`\`
6555

6656
---
6757

68-
## Completion
58+
## Ralph Instructions
6959

70-
Output `<promise>DONE</promise>` when all tests green. --max-iterations 50 --completion-promise "DONE"
60+
1. Work on the next incomplete criterion (marked [ ])
61+
2. Check off completed criteria (change [ ] to [x])
62+
3. Run tests after changes
63+
4. Commit your changes frequently
64+
5. When ALL criteria are [x], output: `<ralph>COMPLETE</ralph>`
65+
6. If stuck on the same issue 3+ times, output: `<ralph>GUTTER</ralph>`
7166
```
7267

7368
---
7469

7570
## Workflow
7671

7772
1. _PARSE_ input into `ISSUE_NUMBER` and `SHORTDESC`
78-
2. _GENERATE_ a new markdown file at `.claude/specs/feature-[ISSUE_NUMBER]-[SHORTDESC]/SPEC.md` containing the template above (substitute in the values)
73+
2. _GENERATE_ a new markdown file at `.claude/specs/feat-[ISSUE_NUMBER]-[SHORTDESC]/SPEC.md` containing the template above (substitute in the values)
7974
3. _CONFIRM_ file creation and path
8075

8176
---
@@ -87,33 +82,28 @@ Before the feature spec is considered complete and ready for implementation, ver
8782
### Required Fields
8883

8984
- [ ] **Summary** clearly articulates what the feature does and why it matters
90-
- [ ] **User Stories** has at least one complete user story (As a [user], I want [goal], so that [benefit])
91-
- [ ] **Acceptance Criteria** has 3+ testable, unambiguous criteria (checkbox format)
92-
- [ ] **Technical Requirements** lists key constraints, APIs, or architectural decisions
93-
94-
### Scope Definition
95-
96-
- [ ] **Out of Scope** explicitly states what is NOT part of this feature
97-
- [ ] **Dependencies** lists any blocking issues, external services, or prerequisite work
85+
- [ ] **Requirements** has at least 3 specific implementation requirements
86+
- [ ] **Success Criteria** has 3+ testable, unambiguous criteria (numbered checkbox format)
87+
- [ ] **test_command** in frontmatter specifies a valid verification command
9888

9989
### Quality Checks
10090

101-
- [ ] Acceptance criteria are verifiable (can be tested yes/no)
91+
- [ ] Success criteria are verifiable (can be tested yes/no)
10292
- [ ] Feature scope is achievable in a single PR or sprint
10393
- [ ] No ambiguous language ("should work", "might need", "probably")
104-
- [ ] Success metrics are measurable
94+
- [ ] Example output demonstrates expected behavior
10595

10696
### Optional but Recommended
10797

108-
- [ ] **Implementation Notes** sketches the high-level approach
109-
- [ ] **Additional Context** includes mockups, references, or discussion links
110-
- [ ] **Success Metrics** defines how success will be measured post-launch
98+
- [ ] **Example Output** shows concrete expected behavior
99+
- [ ] Success criteria are numbered for easy reference
111100

112101
---
113102

114103
## Report
115104

116105
Confirm:
117106

118-
- Template file created at correct path
119-
- ISSUE_NUMBER and SHORTDESC substituted into title
107+
- Template file created at correct path: `.claude/specs/feat-[ISSUE_NUMBER]-[SHORTDESC]/SPEC.md`
108+
- ISSUE_NUMBER and SHORTDESC substituted into YAML frontmatter and title
109+
- Ralph Instructions section included for autonomous execution

.claude/commands/worktree.md

Lines changed: 0 additions & 33 deletions
This file was deleted.

.claude/outputs/pr-announcements/index.md

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)