Source profileQuality 93/100

ArabelaTso/Skills-4-SE/skills/code-summarizer/SKILL.md

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.

Source repository stars
236
Declared platforms
0
Static risk flags
0
Last source update
2026-08-21
Source checked
2026-08-25

Decision brief

What it does: where it fits

Generate clear, concise summaries of source code at any scale - from individual functions to entire codebases.

Best for

  • Use when users ask to summarize, explain, or understand code - whether it's a single function, a class, a module, or an entire codebase.

Not for

  • Context limits: For very large codebases, may need to analyze in chunks
  • Missing context: May need to ask clarifying questions about business logic

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeNot declaredNo explicit evidencePortability before use
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/ArabelaTso/Skills-4-SE --skill "skills/code-summarizer"
Safe inspection promptEditorial

Inspect the Agent Skill "code-summarizer" from https://github.com/ArabelaTso/Skills-4-SE/blob/4f38503747e0617504bce5329283ef837d375c09/skills/code-summarizer/SKILL.md at commit 4f38503747e0617504bce5329283ef837d375c09. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    Workflow Decision Tree

    Review the “Workflow Decision Tree” section in the pinned source before continuing.

    Review and apply the “Workflow Decision Tree” source section.
  2. 02

    Phase 1: High-Level Overview

    Provide a concise overview that includes:

    Project Purpose (2-3 sentences)What does this codebase do?What is its primary use case or domain?
  3. 03

    Phase 2: Interactive Drill-Down

    After providing the overview, prompt the user to select specific areas for detailed analysis:

    After providing the overview, prompt the user to select specific areas for detailed analysis:
  4. 04

    Phase 3: Detailed Component Analysis

    When user selects a component, provide a detailed summary using the small-scale format adapted for the component:

    Purpose and responsibilitiesKey classes/functions within the componentInteractions with other components
  5. 05

    Small-Scale Code Summarization

    For functions, classes, or small files (typically < 200 lines), provide a focused summary that includes:

    Purpose Statement (1-2 sentences)What does this code do?What problem does it solve?

Permission review

Static risk signals and limitations

No configured static risk pattern was detected

This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score93/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars236SourceRepository attention, not individual Skill quality
Compatibility0 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
ArabelaTso/Skills-4-SE
Skill path
skills/code-summarizer/SKILL.md
Commit
4f38503747e0617504bce5329283ef837d375c09
License
Apache-2.0
Collected
2026-08-25
Default branch
main
View the original 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 decisions
  3. Key Details

    • Input parameters and their purposes
    • Return values and their meaning
    • Important side effects or state changes
    • Dependencies on external libraries or modules
  4. Notable Patterns (if applicable)

    • Design patterns used
    • Optimization techniques
    • Error handling approaches

Example Format

## Summary

**Purpose**: This function validates user email addresses and normalizes them to lowercase format before database storage.

**Core Logic**:
- Uses regex pattern matching to validate email format (RFC 5322 compliant)
- Strips whitespace and converts to lowercase for consistency
- Checks against a blocklist of disposable email domains
- Logs validation failures for security monitoring

**Key Details**:
- Input: `email` (string) - raw email address from user input
- Returns: `normalized_email` (string) or raises `ValidationError`
- Side effect: Logs to `security.log` on validation failure
- Dependencies: `re`, `logging`, custom `EmailBlocklist` class

**Notable Patterns**:
- Uses early return pattern for validation failures
- Implements defensive programming with input sanitization

Large-Scale Code Summarization

For modules, packages, or entire repositories (typically > 200 lines or multiple files), use a hierarchical approach:

Phase 1: High-Level Overview

Provide a concise overview that includes:

  1. Project Purpose (2-3 sentences)

    • What does this codebase do?
    • What is its primary use case or domain?
  2. Architecture Overview

    • Overall design pattern (MVC, microservices, layered, etc.)
    • Key architectural decisions
    • Technology stack
  3. Main Components (list with brief descriptions)

    • List 5-10 major modules/packages
    • One-line description for each
    • Indicate relationships between components
  4. Entry Points

    • Main execution files
    • Key API endpoints or interfaces
    • Configuration files

Phase 2: Interactive Drill-Down

After providing the overview, prompt the user to select specific areas for detailed analysis:

## Detailed Analysis Available

I can provide more detailed summaries of specific components:

1. **[Component Name]** - [Brief description]
2. **[Component Name]** - [Brief description]
3. **[Component Name]** - [Brief description]
...

Which component(s) would you like me to analyze in detail? You can:
- Select one or more by number
- Ask about specific functionality (e.g., "How does authentication work?")
- Request a specific file or module by name

Phase 3: Detailed Component Analysis

When user selects a component, provide a detailed summary using the small-scale format adapted for the component:

  • Purpose and responsibilities
  • Key classes/functions within the component
  • Interactions with other components
  • Important algorithms or business logic
  • Configuration and dependencies

Best Practices

Code Analysis Approach

  1. Read strategically

    • Start with entry points (main files, init.py, index files)
    • Examine directory structure for organization patterns
    • Look for README, documentation, or comments
    • Identify configuration files
  2. Identify patterns

    • Recognize common design patterns
    • Note architectural styles
    • Identify framework conventions
  3. Focus on intent over implementation

    • Explain what and why before how
    • Highlight business logic over boilerplate
    • Emphasize key algorithms over routine operations

Writing Style

  • Be concise: Avoid unnecessary verbosity
  • Be specific: Use concrete examples and actual names from the code
  • Be hierarchical: Start broad, then drill down
  • Be actionable: Help users understand how to use or modify the code

Handling Different Languages

Adapt terminology and patterns to the language:

  • Python: Modules, packages, decorators, list comprehensions
  • JavaScript: Modules, components, promises, async/await
  • Java: Packages, classes, interfaces, annotations
  • C/C++: Headers, source files, namespaces, templates
  • Go: Packages, goroutines, channels, interfaces

Common Scenarios

Scenario 1: Understanding a New Codebase

User: "Can you summarize this repository?"

Response approach:

  1. Analyze directory structure
  2. Read main entry points and README
  3. Provide high-level overview with component list
  4. Offer to drill down into specific areas

Scenario 2: Explaining a Specific Function

User: "What does this function do?" [provides code]

Response approach:

  1. Identify function purpose
  2. Explain core logic step-by-step
  3. Note inputs, outputs, and side effects
  4. Highlight any notable patterns or concerns

Scenario 3: Comparing Implementations

User: "Summarize these two implementations and compare them"

Response approach:

  1. Summarize each implementation separately
  2. Identify key differences in approach
  3. Compare trade-offs (performance, readability, maintainability)
  4. Recommend based on context if appropriate

Scenario 4: Legacy Code Understanding

User: "Help me understand this old code"

Response approach:

  1. Identify the era/style of the code
  2. Explain outdated patterns or conventions
  3. Summarize what it does in modern terms
  4. Suggest modern equivalents if relevant

Output Format Guidelines

For Small-Scale Code

Use clear markdown with:

  • Heading for the summary
  • Bullet points for core logic
  • Code blocks for examples if helpful
  • Bold for emphasis on key terms

For Large-Scale Code

Use structured markdown with:

  • Clear section headings
  • Numbered or bulleted lists for components
  • Tables for comparing multiple items
  • Collapsible sections for optional details (if supported)

Code References

When referencing specific code elements:

  • Use backticks for function/class/variable names
  • Include file paths when relevant: src/utils/validator.py:validate_email()
  • Use line numbers for large files: lines 45-67

Limitations and Considerations

  • Context limits: For very large codebases, may need to analyze in chunks
  • Missing context: May need to ask clarifying questions about business logic
  • Language expertise: Summaries are most accurate for well-known languages and frameworks
  • Dynamic behavior: Cannot fully analyze runtime behavior without execution
  • External dependencies: May not have full context for third-party libraries

When encountering limitations, acknowledge them and offer alternative approaches or ask for additional context.

Frequently asked questions

What to verify before installation and use

What does the code-summarizer source document cover?

Generate clear, concise summaries of source code at any scale - from individual functions to entire codebases.

How do I install code-summarizer?

The source record exposes this install command: npx skills add https://github.com/ArabelaTso/Skills-4-SE --skill "skills/code-summarizer". Inspect the command and pinned source before running it.

Alternatives

Compare before choosing

Computed 10024,921

alirezarezvani/claude-skills

app-store-optimization

App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist

Computed 9965

brucesongs/kali-claw

insecure-design

Insecure Design (OWASP A06:2025) focuses on security flaws in system architecture and design phases, rather than code implementation-level bugs.

Computed 9916

NintendaDev/unikit-ai

unikit-docs

Generate and maintain the project's TECHNICAL documentation from its codebase — scans the project structure, tech stack, and module boundaries, then writes a lean README landing page plus detailed topic pages (architecture, modules, setup, build, APIs), only the docs that are relevant. Use whenever the user wants to create, update, or validate documentation of the CODE or the project itself, e.g. "generate documentation", "create docs", "write the README", "update the project docs", "document th

Computed 9834,322

K-Dense-AI/scientific-agent-skills

dask

Distributed computing for larger-than-RAM pandas/NumPy workflows. Use when you need to scale existing pandas/NumPy code beyond memory or across clusters. Best for parallel file processing, distributed ML, integration with existing pandas code. For out-of-core analytics on single machine use vaex; for in-memory speed use polars.