From claude-optimize
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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-optimize:codebase-analyzerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Analyzes a project's codebase to detect its technology stack, existing Claude Code configuration, and optimization opportunities. This skill powers the detection phase of `/optimize:init` and `/optimize:audit`.
Analyzes a project's codebase to detect its technology stack, existing Claude Code configuration, and optimization opportunities. This skill powers the detection phase of /optimize:init and /optimize:audit.
ALWAYS use the bundled script for codebase detection. Do NOT manually check file patterns or parse dependency files.
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/codebase_detector.py --json
The script automatically detects:
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/env_inventory.py --json
The script catalogs all existing Claude Code components: skills, agents, hooks, MCP servers, and memory files.
Present findings as a structured assessment:
## Project Profile
**Language**: [primary language]
**Framework**: [if detected]
**Package Manager**: [detected PM]
**CI/CD**: [if detected]
**Test Framework**: [if detected]
**Linter/Formatter**: [if detected]
## Claude Code Status
| Component | Status | Details |
|-----------|--------|---------|
| CLAUDE.md | present/missing | [line count, token estimate] |
| Settings | present/missing | [# allow rules, # deny rules] |
| Commands | [count] | [list names] |
| Skills | [count] | [list names] |
| Agents | [count] | [list names] |
| Hooks | [count] | [types configured] |
| MCP Servers | [count] | [list names] |
| Memory Files | [count] | [total size] |
| Session Logs | [count] | [date range] |
## Recommendations
[Based on detected stack, recommend specific optimizations]
npx claudepluginhub btcdlabs/btcd-cc-marketplace --plugin claude-optimizeAudits enabled Claude Code plugins against detected project tech stack from files like package.json, Cargo.toml, pyproject.toml; recommends additions/removals.
Scans a repository's tech stack, build tools, and monorepo structure to generate recommended Claude Code settings.json read-only permissions. Useful when starting a new project or auditing existing settings.
Provides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.