Agent skill · Content & Marketing

code-analysis

Standardized code reading and analysis workflow with attention-driven focus. Provides clear objectives, deliverables, content outline, and token cost estimation.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
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.

Facts
Files in the skill folder: 2
SKILL.md size: 7 KB
Bundled scripts: none
Version: 1.2
Path: skills/analysis/code-analysis-dqz00116-skill-lib/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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** |

What's inside
Steps it walks through
  1. When to Use
  2. Attention-Driven Code Analysis (NEW in v1.2)
  3. Attention Scoring System
  4. Scoring Criteria
  5. Attention Levels
  6. Workflow with Attention Focus
  7. Benefits
  8. Workflow Template
  9. 1. Objective (目标)
  10. 2. Deliverables (产出物)
  11. 3. Content (内容)
  12. 4. Token Estimation (Token 评估)
  13. Execution Flow
  14. Usage Examples
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
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.

Keep going