claude-code-riper-5
tony · tony/claude-code-riper-5
Một subagent và các lệnh tùy chỉnh cho Claude Code triển khai quy trình làm việc RIPER-5 (Research, Innovate, Plan, Execute, Review) cho phát triển có cấu trúc.
Claude Code (Sub-agent, Custom Commands) dành cho RIPER-5.
Xem trước
Bạn có thể làm gì với nó
- Tuân thủ quy trình phát triển RIPER có cấu trúc trong Claude Code để quản lý các dự án phức tạp.
- Giảm việc sử dụng ngữ cảnh bằng cách sử dụng các tác nhân chuyên biệt cho các giai đoạn nghiên cứu, lập kế hoạch, thực thi và review.
- Duy trì tài liệu rõ ràng về các quyết định và cho phép các quy trình phát triển có thể tái tạo.
Kiểm tra an toàn
Không thấy dấu hiệu rủi ro trong các file đã quét.
Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.
Trích từ README
RIPER Workflow for Claude Code
Research • Innovate • Plan • Execute • Review
A structured, context-efficient development workflow for Claude Code using custom slash commands and subagents.
🎯 Overview
RIPER creates a controlled, guided flow that enforces separation between research, planning, and execution phases. This helps:
- Reduce context usage through specialized agents
- Prevent premature implementation before understanding
- Maintain clear documentation of decisions
- Enable reproducible development processes
🚀 Quick Start
Installation
- Copy the
.claudedirectory to your project root:
cp -r .claude /path/to/your/project/
-
Update
.claude/project-info.mdwith your project details -
Customize
.claude/riper-config.jsonwith your tech stack and paths -
Optional: Add
.claude/memory-bank/to.gitignoreto keep plans and reviews private:echo ".claude/memory-bank/" >> .gitignoreOr selectively ignore just plans and reviews while keeping memory bank structure:
echo ".claude/memory-bank/*/plans/" >> .gitignoreecho ".claude/memory-bank/*/reviews/" >> .gitignoreNote: If you accidentally commit these, remove them before merging:
git rebase -i HEAD~n # where n is number of commits to review
Basic Usage
Start a guided RIPER session:
/riper:strict
Then use the workflow commands:
-
Research - Investigate the codebase
/riper:research analyze authentication system -
Plan - Create technical specifications
/riper:plan add OAuth2 support -
Execute - Implement the approved plan
/riper:executeOr execute a specific substep:
/riper:execute 2.3 -
Review - Validate implementation
/riper:review
📚 Commands Reference
RIPER Workflow Commands
| Command | Description | Mode Restrictions |
|---|---|---|
/riper:strict | Enable strict protocol enforcement | None |
/riper:research | Enter research mode (read-only) | Read only |
/riper:innovate | Brainstorm approaches (optional) | Read only |
/riper:plan | Create technical specifications | Read + Write to memory bank |
/riper:execute | Implement approved plan | Full access |
/riper:execute <step> | Execute specific plan step | Full access |
/riper:review | Validate against plan | Read + Test execution |
/riper:workflow | Full guided workflow | Varies by phase |
Memory Bank Commands
| Command | Description |
|---|---|
/memory:save <context> | Save important context |
/memory:recall <topic> | Retrieve saved context |
/memory:list | List all memories |
🏗️ Architecture
Agents
RIPER uses 3 consolidated agents for efficiency:
- research-innovate - Handles research and brainstorming phases
- plan-execute - Manages planning and implementation
- review - Validates implementation against specifications
Memory Bank Structure
.claude/memory-bank/
├── main/ # Main branch memories
│ ├── plans/ # Technical specifications
│ ├── reviews/ # Code review reports
│ └── sessions/ # Session contexts
└── [feature-branch]/ # Feature branch memories
└── ...
Mode Capabilities
| Mode | Read | Write | Execute | Plan | Validate |
|---|---|---|---|---|---|
| RESEARCH | ✅ | ❌ | ❌ | ❌ | ❌ |
| INNOVATE | ✅ | ❌ | ❌ | ❌ | ❌ |
| PLAN | ✅ | 📄* | ❌ | ✅ | ❌ |
| EXECUTE | ✅ | ✅ | ✅ | ❌ | ❌ |
| REVIEW | ✅ | 📄* | ✅** | ❌ | ✅ |
* Only to memory bank
** Only test execution
🔧 Configuration
project-info.md
Update with your project details:
- Project name and description
- Common commands
- Directory structure
- Tech stack
- Development guidelines
riper-config.json
Customize workflow settings:
- Important paths
- Tech stack patterns
- Memory bank configuration
- Agent models
settings.json
Claude Code project settings:
- Project name
- Description
- Custom instructions
💡 Tips & Best Practices
When to Use RIPER
✅ Good for:
- Complex multi-step features
- Refactoring critical code
- Implementing architectural changes
- Tasks requiring careful planning
❌ Skip for:
- Simple bug fixes
- Minor text changes
- Straightforward updates
- Exploratory coding
Workflow Tips
- Always start with research - Understanding before coding prevents wasted effort
- Use memory bank - Save important context for future sessions
- Be specific in plans - Detailed specs lead to accurate implementation
- Review ruthlessly - Catch deviations early
- Iterate on substeps - Use
/riper:execute 2.3to fix specific parts
Context Efficiency
- Research phase uses cheaper, focused tools
- Plans are saved to memory, reducing repetition
- Execute phase has full context from approved plan
- Review validates without reimplementing
🤝 Contributing
Improvements welcome! Key areas:
- Additional workflow commands
- Better memory management
- Enhanced agent capabilities
- Integration examples
📜 Credits
This implementation is based on the RIPER-5 workflow crea