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.
npx skills add majiayu000/claude-skill-registry --skill code-summarizer --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 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
- Overview
- Workflow Decision Tree
- Small-Scale Code Summarization
- Summary Structure
- Example Format
- Large-Scale Code Summarization
- Phase 1: High-Level Overview
- Phase 2: Interactive Drill-Down
- Phase 3: Detailed Component Analysis
- Best Practices
- Code Analysis Approach
- Writing Style
- Handling Different Languages
- Common Scenarios
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.
