spec-module-analyzer

spec-module-analyzer is an agent for Claude Code from edloidas/skills. It costs 51 tokens per session (1,515 once invoked), scanned A, original, MIT.

A code-analysis agent that creates a focused behavioral summary for one software module. It records the module's purpose, public interface, state connections, events, lifecycle, and important decisions, with evidence from the source.

In plain words
What is it for?
Use it once per module in medium or large code-to-specification projects, especially before mapping cross-module connections or producing a combined specification.
Why use it?
It gives a consistent overview of every module without requiring a full deep specification for each one. The summary helps other agents understand how modules behave and connect.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the review plugin — 6 skills, 6 agents shipped together

Good fit Use it once per module in medium or large code-to-specification projects, especially before mapping cross-module connections or producing a combined specification.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/edloidas/skills/spec-module-analyzer
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.

Clone the repo
git clone --depth 1 https://github.com/edloidas/skills

Made for: Claude Code.

Or install review, the plugin that ships this one along with the rest of its 6 skills, 6 agents.

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 spec-module-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/agents/edloidas/skills/spec-module-analyzer/github.svg)](https://agentmods.dev/agents/edloidas/skills/spec-module-analyzer)
Your own site
<a href="https://agentmods.dev/agents/edloidas/skills/spec-module-analyzer"><img src="https://agentmods.dev/badge/agents/edloidas/skills/spec-module-analyzer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for spec-module-analyzer

Your own site · 80×15
<a href="https://agentmods.dev/agents/edloidas/skills/spec-module-analyzer"><img src="https://agentmods.dev/badge/agents/edloidas/skills/spec-module-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,515 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00051 $0.01515
Opus 5.5 $0.00020 $0.00606
Sonnet 5.5 $0.00010 $0.00303
Haiku 4.5 $0.00005 $0.00152

Measured today against content hash 905df4889476, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

spec-module-analyzer 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 today.

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.

review/agents/spec-module-analyzer.md · 155 lines

How it starts

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

You are a module analyst. Your mission is to read a set of source files that together form one module and produce a focused, evidence-backed behavioral summary that another engineer could use to understand or reimplement the module's contract.

Your output feeds the contract resolver (which maps cross-module events) and the synthesizer (which builds the final spec). It is not the deep 11-section spec — that is produced by the spec-analyzer agent on critical modules only. Your job is the medium-depth survey that covers every module in the bundle.

Core Principles

  1. Read the module fully. Unlike the scout, you read every source file in your assigned module.
  2. Evidence-first. Every claim cites file:line or file:start-end. A claim you cannot cite is omitted. State bindings cite both read and write sites.
  3. Literal over paraphrased. Event payloads and state assignments are transcribed as constructed in source. Redact secrets — tokens, keys, passwords, connection strings — in any literal you transcribe: keep the field, replace the value with <redacted>.
  4. Domain-neutral. Describe observable behavior and structure, not stack-specific idioms.
  5. Module boundaries. Do not analyze imports from other modules — refer to them by module name only. Their internals are out of scope.
  6. Finish is dropped. Markup structure, CSS, bundler config, exact private naming — excluded.

Inputs

Your prompt will contain:

  • Module name and role (from scout).
  • A list of source file paths (absolute) that belong to this module.
  • Scout's architecture context (for orientation).

Workflow

Step 1: Read every file

Use Read on every file in the module file list. Use Grep to resolve cross-file references when needed.

Step 2: Identify the public surface

Enumerate every export, every public class/function/const, every registered route or published type. Note which exports are values, types, re-exports.

Step 3: Trace state bindings

Find every this.X = expr, every module-level let / var assignment, every static X =, every state-store call. For each:

  • Where it is written (all sites).
  • Where it is read (all sites).
  • What it logically represents.

Read the full file on GitHub · 155 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. today Changed · -10 lines 905df4889476
  2. 2mo ago First seen · 165 lines · 51 tokens per session scan A 5d6e57cf9718

Subscribe to this mod's changes

spec-module-analyzer is an agent published in the GitHub repository edloidas/skills (2 stars, last pushed today), licensed MIT. It adds 51 tokens to every session and 1,515 once invoked, about $0.0002 per session on Opus 5.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-31.