一键导入
implement
Execute implementation workflow phase by phase. Use after analysis passes. Triggers on: start implementation, implement feature, begin coding.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Execute implementation workflow phase by phase. Use after analysis passes. Triggers on: start implementation, implement feature, begin coding.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | implement |
| description | Execute implementation workflow phase by phase. Use after analysis passes. Triggers on: start implementation, implement feature, begin coding. |
Guide systematic implementation of features using TDD and quality-first approach.
Note: This skill uses generic placeholders. Adapt commands and paths to your project:
- Quality commands: Check your
package.json,Makefile, or build config- File paths: Adjust based on your project structure
- Examples show common conventions - your project may differ
This skill is Step 6 of 6 in the Relentless workflow:
specify → plan → tasks → convert → analyze → implement
Prerequisites:
spec.md - Feature specificationplan.md - Technical implementation plantasks.md - User stories with acceptance criteriaprd.json - Converted PRD with routing metadatachecklist.md - Quality validation checklist/relentless.analyze first)Implement user stories one at a time, following strict TDD and updating all tracking files.
/relentless.analyze if not already donebranchNameBefore marking ANY story as complete, ALL quality checks must pass.
Find your project's commands (examples for different ecosystems):
# JavaScript/TypeScript (npm/yarn/bun/pnpm):
npm run typecheck && npm run lint && npm test
# Python:
mypy . && ruff check . && pytest
# Go:
go build ./... && golangci-lint run && go test ./...
# Rust:
cargo check && cargo clippy && cargo test
Requirements:
If ANY check fails, DO NOT mark the story as complete. Fix the issues first.
For EVERY story, follow strict Test-Driven Development:
# Create test file if needed
# Write tests that define expected behavior
# Run your test command - tests MUST fail initially
# Write only enough code to pass tests
# Run tests - they MUST pass now
# Clean up while keeping tests green
# Run tests - they MUST still pass
Do NOT skip TDD. Tests are contracts that validate your implementation.
research: true)If the current story has research: true in prd.json and no research file exists yet:
relentless/features/<feature>/research/<story-id>.md:
For each story (in dependency order):
prd.json to find the next story where passes: falsepasses: true)checklist.md[US-XXX] for this storyFollow the TDD workflow above for each acceptance criterion.
As you complete each criterion:
# Change from:
- [ ] Criterion text
# To:
- [x] Criterion text
For each verified checklist item:
# Change from:
- [ ] CHK-XXX [US-001] Description
# To:
- [x] CHK-XXX [US-001] Description
# Run your project's quality commands
# All must pass with 0 errors/warnings
git add -A
git commit -m "feat: US-XXX - Story Title"
Set the story's passes field to true:
{
"id": "US-001",
"title": "...",
"passes": true, // <- Change from false to true
...
}
Append progress entry:
## [Date] - US-XXX: Story Title
**Implemented:**
- What was built
- Key decisions made
**Files Changed:**
- path/to/file (new/modified)
**Tests Added:**
- path/to/test.file
**Learnings:**
- Patterns discovered
- Gotchas encountered
**Constitution Compliance:**
- [list principles followed]
---
Between iterations, check .queue.txt for user input:
# If .queue.txt exists, read and process it
# Acknowledge in progress.txt
# Process in FIFO order
After completing each story, these files MUST be updated:
| File | Update |
|---|---|
tasks.md | Check off - [x] completed acceptance criteria |
checklist.md | Check off - [x] verified checklist items |
prd.json | Set "passes": true for the story |
progress.txt | Append progress entry with learnings |
After completing a user story, check if ALL stories have passes: true.
If ALL stories are complete and passing, output:
<promise>COMPLETE</promise>
If there are still stories with passes: false, end your response normally (another iteration will pick up the next story).
.queue.txt for user input/relentless.analyze before implementing.queue.txt for mid-run inputGenerate quality validation checklist from spec, plan, and tasks. Use after creating tasks. Triggers on: create checklist, quality checklist, validation checklist.
Create or update the project constitution - personalized governance and coding principles. Use when starting a project or updating project standards. Triggers on: create constitution, update principles, set project rules.
Distill learnings from completed features and propose amendments to constitution.md or prompt.md. Use after feature completion. Triggers on: capture learnings, learn from feature, distill learnings, relentless learn.
Generate technical implementation plan from feature specification. Use after creating spec. Triggers on: create plan, technical plan, implementation design.
Create feature specification from natural language description. Use when starting a new feature or creating a spec. Triggers on: create spec, specify feature, new feature spec.
Generate dependency-ordered user stories and tasks from plan. Use after creating plan. Triggers on: create tasks, generate user stories, break down implementation.