Skip to content

Commit 91de5d9

Browse files
chore: streamline implementation prompt by removing redundant steps and clarifying GitHub integration instructions
1 parent b65fd9a commit 91de5d9

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

.github/prompts/implement.prompt.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,20 @@ $ARGUMENTS
2626
- Get the issue number associated with the current feature branch
2727
- **Add 'Implementing' label** to the issue and PR immediately in the target repository
2828
- **Remove 'Planning' label** from the issue and PR
29-
3029
**GitHub Integration**: If GitHub tools are available, update labels automatically in the target repository. If not available, use:
3130
```bash
3231
# If fork: gh issue edit <issue-number> --repo <upstream_owner>/<upstream_repo> --remove-label "Planning" --add-label "Implementing"
3332
# If local: gh issue edit <issue-number> --remove-label "Planning" --add-label "Implementing"
3433
gh issue edit <issue-number> --remove-label "Planning" --add-label "Implementing"
3534
```
36-
3735
2. Run [`.specify/scripts/powershell/check-prerequisites.ps1 -Json -RequireTasks -IncludeTasks`](../../.specify/scripts/powershell/check-prerequisites.ps1) from repo root and parse FEATURE_DIR and AVAILABLE_DOCS list. All paths must be absolute.
38-
3936
3. Load and analyze the implementation context:
4037
- **REQUIRED**: Read tasks.md for the complete task list and execution plan
4138
- **REQUIRED**: Read plan.md for tech stack, architecture, and file structure
4239
- **IF EXISTS**: Read data-model.md for entities and relationships
4340
- **IF EXISTS**: Read contracts/ for API specifications and test requirements
4441
- **IF EXISTS**: Read research.md for technical decisions and constraints
4542
- **IF EXISTS**: Read quickstart.md for integration scenarios
46-
4743
4. Parse tasks.md structure and extract:
4844
- **Detect iteration state**: Check task completion markers
4945
- Tasks marked [X] are complete - skip unless user requests changes
@@ -53,7 +49,6 @@ $ARGUMENTS
5349
- **Task dependencies**: Sequential vs parallel execution rules
5450
- **Task details**: ID, description, file paths, parallel markers [P]
5551
- **Execution flow**: Order and dependency requirements
56-
5752
5. Execute implementation following the task plan:
5853
- **Skip completed tasks**: Don't re-implement tasks marked [X] unless explicitly requested
5954
- **Resume from last incomplete task**: Start with first [ ] task found
@@ -62,14 +57,12 @@ $ARGUMENTS
6257
- **Follow TDD approach**: Execute test tasks before their corresponding implementation tasks
6358
- **File-based coordination**: Tasks affecting the same files must run sequentially
6459
- **Validation checkpoints**: Verify each phase completion before proceeding
65-
6660
6. Implementation execution rules:
6761
- **Setup first**: Initialize project structure, dependencies, and configuration
6862
- **Tests before code**: If you need to write tests for contracts, entities, and integration scenarios
6963
- **Core development**: Implement models, services, CLI commands, and endpoints
7064
- **Integration work**: Database connections, middleware, logging, and external services
7165
- **Polish and validation**: Unit tests, performance optimization, and documentation
72-
7366
7. Progress tracking and error handling:
7467
- Report progress after each completed task
7568
- Halt execution if any non-parallel task fails
@@ -83,21 +76,18 @@ $ARGUMENTS
8376
* If GitHub tools are available, use them to update the PR description
8477
* If not available, use: `gh pr edit <PR-number> --body "<updated-description>"`
8578
* Ensure task progress is visible in real-time to users watching the PR
86-
8779
8. Completion validation:
8880
- Verify all required tasks are completed
8981
- Check that implemented features match the original specification
9082
- Validate that tests pass and coverage meets requirements
9183
- Confirm the implementation follows the technical plan
9284
- Report final status with summary of completed work
93-
9485
9. Update the constitution:
9586
- Read the [Constitution](../../.specify/memory/constitution.md) file.
9687
- Read the [constitution prompt](./constitution.prompt.md) for guidance on how to update the constitution.
9788
- Update the constitution file with details on what has been implemented in this PR
9889
- Document the functionality that was added or changed, remove the sections that are no longer relevant
9990
- Ensure the constitution reflects the current state of the codebase
100-
10191
10. Update the CHANGELOG:
10292
- **Locate or create CHANGELOG.md** in the repository root
10393
- **Add a new entry** for this feature/change following the Keep a Changelog format
@@ -115,7 +105,6 @@ $ARGUMENTS
115105
* Include brief usage examples where helpful
116106
* Link to the PR or issue: `[#<issue-number>]`
117107
- **Keep it concise**: Focus on user-impacting changes, not internal refactoring details
118-
119108
11. Final commit and push:
120109
- **Stage all implemented changes** including:
121110
* All source code files created or modified
@@ -129,7 +118,6 @@ $ARGUMENTS
129118
* Include reference to issue: `Fixes #<issue-number>`
130119
- **Push the branch** to remote
131120
- Verify the push completed successfully
132-
133121
12. Update PR description with release notes:
134122
- **Determine workflow mode and target repository**:
135123
- Check if `.fork-info.json` exists in the feature directory (same directory as spec.md)
@@ -147,7 +135,6 @@ $ARGUMENTS
147135
- **Retrieve the issue title**: Get the title from the linked GitHub issue (created in `/specify`) from the target repository
148136
- **Use the same title for the PR**: Verify the PR title matches the issue title exactly. If they differ, update the PR title to match the issue.
149137
- If unable to retrieve the issue title, determine the PR type and icon based on the changes:
150-
151138
| Type of change | Icon | Label |
152139
|-|-|-|
153140
| Docs | 📖 | Docs |
@@ -156,7 +143,6 @@ $ARGUMENTS
156143
| Patch | 🩹 | Patch |
157144
| Feature | 🚀 | Minor |
158145
| Breaking change | 🌟 | Major |
159-
160146
- Fallback PR title format (if issue title unavailable): `<Icon> [Type of change]: <Short description>`
161147
- **REPLACE the entire PR description with release notes**:
162148
* **IMPORTANT**: Clear the existing PR description completely (including task list) and replace it with the release notes
@@ -191,15 +177,13 @@ $ARGUMENTS
191177
- **Apply appropriate label(s)** based on the type of change
192178
- **Link the PR** to the associated issue
193179
- **Update `.fork-info.json`** (if it exists) with the latest PR number (if not already present)
194-
195180
**GitHub Integration**: If GitHub tools or integrations are available (such as GitHub MCP Server or other GitHub integrations), use them to update the PR description in the target repository. If not available, provide this fallback command:
196181
```bash
197182
# Replace PR description with release notes
198183
# If fork: gh pr edit <PR-number> --repo <upstream_owner>/<upstream_repo> --body "<release-note-description>"
199184
# If local: gh pr edit <PR-number> --body "<release-note-description>"
200185
gh pr edit <PR-number> --body "<release-note-description>"
201186
```
202-
203187
13. Mark PR as ready for review:
204188
- **Determine target repository** (same logic as step 12):
205189
- Check if `.fork-info.json` exists in the feature directory
@@ -208,7 +192,6 @@ $ARGUMENTS
208192
- **Remove 'Implementing' label** from the linked issue and the PR in the target repository
209193
- **Mark PR as ready for review** (no longer draft)
210194
- **After updates**: Ensure `.fork-info.json` (if it exists) has both issue and PR numbers stored
211-
212195
**GitHub Integration**: If GitHub tools are available, update labels and PR status automatically in the target repository. If not available, use:
213196
```bash
214197
# Mark PR as ready for review

0 commit comments

Comments
 (0)