Meta-plugin for recursive self-improvement of Claude Code environments. Provides 11 optimization modes (init, audit, security, context, skills, hooks, memory, mcp, report, loop, discover) for analyzing and improving your Claude Code setup.
npx claudepluginhub btcdlabs/btcd-cc-marketplace --plugin claude-optimizeFull environment health check with scored dimensions
Token/context optimization - reduce bloat and waste
Reflect on usage patterns to discover new capabilities and prune unused ones
Show all optimize modes and usage
Hook analysis - health, coverage gaps, recommendations
First-run setup - detect project, create CLAUDE.md, security
Guided autonomous optimization loop
MCP server management - health, security, recommendations
Memory hygiene - staleness, duplicates, migration
Comprehensive scored report across all dimensions
Security hardening - permissions, deny rules, MCP trust
Skill lifecycle - inventory, trigger quality, gaps
Use this agent to analyze codebase alignment and skill quality when running /optimize:report. Returns scores for codebase_alignment, skill_quality, and claude_md_quality dimensions. Do NOT use for general coding tasks.
Use this agent for token counting and context efficiency analysis when running /optimize:context or /optimize:report. Measures CLAUDE.md token load, skill description sizes, MCP tool counts, and compaction resilience. Returns efficiency metrics. Do NOT use for general file analysis or coding tasks.
Use this agent to generate typed improvement proposals from session reflection data when running /optimize:discover. Receives usage analysis, environment inventory, codebase profile, and gap/bloat analysis. Returns prioritized proposals with security assessments, evidence citations, and implementation previews following skill-creator and hookify best practices. Do NOT use for general coding tasks or other optimize modes.
Use this agent to analyze hook health, memory hygiene, and MCP configuration when running /optimize:report. Returns scores for hook_coverage, memory_hygiene, and mcp_health dimensions. Do NOT use for general coding tasks.
Use this agent to aggregate results from multiple optimization analyses into a single weighted report when running /optimize:report. Merges scores from security, context, hook, skill, memory, and MCP dimensions with prioritized action items. Do NOT use for general reporting or coding tasks.
Use this agent for deep security analysis of Claude Code environments when running /optimize:security or /optimize:report. Performs permission auditing, MCP trust assessment, hook injection scanning, and deny rule analysis. Returns a security scorecard. Do NOT use for application security reviews or general coding tasks.
Use when running /optimize:init, /optimize:audit, or /optimize:context to assess CLAUDE.md quality, generate templates, and suggest improvements. Scores files using a weighted rubric covering commands, architecture, patterns, conciseness, currency, and actionability. Do NOT trigger on general file editing or coding tasks.
Use when running /optimize:init or /optimize:audit to detect project type, language, framework, package manager, CI/CD system, and existing Claude Code configuration. Triggers on codebase analysis for optimization, project detection for Claude Code setup, or environment assessment. Do NOT trigger on general coding tasks.
Use when running /optimize:context to analyze and reduce token consumption in Claude Code configuration. Measures CLAUDE.md token count, skill description bloat, MCP tool count, and recommends compaction strategies. Triggers on context optimization, token reduction, or CLAUDE.md bloat analysis. Do NOT trigger on general coding tasks.
Use when running /optimize:discover to cross-reference session usage data against the current environment inventory. Detects gaps (repeated manual work that could be automated), bloat (unused skills, MCP servers, agents), and calculates tooling balance. Do NOT trigger on general coding tasks or other optimize modes.
Use when running /optimize:hooks to analyze existing hooks for health issues, detect missing hooks based on project type, and recommend new hooks with implementations. Triggers on hook analysis, hook creation for optimization, or hook health checking. Do NOT trigger on general hook development or coding tasks.
Use when running /optimize:mcp to analyze MCP server configuration, recommend new servers based on detected project stack, perform health checks, and assess security. Triggers on MCP server optimization, MCP recommendations, or MCP health checking. Do NOT trigger on MCP server development or general coding tasks.
Use when running /optimize:memory to analyze memory file hygiene, detect stale entries, find duplicates, identify migration candidates to CLAUDE.md, and suggest reorganization. Triggers on memory optimization, memory cleanup, or memory hygiene analysis. Do NOT trigger on general coding tasks or file editing.
Use when running /optimize:security or /optimize:init to audit Claude Code security posture including permissions, deny rules, MCP server trust, hook safety, and prompt injection vectors. Triggers on security hardening, permission auditing, or deny rule analysis for Claude Code. Do NOT trigger on application security reviews or general coding.
Use when running /optimize:audit, /optimize:skills, /optimize:hooks, or /optimize:discover to analyze recent Claude Code session logs for tool usage patterns, error frequency, repeated workflows, and automation opportunities. Do NOT trigger on general coding tasks.
A marketplace for internal BTCD Claude Code plugins.
This repository hosts Claude Code plugins developed and maintained by BTCD. Plugins are distributed via the Claude Code marketplace plugin system.
| Plugin | Version | Description |
|---|---|---|
| claude-optimize | 0.3.8 | Meta-plugin for recursive self-improvement of Claude Code environments. Provides 11 optimization modes for analyzing and improving your setup. |
Install a plugin from this marketplace inside a Claude Code session:
/plugin install claude-optimize@btcd-cc-marketplace
Or load locally for development:
claude --plugin-dir /path/to/btcd-cc-marketplace/plugins/claude-optimize
.claude-plugin/
marketplace.json # Marketplace metadata and plugin registry
plugins/
claude-optimize/ # Optimization meta-plugin
.claude-plugin/
plugin.json # Plugin metadata
agents/ # Specialized agent definitions
commands/ # Slash command definitions
hooks/ # Hook scripts (e.g., optimization loop)
skills/ # Skill definitions and reference docs
README.md # Plugin-specific documentation
Hunter Prendergast (hunter.prendergast@btcd.fi)
MIT
Battle-tested Claude Code plugin for engineering teams — 38 agents, 156 skills, 72 legacy command shims, production-ready hooks, and selective install workflows evolved through continuous real-world use
Uses power tools
Uses Bash, Write, or Edit tools
Complete collection of battle-tested Claude Code configs from an Anthropic hackathon winner - agents, skills, hooks, rules, and legacy command shims evolved over 10+ months of intensive daily use
Efficient skill management system with progressive discovery — 410+ production-ready skills across 33+ domains
Complete collection of battle-tested Claude Code configs from an Anthropic hackathon winner - agents, skills, hooks, and rules evolved over 10+ months of intensive daily use
Complete developer workflow toolkit. Includes 34 reference skills, 34 specialized agents, and 21 slash commands covering TDD, debugging, code review, architecture, documentation, refactoring, security, testing, git workflows, API design, performance, UI/UX design, plugin development, and incident response. Full SDLC coverage with MCP integrations.
Complete collection of battle-tested Claude Code configs agents, skills, hooks, rules, and legacy command shims evolved over 10+ months of intensive daily use