Agent skill

code-summarizer

Generate concise summaries of source code at multiple scales. Use when users ask to summarize, explain, or understand code - whether it's a single function, a class, a module, or an entire codebase. Handles function-level code by explaining intention and core logic, and large codebases by providing high-level overviews with drill-down capabilities for specific modules.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill code-summarizer --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 8 KB
Bundled scripts: none
Path: skills/analysis/code-summarizer/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 Summarizer Generate clear, concise summaries of source code at any scale - from individual functions to entire codebases. ## Overview This skill helps analyze and summarize code by adapting the level of detail to the code's scale: - **Small-scale code** (functions, classes, small files): Provide focused summaries of intention and implementation - **Large-scale code** (modules, packages, entire repositories): Provide hierarchical summaries with progressive drill-down ## Workflow Decision Tree ``` User provides code → Assess scale ├─ Small-scale (< 200 lines, single file/function) │ └─ Generate focused summary │ └─ Large-scale (> 200 lines, multiple files/modules) ├─ Generate high-level overview ├─ List main modules/components └─ Prompt user to select specific parts for detailed analysis ``` ## Small-Scale Code Summarization For functions, classes, or small files (typically < 200 lines), provide a **focused summary** that includes: ### Summary Structure 1. **Purpose Statement** (1-2 sentences) - What does this code do? - What problem does it solve? 2. **Core Logic** (2-4 bullet points) - Key algorithms or approaches used - Important data transformations - Critical control flow

What's inside
Steps it walks through
  1. Overview
  2. Workflow Decision Tree
  3. Small-Scale Code Summarization
  4. Summary Structure
  5. Example Format
  6. Large-Scale Code Summarization
  7. Phase 1: High-Level Overview
  8. Phase 2: Interactive Drill-Down
  9. Phase 3: Detailed Component Analysis
  10. Best Practices
  11. Code Analysis Approach
  12. Writing Style
  13. Handling Different Languages
  14. Common Scenarios
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the code-summarizer skill do?

Generate concise summaries of source code at multiple scales. Use when users ask to summarize, explain, or understand code - whether it's a single function, a class, a module, or an entire codebase. Handles function-level code by explaining intention and core logic, and large codebases by providing high-level overviews with drill-down capabilities for specific modules.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill code-summarizer --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