optimus-prime

Analyze a repository and generate project-specific CLAUDE.md, skills, and rules.

113|15|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/avibebuilder/claude-prime --skill optimus-prime
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: optimus-prime
Source: https://github.com/avibebuilder/claude-prime/tree/main/.claude/skills/optimus-prime
Command: npx skills add https://github.com/avibebuilder/claude-prime --skill optimus-prime

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generates a Claude Code configuration tailored to a specific project, so teams stop deploying generic setups and start with a context that fits their codebase.

Core Features & Use Cases

  • Analyze a repository to extract stack, conventions, and constraints.
  • Create project-specific CLAUDE.md with lean, high-signal context.
  • Generate or refine skills and rules via the /skill-creator workflow, preserving project knowledge.

Quick Start

Run optimus-prime to prime the repository and generate project-specific CLAUDE.md, skills, and rules.

Frequently Asked Questions about optimus-prime

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a project-specific CLAUDE.md configuration for my codebase?

To generate a project-specific CLAUDE.md configuration, run optimus-prime to deeply analyze your repository's stack, conventions, and constraints, then output a tailored, high-signal context file.

Why does my generic Claude Code setup lack the right project context?

Generic Claude Code setups lack project context because they are not tailored to the repository's specific stack and conventions. Optimus-prime solves this by analyzing the codebase to generate project-fit rules and context.

Can I use context engineering to create custom skills for an existing repository?

Yes, you can use context engineering to create custom skills for an existing repository. The tool applies a step-by-step workflow to generate or refine skills while preserving project knowledge.

What's the best way to re-prime Claude Prime after major codebase changes?

The best way to re-prime Claude Prime after codebase changes is to execute the prime/re-prime steps. This re-analyzes the repository to update context optimization and regenerate non-generic configurations.

Does repository analysis for Claude Code work on new repos with minimal files?

Yes, repository analysis works on new repos with minimal files. The tool applies to new or existing repositories, extracting available constraints and using starter materials judiciously to build a lean setup.