Analyzes Claude Code usage patterns and provides comprehensive recommendations. Runs usage analysis, discovers GitHub community resources, suggests CLAUDE.md improvements, and fetches latest docs on-demand. Use when user wants to optimize their Claude Code workflow, create configurations (agents/skills/commands), or set up project documentation.
View on GitHubSelect agents to install to:
npx add-skill https://github.com/nicknisi/claude-plugins/blob/main/plugins/meta/skills/claude-code-analyzer/SKILL.md -a claude-code --skill claude-code-analyzerInstallation paths:
.claude/skills/claude-code-analyzer/# Claude Code History Analyzer Complete workflow optimization for Claude Code through usage analysis, community discovery, and intelligent configuration generation. ## Core Capabilities This skill provides a complete Claude Code optimization workflow: **1. Usage Analysis** - Extracts patterns from Claude Code history - Tool usage frequency - Auto-allowed tools vs actual usage - Model distribution - Project activity levels **2. GitHub Discovery** - Finds community resources automatically - Skills matching your tools - Agents for your workflows - Slash commands for common operations - CLAUDE.md examples from similar projects **3. Project Analysis** - Detects tech stack and suggests documentation - Package manager and scripts - Framework and testing setup - Docker, CI/CD, TypeScript configuration - Project-specific CLAUDE.md sections **4. On-Demand Documentation** - Fetches latest Claude Code docs - Agents/subagents structure and configuration - Skills architecture and bundled resources - Slash commands with MCP integration - CLAUDE.md best practices from Anthropic teams - Settings and environment variables ## Complete Analysis Workflow When user asks to optimize their Claude Code setup, follow this workflow: ### Step 1: Run Usage Analysis ```bash bash scripts/analyze.sh --current-project ``` This automatically: - Extracts tool usage from JSONL files - Checks auto-allowed tools configuration - Analyzes model distribution - **Searches GitHub for community resources** (always enabled) ### Step 2: Run Project Analysis ```bash bash scripts/analyze-claude-md.sh ``` This detects: - Package manager (npm, pnpm, yarn, cargo, go, python) - Framework (Next.js, React, Django, FastAPI, etc.) - Testing setup (Vitest, Jest, pytest, etc.) - CI/CD, Docker, TypeScript, linting configuration ### Step 3: Interpret Combined Results Combine insights from both analyses: **Usage patterns** show: - Tools used frequently but requiring approval → Add to auto-allows - Auto-allow