Skip to content
Back to skills

Claude Code Analyzer

ASecurity

Analyze Claude Code usage patterns, project structure, and discover community resources for workflow optimization

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
developmenttypescriptrustbashreactnextjstestinggit

Works with

  • claude code
  • cli

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill claude-code-analyzer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Claude Code Analyzer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Claude Code Analyzer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-claude-code-analyzer/badge)](https://www.skillsdirectory.com/skills/david-li0406-claude-code-analyzer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: claude-code-analyzer
description: Analyze Claude Code usage patterns, project structure, and discover community resources for workflow optimization
tools: Read, Glob, Grep, Bash
model: opus
---

# Claude Code Analyzer

Optimize your Claude Code workflow by analyzing usage patterns, detecting project structure, and discovering community resources.

## Capabilities

| Feature           | Script                 | Purpose                                      |
| ----------------- | ---------------------- | -------------------------------------------- |
| Usage Analysis    | `analyze.sh`           | Extract tool/model usage from history        |
| Project Detection | `analyze-claude-md.sh` | Detect stack, suggest CLAUDE.md improvements |
| Feature Reference | `fetch-features.sh`    | List Claude Code capabilities                |
| GitHub Discovery  | `github-discovery.sh`  | Find community skills/agents/commands        |

## Workflow

### 1. Analyze Current Project

Run project structure detection:

```bash
bash scripts/analyze-claude-md.sh
```

Interprets JSON output to identify:

- Missing CLAUDE.md or incomplete sections
- Undocumented commands or patterns
- Framework-specific suggestions

### 2. Review Usage Patterns

Analyze Claude Code history for current project:

```bash
bash scripts/analyze.sh --current-project
```

Or analyze all projects:

```bash
bash scripts/analyze.sh
```

Identifies:

- Most-used tools (optimize auto-allow)
- Model distribution (cost awareness)
- Active projects

### 3. Discover Community Resources

Search GitHub for relevant resources:

```bash
bash scripts/github-discovery.sh all [query]
bash scripts/github-discovery.sh skills react
bash scripts/github-discovery.sh agents typescript
```

### 4. Generate Recommendations

Based on analysis, provide actionable suggestions:

- CLAUDE.md improvements (load `references/best-practices.md`)
- Settings optimizations
- New skills or agents to create
- Community resources to adopt

## Quick Commands

```bash
# Full analysis
bash scripts/analyze-claude-md.sh && bash scripts/analyze.sh --current-project

# Features reference
bash scripts/fetch-features.sh
bash scripts/fetch-features.sh --json

# GitHub discovery
bash scripts/github-discovery.sh all
bash scripts/github-discovery.sh skills
```

## Output Interpretation

### Project Analysis Output

```json
{
  "detected": {
    "package_manager": "pnpm",
    "framework": "nextjs",
    "testing": "vitest",
    "typescript": "true"
  },
  "suggestions": [
    "Document pnpm commands in CLAUDE.md",
    "Document Next.js App Router vs Pages Router usage"
  ]
}
```

### Usage Analysis Output

```json
{
  "tool_usage": { "Read": 150, "Edit": 89, "Bash": 45 },
  "model_usage": { "claude-sonnet-4-20250514": 200 },
  "auto_allowed_tools": ["Read", "Glob"]
}
```

## Recommendation Patterns

### No CLAUDE.md Detected

1. Run `analyze-claude-md.sh` for stack detection
2. Generate CLAUDE.md template from detected info
3. Include commands from package.json scripts
4. Add architecture notes based on directory structure

### Underutilized Features

If analysis shows limited tool variety:

- Suggest LSP for code navigation
- Recommend Explore agents for searches
- Propose skills for repeated workflows

### High Tool Usage Without Auto-Allow

If frequently used tools aren't auto-allowed:

- Suggest adding to `autoAllowedTools` in settings
- Reference trust levels in best-practices.md

## Dependencies

- `jq` - JSON processing (required for analyze.sh)
- `gh` - GitHub CLI (optional, enhances github-discovery.sh)

Install: `brew install jq gh`

Files in this skill

  • SKILL.md3.5 KB
  • references/best-practices.md3.6 KB
  • scripts/analyze-claude-md.sh9.7 KB
  • scripts/analyze.sh5.4 KB
  • scripts/fetch-features.sh3.6 KB
  • scripts/github-discovery.sh4.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…