Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计未展示

claude-code-analyzerClaude 代码分析器

Agent Skill

claude-code-analyzer 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

612

周安装

26

GitHub Stars

公开资料未说明

下载量

214
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:claude-code-analyzer(Claude 代码分析器)
来源仓库:https://github.com/microck/ordinary-claude-skills
仓库路径:skills/claude-code-analyzer
安装命令:
npx skills add microck/ordinary-claude-skills --skill "claude-code-analyzer"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add microck/ordinary-claude-skills --skill "claude-code-analyzer"

简介

claude-code-analyzer 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 支持基于关键词、任务场景或来源线索进行信息检索与筛选。
  • 通过 npx skills add microck/ordinary-claude-skills --skill "claude-code-analyzer" 安装使用。
  • 安装前需确认权限范围、维护状态,注意是否触发联网或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

name
claude-code-analyzer
description
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.

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 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 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-allowed tools never used → Remove from config
  • Repetitive bash commands → Create slash commands
  • Complex workflows → Create dedicated agents
  • Domain-specific tasks → Build custom skills

GitHub discovery provides:

  • Similar configurations from community
  • Proven patterns for your tool usage
  • Example agents/skills/commands to adapt

Project analysis reveals:

  • Required CLAUDE.md sections
  • Framework-specific conventions to document
  • Testing and build commands to include

Step 4: Fetch Docs and Create Configurations

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

Example: Complete Optimization Session

User: "Help me optimize my Claude Code setup"

Claude executes:

  1. 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

  1. 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

  1. 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."

  1. 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`
  1. Share GitHub findings

"I also found this community skill for TypeScript testing that you might find useful: [GitHub link]"

When to Use Each Tool

Use analyze.sh when:

  • User asks to "analyze my workflow"
  • Optimizing Claude Code setup
  • Finding unused auto-allows
  • Discovering community resources
  • Understanding usage patterns

Use analyze-claude-md.sh when:

  • Creating CLAUDE.md
  • Setting up new project
  • User asks "what should I document?"
  • Need project-specific recommendations

Fetch docs when:

  • Creating any configuration file
  • User asks "how do I create an agent/skill/command?"
  • Explaining configuration options
  • Need current best practices

Use GitHub discovery for:

  • Finding proven patterns
  • Learning from community
  • Getting configuration examples
  • Discovering new approaches

Critical Documentation URLs

Always fetch latest docs before creating configurations:

TypeURL
Agentshttps://docs.claude.com/en/docs/claude-code/sub-agents
Skillshttps://docs.claude.com/en/docs/agents-and-tools/agent-skills/overview
Slash Commandshttps://docs.claude.com/en/docs/claude-code/slash-commands
Settingshttps://docs.claude.com/en/docs/claude-code/settings
CLAUDE.mdhttps://www.anthropic.com/engineering/claude-code-best-practices

Key Configuration Facts (from latest docs)

Agents (.md files with YAML frontmatter):

  • Required: name, description
  • Optional: tools (comma-separated), model (sonnet/opus/haiku/inherit)
  • Location: .claude/agents/ (project) or ~/.claude/agents/ (user)
  • NOT .yaml files!

Skills (directory with SKILL.md):

  • Structure: skill-name/SKILL.md
  • Bundled resources: scripts/, references/, assets/
  • Progressive loading: metadata → instructions → resources
  • Location: .claude/skills/

Slash Commands (.md files):

  • Required: name (with / prefix)
  • Arguments: $ARGUMENTS, $1, $2
  • Optional: allowed-tools, model, argument-hint
  • Location: .claude/commands/

CLAUDE.md (project documentation):

  • Hierarchical: user-level → parent → project → nested
  • Include: commands, style guidelines, testing, issues
  • Keep concise and actionable
  • Location: .claude/CLAUDE.md

Output Formats

Usage Analysis JSON

{
  "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": [...]}
}

Project Analysis JSON

{
  "detected_package_manager": {"type": "npm", "scripts": ["dev", "test"]},
  "testing": {"framework": "vitest"},
  "framework": {"type": "nextjs"},
  "claude_md_suggestions": ["Document npm scripts", "Document testing"]
}

Requirements

  • jq (install: brew install jq or apt install jq)
  • Claude Code projects at ~/.claude/projects
  • Optional: gh CLI for direct GitHub search

Why This Approach Works

Comprehensive: 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.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

26.08%
按下载量换算56

Antigravity

22.52%
按下载量换算48

windsurf

17.68%
按下载量换算38

Codex

12.51%
按下载量换算27

Gemini CLI

8.17%
按下载量换算17

OpenCode

3.59%
按下载量换算8

安全审计

暂无安全审计结果可展示。

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills