optimus-claude

skill
Guvenlik Denetimi
Basarisiz
Health Gecti
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Community trust — 34 GitHub stars
Code Basarisiz
  • rm -rf — Recursive force deletion command in .claude/settings.json
  • rm -rf — Recursive force deletion command in scripts/generate-fixtures.sh
  • rm -rf — Recursive force deletion command in scripts/test-hooks.sh
  • rm -rf — Recursive force deletion command in scripts/test-skills.sh
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

Primes your project for peak Claude Code performance

README.md
optimus-claude

Version License Claude Code Platform

A Claude Code plugin that sets up your project for effective AI-assisted engineering.


The problem: AI amplifies whatever it finds. Messy code leads to messier AI-generated code, which becomes the new context for even worse output — a vicious cycle that compounds faster than any human could create technical debt. Without maintained context, any AI coding tool's quality degrades with every file it reads.


The solution: Optimus Claude generates tailored and optimized CLAUDE.md files, coding guidelines, formatter hooks, TDD and test coverage, all based on your actual codebase. Built-in quality agents (code simplifier, test guardian) run alongside every review and refactor.

Use it regularly and your project stays clean, consistent, tested, and well-documented. Exactly the conditions where Claude Code performs at its prime.


The philosophy: This is all about perfecting context. The codebase, prompts, unit tests, docs, commit messages, PR descriptions, branch names — it's all context and it all adds up to shape how well Claude Code performs. Optimus Claude provides developers ways to create and maintain optimal context for AI-assisted engineering across the entire development workflow.

Quick Start

Install

Run these commands inside Claude Code:

/plugin marketplace add https://github.com/oprogramadorreal/optimus-claude.git
/plugin install optimus@optimus-claude

Having trouble? See Troubleshooting.

Run

Start a new Claude Code session and type /optimus:init in any project directory. See Skills for the full list.

How It Works

Every skill operates on the same shared foundation: your project's coding guidelines and a verification protocol that demands evidence over confidence.

/optimus:init analyzes your codebase and generates constraint docs — coding guidelines, CLAUDE.md, formatter hooks, and test infrastructure (framework, coverage tooling, testing docs) — into your .claude/ directory. The plugin bundles quality agents at two levels: plugin-level agents (code-simplifier, test-guardian) that define reusable quality concerns, and skill-level agents that adapt them for specific workflows within skills like code-review, refactor, and tdd. Skill-level agents often extend the plugin-level definitions with skill-specific scope and output format — see references/agent-architecture.md for the full architecture. From that point on, every optimus skill loads those guidelines, and skills that make completion claims apply the verification protocol as a gate before reporting.

/optimus:code-review doesn't run a generic review — its agents check your naming conventions, your architectural patterns, and your DRY principles alongside bugs and security. /optimus:tdd applies them during the Refactor step. /optimus:refactor uses them as its quality lens. /optimus:unit-test follows them for test naming and structure.

Every skill is also conservative by default — /optimus:unit-test never refactors source code, /optimus:verify runs in an isolated sandbox and never pushes to remote, and /optimus:commit warns about secret files before proceeding.

The result: consistent patterns, meaningful names, and lean context across every operation — exactly the signals that keep Claude Code accurate and productive.

Design Principles

Explicit invocation — Skills never auto-trigger. Claude Code's default behavior is never altered unless you explicitly call a /optimus skill.

Project-scoped output — Formatter hooks and coding guidelines are installed into .claude/ and travel with the repo via git — self-contained and working for every teammate without the plugin. The plugin layers development skills on top: TDD, code-review, commit, refactor, and more.

Skills

Core

Skill Description
/optimus:init Initializes effective project documentation, formatter hooks, and unit test infrastructure. Detects empty directories and offers new-project scaffolding. Intelligent audit on re-run.
/optimus:unit-test Discovers test coverage gaps and writes convention-following tests. Never refactors source code. Requires init.
/optimus:tdd Guides test-driven development through Red-Green-Refactor cycles with per-behavior commits, parallel quality gate, and PR/MR creation. Requires init.
/optimus:refactor Refactors code for guideline compliance and testability using 4 parallel agents. deep mode for iterative refactoring. Run init first (recommended).
/optimus:code-review Reviews changes for bugs, security issues, and guideline compliance using up to 7 parallel agents. deep mode for iterative auto-fix. Run init first (recommended).
/optimus:verify Verifies a feature branch in an isolated sandbox — extracts a test plan from the PR, runs automated checks, and launches parallel agents for functional verification. Run init first (recommended).

Utility

Skill Description
/optimus:branch Switches local changes to a new conventionally named branch derived from conversation context and git diffs. Never commits or pushes.
/optimus:worktree Creates an isolated git worktree for parallel development on a separate branch. Runs project setup and test baseline automatically.
/optimus:dev-setup Ensures the project README has accurate, step-by-step development setup instructions by auditing against actual project state.
/optimus:pr Creates or updates a PR/MR with structured summary, changes, rationale, and test plan. Supports GitHub and GitLab.
/optimus:permissions Configures branch protection, precious file safety, and auto-approved routine tool calls via allow/deny rules and a PreToolUse hook.
/optimus:commit Stages, commits, and optionally pushes with a conventional commit message. Offers feature branch creation on protected branches.
/optimus:commit-message Suggests conventional commit messages from local git changes. Recommends splitting multi-concern diffs. Read-only.
/optimus:prompt Crafts optimized, copy-ready prompts for any AI tool — extracts intent, selects from 13 templates, and audits for token efficiency.
/optimus:reset Removes files installed by init and permissions. Classifies each file before deletion and always asks for confirmation.

Recommended Workflow

  1. Safety guardrails/optimus:permissions for branch protection, precious file safety, and streamlined tool permissions
  2. Initial setup/optimus:init to generate project context and set up test infrastructure (audits and updates if already present)
  3. Test coverage/optimus:unit-test to write tests and improve coverage
  4. Code quality/optimus:refactor for full codebase refactoring against your coding guidelines and testability

During development/optimus:branch to move work to a properly named branch, /optimus:tdd to build features test-first, /optimus:worktree for parallel isolated workspaces, /optimus:prompt to craft optimized prompts for any AI tool in your workflow, /optimus:commit for conventional commits (or /optimus:commit-message to preview the message without committing).

Before merging/optimus:pr to create or update pull requests, /optimus:verify to prove the feature branch works in an isolated sandbox, /optimus:code-review for pre-merge code quality review.

After major changes — re-run /optimus:init to audit and refresh guidelines.

New to a codebase?/optimus:dev-setup ensures the README has accurate development setup instructions for onboarding.

Removing optimus/optimus:reset to remove optimus-generated files from the project (for clean reinstall or to stop using optimus).

Why It Works

What makes a good developer productive also makes Claude Code productive: clean code, good tests, and clear docs.

Research backs this up: AI tools introduce 30%+ more defects on poorly maintained code, and LLM performance degrades up to 85% as context length grows. Clean, DRY code with meaningful names keeps context lean and gives the LLM better semantic signals. The 2025 DORA report puts it simply: AI amplifies existing practices, good or bad.

Another key point: providing LLMs with tests alongside tasks consistently improves code generation. Tests enable self-correction. Anthropic's #1 best practice for Claude Code reflects this: "make the AI self-verifying". Unit tests and TDD are the purest way to achieve it.

AI assistants also tend toward sycophancy — validating ideas without critical pushback. A 2025 METR trial found developers using AI were 19% slower yet believed they were faster. This plugin counters that: every skill enforces project-defined standards as the source of truth, a shared verification protocol requires evidence before any completion claim and challenges assumptions before committing to an approach, code review runs independent duplicate guideline agents and verifies each finding against the actual code, and TDD ensures tests define what is correct instead of relying on the AI's confidence.

Complementary Tools

optimus-claude is designed to work alongside official tools, not replace them. Use Anthropic's official code-review plugin for post-push PR review, claude-md-management for CLAUDE.md scoring and revision, the builtin /simplify for per-change cleanup (complemented by /optimus:refactor for project-wide restructuring), and Claude Code's built-in sandboxing or Docker containers for fully autonomous agent execution with OS-level isolation.

Troubleshooting

Windows: SSL certificate error during install

If you see SSL certificate OpenSSL verify result: unable to get local issuer certificate when running /plugin marketplace add, Git for Windows is using an outdated OpenSSL CA bundle. Fix it by switching to the native Windows certificate store:

git config --global http.sslBackend schannel

Then retry the install command.

Contributing

See CONTRIBUTING.md for project structure, skill anatomy, feature branch testing, and local development setup.

Acknowledgements

The /optimus:prompt skill's prompt engineering techniques (intent extraction, tool routing, diagnostic patterns, templates, safe/excluded technique classification) are adapted from prompt-master by @nidhinjs.

Research & References

Yorumlar (0)

Sonuc bulunamadi