用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/kofj/rdd --skill rdd-stage-auto命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
RDD core philosophy and paradigm reference: humans lay the roadmap, agents execute autonomously
Diagnose RDD project issues, analyze root causes, and provide remediation recommendations
Verify that a fresh agent can take over the RDD project from documentation alone
正在显示 SKILL.md
| name | rdd-stage-auto |
| description | Execute a complete RDD stage autonomously through all 5 quality gates with verification |
Purpose: Execute a complete RDD Stage autonomously with gate verification, design document generation, review triggering, and completion verification.
This skill guides the autonomous execution of an RDD Stage from start to finish. It ensures all gates are properly verified, documents are generated, reviews are triggered, and completion criteria are met before marking a stage as complete.
When to Use:
Command: /rdd-stage-auto [stage-number]
GATE 0: Stage Startup Check
|
v
GATE 1: Design Document Pre-Check
|
v
GATE 2: Design Review (Before Coding)
|
v
GATE 3: Implementation & Testing
|
v
GATE 4: Code Review (After E2E Pass)
|
v
GATE 5: Completion Gate Check
Verify all prerequisites are met before starting the Stage.
Check Roadmap Exists
# Verify roadmap file exists
ls docs/stages/stage-roadmap.md
Verify Prerequisites Met
docs/stages/stage-roadmap.mdCheck for Roadmap Changes
Load Context
docs/08-autonomous-decisions.mddocs/12-technical-debt.mddocs/stages/stage-N.mddocs/11-next-steps.mdCheck for Existing Stage Document
ls docs/stages/stage-N.md
If prerequisites not met:
docs/11-next-steps.mdEnsure a proper design document exists before any implementation.
Check for Existing Design Document
ls docs/stages/stage-N.md
If Design Document Missing
rdd-templates.mdIf Design Document Exists, Verify Completeness
Use the Stage Template from .claude/skills/rdd-templates/SKILL.md:
# Stage N: [Title]
## Status
[ ] Planning / [ ] In Progress / [ ] Complete
## Goals
[What this stage specifically solves - be precise and limited]
## Non-Goals
[What this stage explicitly does NOT do]
## Core Hypotheses
- Hypothesis A: [Description]
- Hypothesis B: [Description]
## Acceptance Criteria
- [ ] [Testable criterion A]
- [ ] [Testable criterion B]
## Rollback Plan
[Which version to fall back to if this stage fails]
## Known Limitations
- [Limitation A]
- [Limitation B]
## Impact on Subsequent Stages
- [Impact A]
- [Impact B]
---
[Implementation Notes section filled during implementation]
Compare design goals against Roadmap stage definition:
docs/stages/stage-N.mdValidate the design through multi-model review before implementation begins.
Prepare Review Package
docs/stages/stage-N.mdTrigger Multi-Model Review
If the /rdd-review-auto skill exists, invoke it:
/rdd-review-auto design --stage N
Otherwise, perform self-review using these principles:
Apply Review Filters
AI Pre-Filter (expect ~50% false positives):
Rule Filtering (check for common patterns):
Verification Method Priority
Handle Findings
Create Review Log
Use the Review Log Template from rdd-templates.md:
# Stage N Review Log
**Review Type**: Design
**Review Date**: YYYY-MM-DD
**Reviewer**: [Model name or "Human"]
**Stage**: Stage N
[Overall assessment]
[Categorized findings with status]
[What was filtered and why]
[How findings were addressed]
docs/stages/stage-N-review-log.mdImplement the design and verify with tests.
Update Stage Status
## Status
[x] Planning / [x] In Progress / [ ] Complete
Implement Following Design
Write Unit Tests Alongside Code
Write E2E Tests
Run All Tests
# Run unit tests
npm test # or appropriate test command
# Run E2E tests
npm run test:e2e # or appropriate E2E command
Real Environment Verification
Clean Environment Verification
Document Implementation Differences
Update the Implementation Notes section in docs/stages/stage-N.md:
## Implementation Notes
### Implementation Differences
[Any differences from original design]
### Technical Decisions Made
[Decisions made during implementation]
### Testing Evidence
- Unit test coverage: X%
- E2E tests: [list]
- Real environment verification: [description]
- Clean environment verification: [description]
| Test Type | Minimum Requirement |
|---|---|
| Unit Tests | 20% coverage |
| E2E Tests | 2 high-signal paths |
| Real Env | Core functionality verified |
| Clean Env | Local + CI/Staging |
Validate the implementation through multi-model code review.
Prepare Review Package
Trigger Multi-Model Review
If the /rdd-review-auto skill exists, invoke it:
/rdd-review-auto code --stage N
Otherwise, perform self-review using:
Triangulation Verification
Use three sources of verification:
Important: Do NOT rely on "multi-model consensus" alone. Verify each finding independently.
Apply Filters
Verify Each Finding
For each finding, determine:
Handle Findings
Update Review Log
Add code review section to docs/stages/stage-N-review-log.md:
---
## Code Review (Stage N)
**Review Type**: Code
**Review Date**: YYYY-MM-DD
**Reviewer**: [Model name]
### Files Reviewed
- [file1]
[file2]
[Categorized with severity]
[How each finding was addressed]
| Severity | Action | Blocking |
|---|---|---|
| Critical | Fix immediately | Yes |
| High | Fix before completion | Yes |
| Medium | Fix or defer to tech debt | No |
| Low | Document only | No |
Verify all stage completion criteria are met before marking complete.
Hypotheses Verification
Test Reproducibility
Design-Implementation Alignment
CLI Subcommands (if new capabilities added)
Technical Debt Ledger
docs/12-technical-debt.mdADR Recording
docs/08-autonomous-decisions.mdFresh Agent Check
All documents must be updated synchronously (no "docs pending"):
| Document | File Path | What to Update |
|---|---|---|
| Stage Document | docs/stages/stage-N.md | Implementation differences, status to Complete |
| Review Log | docs/stages/stage-N-review-log.md | Final resolution summary |
| ADRs | docs/08-autonomous-decisions.md | Any decisions made |
| Tech Debt | docs/12-technical-debt.md | New debt, resolved debt |
| Next Steps | docs/11-next-steps.md | Progress update |
| Changelog | CHANGELOG.md | Stage changes |
Stage Document (docs/stages/stage-N.md)
## Status
[x] Planning / [x] In Progress / [x] Complete
## Implementation Notes
[All sections filled]
Review Log (docs/stages/stage-N-review-log.md)
## Resolution Summary
**Total Findings**: X
**Fixed**: X
**Deferred**: X
**Wont Fix**: X
**All Critical Fixed**: Yes
**All High Priority Addressed**: Yes
ADRs (docs/08-autonomous-decisions.md)
### Decision N: [Title]
**Background**: ...
**Decision**: ...
**Rationale**: ...
**Impact on Subsequent Stages**: [MUST NOT BE EMPTY]
**Date**: YYYY-MM-DD
**Related Stage**: Stage N
Tech Debt (docs/12-technical-debt.md)
### TD-NN: [Title]
- **Priority**: [Priority]
- **Source**: Stage N
- **Suggested Resolution Stage**: Stage N+X
...
Next Steps (docs/11-next-steps.md)
## Current Progress
- Stage N: Complete
- Next: Stage N+1
## Immediate Actions
[What the next stage should focus on]
Changelog (CHANGELOG.md)
## [Stage N] - YYYY-MM-DD
[New features]
[Changes]
Introduced: TD-XX [Description]
Resolved: TD-XX [Description]
| Gate | Purpose | Key Output |
|---|---|---|
| Gate 0 | Stage Startup | Prerequisites verified, context loaded |
| Gate 1 | Design Pre-Check | Design document complete |
| Gate 2 | Design Review | Design validated, review log created |
| Gate 3 | Implementation | Code written, tests passing |
| Gate 4 | Code Review | Code validated, issues resolved |
| Gate 5 | Completion | All docs updated, stage complete |
If any gate fails:
docs/11-next-steps.md with blocker statusIf blocked for more than 30 minutes:
docs/handoff/handoff-latest.mdWhen resuming an interrupted stage:
docs/handoff/handoff-latest.md if existsdocs/stages/stage-N.md for current statusFor templates and detailed specifications, see:
.claude/skills/rdd-core/SKILL.md - Core RDD concepts.claude/skills/rdd-templates/SKILL.md - Document templatesprompt.md - Full RDD specificationSave to: docs/stages/stage-N-review-log.md