code-summarizer

code-summarizer is a skill for Claude Code, Codex from ArabelaTso/Skills-4-SE. It costs 75 tokens per session (1,775 once invoked), scanned A, original, Apache-2.0.

A tool for turning source code into clear summaries, from one function to an entire codebase. A codebase is the complete collection of source files that make up a software project.

In plain words
What is it for?
Use it to explain functions, classes, files, modules, packages, or whole repositories, with more detail available for selected parts of a large project.
Why use it?
It reduces the time needed to understand unfamiliar code and adjusts the explanation to the size of the material.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/arabelatso/skills-4-se/code-summarizer
Any agent
npx skills add ArabelaTso/Skills-4-SE --skill code-summarizer
Clone the repo
git clone --depth 1 https://github.com/ArabelaTso/Skills-4-SE

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for code-summarizer

README.md
[![agentmods](https://agentmods.dev/badge/skills/arabelatso/skills-4-se/code-summarizer.svg)](https://agentmods.dev/skills/arabelatso/skills-4-se/code-summarizer)
Your own site
<a href="https://agentmods.dev/skills/arabelatso/skills-4-se/code-summarizer"><img src="https://agentmods.dev/badge/skills/arabelatso/skills-4-se/code-summarizer.svg" alt="Measured on agentmods" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,775 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00075 $0.01775
Opus 5 $0.00037 $0.00888
Sonnet 5 $0.00015 $0.00355
Haiku 4.5 $0.00007 $0.00178

Measured 6d ago against content hash 9232fa363303, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

code-summarizer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/code-summarizer/SKILL.md · 250 lines

How it starts

The opening of the file, as written. The whole thing — 250 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

Read the full file on GitHub · 250 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 250 lines · 75 tokens per session scan A 9232fa363303

Subscribe to this mod's changes

code-summarizer is a skill published in the GitHub repository ArabelaTso/Skills-4-SE (248 stars, last pushed 15d ago), licensed Apache-2.0. It adds 75 tokens to every session and 1,775 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

understand-explain

Use when you need a deep-dive explanation of a specific file, function, or module in the codebase.

Egonex-AI/Understand-Anything · 27 tokens

offensive-exploit-dev-course

Full exploit development course roadmap and syllabus: weekly topics, recommended reading, lab setup, and learning path from vulnerability classes through advanced exploitation. Use to structure exploit dev training or onboard new researchers.

SnailSploit/Claude-Red · 0 tokens

master-debate

Use when user explicitly asks for an adversarial / multi-round dialectic between masters — 祖师辩论, 各执一词, 谁更对, debate, 应成 vs 顿悟, 顿渐之争. Differs from /compare-masters (parallel single-round) by being adversarial multi-round via fresh-subagent orchestration. Topics 空有 / 禅净 / 性相 / 戒律 vs 内观 — trigger is adversarial framing…

xr843/Master-skill · 127 tokens

master-milarepa

Use when user asks about 藏传佛教, 噶举派, 大手印, phyag chen, 拙火, tummo, 那洛六法, 苦行, 闭关, 道歌, mgur, 米拉日巴, 玛尔巴, 上师瑜伽, 出离, 暇满, 中阴, 气脉明点, 觉受, nyams, 本觉, rig pa, or wants teaching in 米拉日巴尊者 Milarepa's voice. Triggers include "米拉日巴"、"密勒日巴"、"Milarepa"、"道歌"、"十万歌集"、"大手印"、"拙火"、"那洛六法"、"玛尔巴"、"噶举"、"白教"、"山洞修行"、"苦行"、"上师瑜伽"、"中阴"、"明空" — invoke…

xr843/Master-skill · 258 tokens

learning-and-development

Builds capability — skills gaps, career frameworks, training that transfers to the job, and internal mobility. Use this to design a career ladder, close a capability gap, decide whether to build or hire a skill, structure onboarding into a role, or work out why training keeps failing to change anything.

cbrock84/headcount · 64 tokens

understand-change

Teach the user to deeply understand a change through interactive tutoring: restating understanding, drilling into why/what/how, and quizzing until mastery. The active counterpart to a one-shot explanation. Use when the user asks to "understand this change", "teach me this change", "help me understand what changed"…

tobihagemann/turbo · 96 tokens