Claude Code/Codex CLI Skills - RPI Framework
This directory contains custom skills for the RPI (Research, Plan, Implement) methodology - a structured approach to software development that ensures quality through systematic validation.
$ Installer
git clone https://github.com/ferdiangunawan/rpi-stack ~/.claude/skills/rpi-stack// tip: Run this command in your terminal to install the skill
Claude Code/Codex CLI Skills - RPI Framework
Overview
This directory contains custom skills for the RPI (Research, Plan, Implement) methodology - a structured approach to software development that ensures quality through systematic validation.
Agent Compatibility
These skills are used by both Claude Code and Codex CLI.
- OUTPUT_DIR:
.claude/outputfor Claude Code,.codex/outputfor Codex CLI. - SKILLS_DIR:
~/.claude/skillsfor Claude Code,~/.codex/skillsfor Codex CLI. - Slash commands like
/rpiare Claude Code syntax; in Codex CLI, invoke the skill by name in the prompt.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ RPI WORKFLOW โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ INPUT RESEARCH AUDIT PLAN โ
โ โโโโโโโโ โโโโโโโโ โโโโโโโโ โโโโโโโโ โ
โ โ Jira โโโโโโโโโโโโถโ โโโโโโโโโโโถโ โโโโโโโโโโถโ โ โ
โ โ PRD โ โ โ PASS? โ โ PASS? โ โ โ
โ โPromptโ โ โ โ โ โ โ โ
โ โโโโโโโโ โโโโโโโโ โโโโโโโโ โโโโโโโโ โ
โ โ โ โ
โ โผ โผ โ
โ research.md plan.md โ
โ โ
โ AUDIT IMPLEMENT REVIEW โ
โ โโโโโโโโ โโโโโโโโ โโโโโโโโ โ
โ โโโโโถโ โโโโโโโโโโโถโ โโโโโโโโโโถโ โ โ
โ โ โ PASS? โ โ โ โ โ
โ โ โ โ โ โ โ โ
โ โโโโโโโโ โโโโโโโโ โโโโโโโโ โ
โ โ โ โ
โ โผ โผ โ
โ CODE APPROVED โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Available Skills
| Skill | Trigger | Description |
|---|---|---|
| RPI | /rpi | Full workflow orchestrator |
| Research | /research | Gather context and assess confidence |
| Audit | /audit | Validate against over/under/hallucination |
| Plan | /plan | Create detailed implementation plan |
| Implement | /implement | Execute plan with tracking |
| Code Review | /code-review | Review code with P0/P1/P2 severity |
Quick Start
Full RPI Workflow
Claude Code uses slash commands; Codex CLI uses the skill name in the prompt.
# From Jira issue
/rpi KB-1234
# From Confluence PRD
/rpi https://kickavenue.atlassian.net/wiki/spaces/DEV/pages/123456
# From direct requirements
/rpi Add feature to export user data as CSV
Individual Skills
Claude Code uses slash commands; Codex CLI uses the skill name in the prompt.
# Research only
/research KB-1234
# Audit a document
/audit research
/audit plan
# Create plan from research
/plan
# Implement from plan
/implement
# Code review
/code-review
/code-review path/to/file.dart
Output Files
All RPI outputs are saved to OUTPUT_DIR:
OUTPUT_DIR/
โโโ research-{feature}.md # Research findings
โโโ plan-{feature}.md # Implementation plan
โโโ audit-{feature}.md # Audit reports
โโโ review-{feature}.md # Code review reports
Quality Gates
Gate 1: Research Validation
- Confidence Score โฅ 60%
- Hallucination Score โค 20%
- Coverage โฅ 80%
Gate 2: Plan Validation
- All requirements traced to tasks
- No architectural violations
- Plan Score โฅ 70%
Gate 3: Implementation Validation
- All tasks completed
- flutter analyze passes
- Code review approved
Severity Levels
Audit Scores
- Hallucination: Inventing requirements (target: โค20%)
- Overengineering: Adding unnecessary complexity (target: โค15%)
- Underengineering: Missing requirements (target: โค15%)
- Balance: Sweet spot between over/under (target: โฅ70%)
Code Review
- P0 (Critical): Must fix - security, crashes, data loss
- P1 (Important): Should fix - bugs, performance, patterns
- P2 (Nice-to-have): Consider - style, docs, minor improvements
File Structure
Each skill is organized in its own subfolder with a SKILL.md file:
SKILLS_DIR/
โโโ README.md # This file
โโโ audit/
โ โโโ SKILL.md # Audit skill definition
โโโ code-review/
โ โโโ SKILL.md # Code review skill definition
โโโ implement/
โ โโโ SKILL.md # Implementation skill definition
โโโ plan/
โ โโโ SKILL.md # Planning skill definition
โโโ research/
โ โโโ SKILL.md # Research skill definition
โโโ rpi/
โโโ SKILL.md # RPI orchestrator skill definition
Integration with AGENTS.md
All skills are designed to work with project-specific AGENTS.md:
- Research reads AGENTS.md to understand project patterns
- Audit validates against AGENTS.md conventions
- Plan uses AGENTS.md patterns for task templates
- Implement follows AGENTS.md strictly
- Code Review checks AGENTS.md compliance
Best Practices
When to Use Full RPI
- New features with unclear scope
- Complex multi-file changes
- Features from Jira/Confluence PRD
When to Use Individual Skills
/research- When exploring feasibility/audit- When validating existing plans/plan- When scope is already clear/implement- When plan exists/code-review- After any significant code changes
Tips
- Always run full RPI for Jira tickets
- Use audit between research and plan
- Don't skip audit gates
- Review code before marking complete
- Keep outputs for documentation
Adding New Skills
To add a new skill:
- Create a subfolder:
SKILLS_DIR/{skill-name}/ - Create
SKILL.mdinside the subfolder with:- Skill metadata (name, description, trigger)
- Skill logic and instructions
- Output format
- Restart Claude Code or Codex CLI to load the new skill
Example structure:
SKILLS_DIR/my-skill/
โโโ SKILL.md
Troubleshooting
"Low Confidence Score"
- Missing information in PRD
- Run
/researchwith more specific query - Ask stakeholder for clarification
"Audit Failed"
- Review specific findings
- Address P0/P1 issues
- Re-run audit after fixes
"Pattern Violation"
- Check AGENTS.md for correct pattern
- Look at similar existing code
- Follow project conventions exactly
"Skill Not Found"
- Ensure skill folder exists:
SKILLS_DIR/{skill-name}/ - Ensure
SKILL.mdfile exists inside the folder - Restart Claude Code or Codex CLI to reload skills
