https://github.com/juan294/cc-rpi
Blueprint repository for Claude Code projects — RPI methodology, known agent error patterns, operational rules, and project templates
https://github.com/juan294/cc-rpi
ai-agents best-practices claude-code developer-tools error-patterns llm methodology prompt-engineering
Last synced: 25 days ago
JSON representation
Blueprint repository for Claude Code projects — RPI methodology, known agent error patterns, operational rules, and project templates
- Host: GitHub
- URL: https://github.com/juan294/cc-rpi
- Owner: juan294
- License: mit
- Created: 2026-02-20T19:45:52.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2026-03-26T07:16:41.000Z (about 1 month ago)
- Last Synced: 2026-03-26T11:52:08.410Z (about 1 month ago)
- Topics: ai-agents, best-practices, claude-code, developer-tools, error-patterns, llm, methodology, prompt-engineering
- Language: Shell
- Size: 535 KB
- Stars: 3
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# cc-rpi — Claude Code Reference & Project Intelligence
[](https://github.com/juan294/cc-rpi/actions/workflows/validate.yml)
[](https://github.com/juan294/cc-rpi/releases/tag/v1.14.0)
[](LICENSE)
[]()
[](https://docs.anthropic.com/en/docs/claude-code)
A blueprint repository for setting up and running projects with [Claude Code](https://docs.anthropic.com/en/docs/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
- [Claude Code](https://docs.anthropic.com/en/docs/claude-code) CLI installed and configured
- Git
## Quick Start
Clone the repository:
```bash
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](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** — Slim project configuration (~70 lines) with universal instructions
- **Rule templates** — `.claude/rules/` files with conditional loading (deployment, Supabase, testing) and universal rules (RPI details, push accountability)
- **settings.json template** — `.claude/settings.json` with Agent Teams, hooks, and permissions
- **Setup checklist** — Step-by-step guide including rules, skills, hooks, CI, and scheduled agents
- **Slash commands** — `/bootstrap`, `/adopt`, `/update`, `/research`, `/plan`, `/implement`, `/validate`, `/describe-pr`, `/pre-launch`, `/remediate`, `/triage`, `/status`, `/fix-ci` — plus Anthropic-native `/simplify` and `/batch`
- **Scheduled agent scripts** — Nightly blueprint sync and multi-project morning triage with 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](CONTRIBUTING.md) for full guidelines.
## Community
- [GitHub Discussions](https://github.com/juan294/cc-rpi/discussions) — Ask questions, share ideas, discuss the methodology
- [Contributing Guide](CONTRIBUTING.md) — How to report patterns, propose improvements, submit PRs
- [Code of Conduct](CODE_OF_CONDUCT.md) — Expected behavior for all participants
## Credits
- [HumanLayer](https://humanlayer.dev/) — ACE-FCA framework and opencode-rpi implementation
- Adapted for Claude Code's native capabilities (CLAUDE.md, Task tool, slash commands)
## License
[MIT](LICENSE)
## Changelog
See [CHANGELOG.md](CHANGELOG.md) for release history.