avibebuilder/optimus-prime
Generates a Claude Code configuration tailored to a specific project. Use whenever the user wants to prime a project, set up claude for a repo, bootstrap claude config, or re-prime/refresh an already-primed project (for example after `/prime-sync` pulled new starter content). Triggers on 'prime', 'prime this project', 'optimus-prime', 're-prime', 'refresh claude config', 'regenerate CLAUDE.md', 'set up claude for this repo'. Deeply analyzes the real codebase and builds project-specific skills, rules, and CLAUDE.md — not generic boilerplate. For ongoing config health checks and proposal review, use `self-evolve` instead.
npx skills add https://github.com/avibebuilder/claude-prime --skill optimus-prime
Ultrathink.
Generate a Claude configuration that fits the specific project. Every skill, rule, and CLAUDE.md entry must exist because this project needs it — not because a template included it. Analyze the real codebase deeply, understand its conventions and patterns, and build a config that makes Claude work well here.
Default to re-prime whenever meaningful existing config is found. Never overwrite it wholesale without user approval.
/skill-creator — every skill must go through skill-creator to ensure quality and project fit. Starters in .claude/starter-skills/ are reference input to accelerate creation, not templates to copy..claude/starter-skills/ after processing. Keep protected skills. Confirm all deletions.Follow full step-by-step in setup-project.md.
Every piece of knowledge must earn its place. Use this to decide where it belongs:
| Detected need | Where it belongs | Test |
|---|---|---|
| General framework/library knowledge | Skill (via /skill-creator) | Would a reusable skill teach this across projects? |
| Project-specific constraint that still produces wrong code with the right skill loaded | .claude/rules/<name>.md with paths: | With the relevant skill activated, will code still be wrong without this? |
| Identity, commands, stack, key architecture, reference pointers | CLAUDE.md | Should this be always-on for most tasks in this repo? |
| Detailed architecture or domain explanations | Existing docs/, READMEs — referenced from CLAUDE.md | Valuable but too detailed for always-on? |
| Dense agent-oriented reference material - referenced from CLAUDE.md | .claude/project/ (optional) | Do agents need a tighter reference than the human docs provide? |
_apply-all.md — it is a universal boilerplate rule from prime, not project config.Before making non-trivial changes, report findings in this shape:
What Claude config already exists; what the repo evidence says about stack, tooling, and conventions.
What to create, update, keep, or remove — including which skills to build and what each should cover.
Concrete file list with short purpose notes.
Include these only when non-empty:
After approval, implement and finish with a short summary of what changed and any follow-ups.
| Reference | Content |
|---|---|
| analysis-checklist.md | What to inspect during repo + existing-config review |
| setup-project.md | Fresh-prime / re-prime step-by-step workflow |
<user-context>$ARGUMENTS</user-context>
Take avibebuilder/optimus-prime from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.