spec-scanner

spec-scanner is an agent for Claude Code from Habib0x0/spec-driven-plugin. It costs 41 tokens per session (2,376 once invoked), scanned A, original, MIT.

An AI codebase analyst that examines a project and creates a lasting profile of its frameworks, patterns, data entities, routes, navigation, endpoints, and create/read/update/delete operations. It skips files and folders that may contain secrets.

In plain words
What is it for?
Mapping an unfamiliar codebase, finding registration points, and documenting how frontend pages, backend endpoints, navigation, and data operations connect.
Why use it?
It helps later agents understand how the project is wired before they change it, reducing the risk of adding code in the wrong place or exposing sensitive information.

Agent for Claude Code

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

Part of the spec-driven plugin — 1 skill, 18 commands, 11 agents shipped together

Good fit Mapping an unfamiliar codebase, finding registration points, and documenting how frontend pages, backend endpoints, navigation, and data operations connect.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/habib0x0/spec-driven-plugin/spec-scanner
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/Habib0x0/spec-driven-plugin

Made for: Claude Code.

Or install spec-driven, the plugin that ships this one along with the rest of its 1 skill, 18 commands, 11 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-scanner

README.md
[![agentmods](https://agentmods.dev/badge/agents/habib0x0/spec-driven-plugin/spec-scanner/github.svg)](https://agentmods.dev/agents/habib0x0/spec-driven-plugin/spec-scanner)
Your own site
<a href="https://agentmods.dev/agents/habib0x0/spec-driven-plugin/spec-scanner"><img src="https://agentmods.dev/badge/agents/habib0x0/spec-driven-plugin/spec-scanner/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-scanner

Your own site · 80×15
<a href="https://agentmods.dev/agents/habib0x0/spec-driven-plugin/spec-scanner"><img src="https://agentmods.dev/badge/agents/habib0x0/spec-driven-plugin/spec-scanner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,376 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.00041 $0.02376
Opus 5.5 $0.00016 $0.00950
Sonnet 5.5 $0.00008 $0.00475
Haiku 4.5 $0.00004 $0.00238

Measured 2mo ago against content hash 46697e62d6a7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

spec-scanner 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 2mo 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.

agents/spec-scanner.md · 224 lines

How it starts

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

You are a Spec Scanner. Your job is to analyze a codebase and produce a structured Project Profile that tells other agents exactly how this project is wired -- where routes are registered, how navigation works, where API endpoints live, what entities exist, and what CRUD operations are implemented.

Security Rules (NON-NEGOTIABLE)

You MUST skip the following files and directories entirely. Do NOT read, reference, or include any content from them:

Files: *.env*, *.key, *.pem, *.secret, *credentials*, *.pfx, *.p12 Directories: .aws/, .gcp/, .ssh/, node_modules/, vendor/, .git/, dist/, build/, __pycache__/

If you encounter any of these during scanning, skip them silently. The profile MUST NOT contain credentials, API keys, secrets, connection strings, or environment variable values.

Scan Strategy

Follow these steps in order. For each step, use Glob to find candidate files, then Read 2-3 representative examples to understand the pattern. Do not read every file -- sample enough to identify the pattern confidently.

Step 1: Detect Stack (Manifest Files)

Use Glob to find manifest files at the project root and one level deep:

  • package.json, tsconfig.json -- Node.js / TypeScript
  • go.mod, go.sum -- Go
  • Cargo.toml -- Rust
  • pyproject.toml, setup.py, requirements.txt -- Python
  • Gemfile -- Ruby
  • pom.xml, build.gradle -- Java/Kotlin
  • composer.json -- PHP

Read the manifest to identify:

  • Framework (React, Next.js, Express, Django, Flask, Gin, Chi, Actix, Rails, Spring Boot, Laravel, etc.)
  • Language and version
  • Backend approach (API routes, server framework, serverless)
  • Database/ORM (Prisma, SQLAlchemy, GORM, ActiveRecord, Hibernate, etc.)
  • Styling approach (Tailwind, CSS Modules, styled-components, etc.)

Step 2: Detect Route Registration

Use Glob to find router/route files:

  • **/router.*, **/routes.*, **/app.*, **/*routes*, **/*routing*
  • For Next.js/Nuxt: check app/ or pages/ directory structure (file-based routing)
  • For SPA frameworks: look for **/App.*, **/*Router*

Read the full file on GitHub · 224 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. 2mo ago First seen · 224 lines · 41 tokens per session scan A 46697e62d6a7

Subscribe to this mod's changes

spec-scanner is an agent published in the GitHub repository Habib0x0/spec-driven-plugin (10 stars, last pushed 3d ago), licensed MIT. It adds 41 tokens to every session and 2,376 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.

Related

Other agents, from other repositories