Skip to content

juan294/cc-rpi

cc-rpi — Claude Code Reference & Project Intelligence

CI Version: v1.9.0 License: MIT Status: Active Claude Code

A blueprint repository for setting up and running projects with Claude Code. Contains the RPI (Research-Plan-Implement) methodology, a catalog of known agent errors, and operational rules learned from hundreds of real sessions.


Requirements

Quick Start

Clone the repository:

git clone https://github.com/juan294/cc-rpi.git

Then tell Claude Code in your target project:

Go read the cc-rpi repository and set up this project following all the best practices. Read the quick reference, error catalog, and methodology, then configure CLAUDE.md and slash commands for this project.

Guide

New here? Read GUIDE.md — a human-readable walkthrough of the philosophy, the workflow, and every command. It covers everything you need to know without diving into every file. Also works great as source material for NotebookLM podcasts or articles.

What's Inside

Methodology (methodology/)

The full Research-Plan-Implement pattern adapted for Claude Code, based on HumanLayer's opencode-rpi and ACE-FCA framework. Organized by topic (10 files, in reading order):

  • Philosophy — Core tenets, error amplification principle, mental alignment
  • Context Engineering — The foundational discipline: compaction, context quality, settings & permissions
  • Four Phases — Research, Plan, Implement, Validate with detailed processes
  • Agent Design — Documentarian rule, tool restrictions, subagent catalog, Anthropic-native commands (/simplify, /batch), agent teams, autonomy principles
  • Pseudocode Notation — Compact notation for writing implementation plans
  • Testing — Automated-first verification hierarchy, TDD protocol
  • Push Accountability — Post-push CI ownership, background polling, fix-and-repush cycle
  • CI & Guardrails — Pre-commit hooks, CI workflows, development guardrails, enforcement stack
  • Scheduled Agents — Recurring quality agents on cron/launchd, shared context system
  • Error & Success Logging — Framework for systematic improvement

Known Error Patterns (patterns/)

A catalog of recurring Claude Code agent errors documented from real sessions. Each entry includes the symptom, root cause, correct approach, and what to avoid:

  • Shell behavior (parallel calls, cwd resets, tilde paths)
  • Git operations (worktrees, pre-commit hooks, push rejections)
  • GitHub CLI (gh field names, CI status checking)
  • Node.js/TypeScript (ESM shebangs, Buffer vs string)
  • CI & workflow (push-and-forget, skipping TDD, suggesting manual steps)

Examples (examples/)

Sample documents illustrating the methodology in practice — a research document, implementation plan with phase files, error/success log entries, and additional pseudocode notation examples. Use these as reference when producing your own RPI artifacts.

Templates (templates/)

Ready-to-use starting points for new projects:

  • CLAUDE.md template — Comprehensive project configuration with all operational rules baked in
  • settings.json template.claude/settings.json with Agent Teams, hooks, and permissions
  • Setup checklist — Step-by-step guide including pre-commit hooks, CI setup, push accountability, and scheduled agents
  • Slash commands/bootstrap, /adopt, /update, /research, /plan, /implement, /validate, /describe-pr, /pre-launch, /remediate, /triage, /status, /fix-ci — plus integration with Anthropic-native /simplify and /batch
  • Scheduled agent scripts — Nightly blueprint sync (cc-rpi-update-agent.sh) and multi-project morning triage (morning-triage.sh), both with retry logic and launchd/cron templates

Adding New Patterns

When you discover a new recurring error or best practice:

  1. Add it to patterns/agent-errors.md (detailed entry with symptom/root cause/solution)
  2. Add a one-liner to patterns/quick-reference.md
  3. Keep entries generic — no project-specific references

See CONTRIBUTING.md for full guidelines.

Community

Credits

  • HumanLayer — ACE-FCA framework and opencode-rpi implementation
  • Adapted for Claude Code's native capabilities (CLAUDE.md, Task tool, slash commands)

License

MIT

Changelog

See CHANGELOG.md for release history.

About

Blueprint repository for Claude Code projects — RPI methodology, known agent error patterns, operational rules, and project templates

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Languages