code-analysis
Standardized code reading and analysis workflow with attention-driven focus. Provides clear objectives, deliverables, content outline, and token cost estimation.
npx skills add majiayu000/claude-skill-registry --skill code-analysis-dqz00116-skill-lib --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Code Analysis Skill Standardized workflow for reading, analyzing, and documenting codebases. ## When to Use Use this skill when you need to: - Understand a new code module or system - Analyze architecture and design patterns - Document technical implementation details - Prepare for code refactoring or integration - Create technical documentation for teams - **Focus on core components** (high-attention code analysis) --- ## Attention-Driven Code Analysis (NEW in v1.2) 基于启发式规则识别代码中的核心组件,优化分析重点。 ### Attention Scoring System ```python # 使用 attention_focus.py 模块 from attention_focus import CodeAttentionScorer scorer = CodeAttentionScorer() components = scorer.analyze_code_structure(file_content, file_name) focus = scorer.get_analysis_focus(components) ``` ### Scoring Criteria | Factor | Weight | Description | |--------|--------|-------------| | **核心关键词** | +3 | Manager, Controller, Handler, System, Core | | **重要关键词** | +2 | Helper, Util, Factory, Provider | | **代码行数** | +2 (>100行) / +1 (50-100行) | 规模指标 | | **被引用次数** | +2 (>5处) / +1 (2-5处) | 依赖度指标 | | **复杂度** | +1 | 方法数>10 或 条件语句>5 | ### Attention Levels | Level | Score | Analysis Depth | |-------|-------|----------------| | **High** |
- When to Use
- Attention-Driven Code Analysis (NEW in v1.2)
- Attention Scoring System
- Scoring Criteria
- Attention Levels
- Workflow with Attention Focus
- Benefits
- Workflow Template
- 1. Objective (目标)
- 2. Deliverables (产出物)
- 3. Content (内容)
- 4. Token Estimation (Token 评估)
- Execution Flow
- Usage Examples
What does the code-analysis skill do?
Standardized code reading and analysis workflow with attention-driven focus. Provides clear objectives, deliverables, content outline, and token cost estimation.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill code-analysis-dqz00116-skill-lib --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
