plugins/meta/skills/claude-code-analyzer/SKILL.md
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.
npx skillsauth add nicknisi/claude-plugins claude-code-analyzerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Complete workflow optimization for Claude Code through usage analysis, community discovery, and intelligent configuration generation.
This skill provides a complete Claude Code optimization workflow:
1. Usage Analysis - Extracts patterns from Claude Code history
2. GitHub Discovery - Finds community resources automatically
3. Project Analysis - Detects tech stack and suggests documentation
4. On-Demand Documentation - Fetches latest Claude Code docs
When user asks to optimize their Claude Code setup, follow this workflow:
bash scripts/analyze.sh --current-project
This automatically:
bash scripts/analyze-claude-md.sh
This detects:
Combine insights from both analyses:
Usage patterns show:
GitHub discovery provides:
Project analysis reveals:
Based on recommendations, fetch latest docs and create:
For frequently used tools → Update auto-allows:
# Fetch settings docs
web_fetch: https://docs.claude.com/en/docs/claude-code/settings
# Update ~/.claude/settings.json
For repetitive commands → Create slash command:
# Fetch slash commands docs
web_fetch: https://docs.claude.com/en/docs/claude-code/slash-commands
# Create .claude/commands/[command-name].md
For complex workflows → Create agent:
# Fetch agents docs
web_fetch: https://docs.claude.com/en/docs/claude-code/sub-agents
# Create .claude/agents/[agent-name].md
For reusable domain knowledge → Build skill:
# Fetch skills docs
web_fetch: https://docs.claude.com/en/docs/agents-and-tools/agent-skills/overview
# Create .claude/skills/[skill-name]/SKILL.md
For project context → Write CLAUDE.md:
# Fetch CLAUDE.md best practices
web_fetch: https://www.anthropic.com/engineering/claude-code-best-practices
# Create .claude/CLAUDE.md with detected info
User: "Help me optimize my Claude Code setup"
Claude executes:
Analyze usage patterns
bash scripts/analyze.sh --current-project
Finds: Bash tool used 150 times, Read 80 times, Write 45 times Auto-allows: None configured GitHub: Discovers community skills for TypeScript testing
Analyze project structure
bash scripts/analyze-claude-md.sh
Detects: Next.js project with Vitest, npm scripts: dev, build, test, lint Missing: CLAUDE.md doesn't exist
Make recommendations "I analyzed your Claude Code usage. Here's what I recommend:
Auto-Allows: You use Bash (150×), Read (80×), and Write (45×) constantly. Let me add them to auto-allows.
Slash Command: You run tests frequently. I'll create /test command.
CLAUDE.md: Your Next.js project needs documentation. I'll create one with your npm scripts and testing setup.
Community Resource: I found a TypeScript testing skill on GitHub that matches your workflow."
Fetch docs and create configs
Fetch settings docs → Update ~/.claude/settings.json:
{
"autoAllowedTools": ["Bash", "Read", "Write"]
}
Fetch slash commands docs → Create .claude/commands/test.md:
---
name: /test
description: Run tests for current file or project
allowed-tools: [Bash]
---
Run tests: !npm test
Fetch CLAUDE.md best practices → Create .claude/CLAUDE.md:
# Project Context
## Commands
- Dev: `npm run dev` (port 3000)
- Build: `npm run build`
- Test: `npm test`
- Lint: `npm run lint`
## Tech Stack
- Next.js 14
- TypeScript
- Vitest for testing
## Testing
Run tests before commits: `npm test`
Share GitHub findings "I also found this community skill for TypeScript testing that you might find useful: [GitHub link]"
Always fetch latest docs before creating configurations:
| Type | URL | | -------------- | ---------------------------------------------------------------------- | | Agents | https://docs.claude.com/en/docs/claude-code/sub-agents | | Skills | https://docs.claude.com/en/docs/agents-and-tools/agent-skills/overview | | Slash Commands | https://docs.claude.com/en/docs/claude-code/slash-commands | | Settings | https://docs.claude.com/en/docs/claude-code/settings | | CLAUDE.md | https://www.anthropic.com/engineering/claude-code-best-practices |
Agents (.md files with YAML frontmatter):
.claude/agents/ (project) or ~/.claude/agents/ (user)Skills (directory with SKILL.md):
skill-name/SKILL.md.claude/skills/Slash Commands (.md files):
.claude/commands/CLAUDE.md (project documentation):
.claude/CLAUDE.md{
"tool_usage": [{"tool": "Bash", "count": 122}],
"auto_allowed_tools": [{"tool": "Read", "usage_count": 49}],
"model_usage": [{"model": "claude-sonnet-4-5-20250929", "count": 634}],
"github_discovery": {"searches": [...]}
}
{
"detected_package_manager": { "type": "npm", "scripts": ["dev", "test"] },
"testing": { "framework": "vitest" },
"framework": { "type": "nextjs" },
"claude_md_suggestions": ["Document npm scripts", "Document testing"]
}
jq (install: brew install jq or apt install jq)~/.claude/projectsgh CLI for direct GitHub searchComprehensive: Combines usage analysis + community discovery + project detection Current: Fetches latest docs on-demand, never stale Actionable: Provides specific, implementable recommendations Automated: GitHub discovery runs automatically, no flags needed Integrated: All tools work together for complete workflow optimization
When helping users optimize Claude Code, always run both analyses, interpret results together, fetch latest docs, and create configurations with current best practices.
tools
Generate a /goal command to execute an ideation project's specs autonomously. Reads the contract, builds a goal prompt with phase ordering and spec paths, copies it to clipboard, and prints it. The user pastes the /goal command to start autonomous execution. Use when the user says 'goal', 'run as goal', 'get goal prompt', 'goal prompt', or wants to execute specs via /goal instead of /ideation:autopilot.
development
Go up a layer of abstraction and map the surrounding architecture. Use when the user is unfamiliar with an area of code, asks "how does this fit in", "what calls this", "give me the big picture", "where am I", "map this out", "I'm lost", "explain this area", or needs to understand how a file, module, or function connects to the rest of the system. Also use when the user says /zoom-out or "zoom out" mid-conversation — even without a specific file reference, orient them based on whatever code is currently in context.
development
Build a throwaway prototype to answer a design question before committing to real implementation. Generates either a runnable terminal app (for state machines, data models, business logic) or several radically different UI variations on one route (for visual/layout decisions). Use when the user wants to prototype, spike, POC, sanity-check a data model, mock up a UI, explore design options, or says "prototype this", "spike this out", "let me play with it", "try a few designs", "sketch this in code", "I want to try something before building it for real", "quick and dirty version", or "validate this approach" — even if they don't use the word "prototype."
development
Comprehensive, codebase-wide quality sweep that dispatches parallel subagents to find and fix structural issues. Covers deduplication, type consolidation, dead code removal, circular dependencies, weak types, defensive try/catch, deprecated paths, and AI slop. Primary support for JS/TS projects (knip, madge, TypeScript types); other languages get grep-based analysis. Use when the user asks to "deep clean the whole repo", "run a full codebase audit", "nuclear cleanup", "deslop everything", or "sweep the entire codebase for quality issues". Do NOT use for single-file fixes, branch-scoped diffs (use de-slopify instead), or targeted refactors.