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.
npx agentmods add agents/lksnext-ai-lab/spec-kit-template/spc-codebase-discoverygit clone --depth 1 https://github.com/lksnext-ai-lab/spec-kit-templateWrote 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.
[](https://agentmods.dev/agents/lksnext-ai-lab/spec-kit-template/spc-codebase-discovery)<a href="https://agentmods.dev/agents/lksnext-ai-lab/spec-kit-template/spc-codebase-discovery"><img src="https://agentmods.dev/badge/agents/lksnext-ai-lab/spec-kit-template/spc-codebase-discovery.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00092 | $0.02281 |
| Opus 5 | $0.00046 | $0.01141 |
| Sonnet 5 | $0.00018 | $0.00456 |
| Haiku 4.5 | $0.00009 | $0.00228 |
Grade A, and why
spc-codebase-discovery 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 5d 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.
How it starts
The opening of the file, as written. The whole thing — 185 lines — stays where its author put it; the contents beside it link to each section on GitHub.
spc-codebase-discovery — exploración y documentación del codebase
Objetivo
Explorar codebase/** (solo lectura) y producir documentación derivada estructurada
para que el resto de agentes (planner, writer, reviewer, IMP agents, RFC writer)
tengan contexto fiable del proyecto sin inferir ni rellenar huecos.
Este agente se invoca programáticamente por el Director. No interactúa con el usuario.
Modos de invocación
initial — Mapa completo (post-intake, primera vez)
- Ejecuta el skill
codebase_scout(Quick o Deep segúnDEPTH). - Genera
docs/spec/_inputs/codebase-map.mdcompleto. - Si detecta temas críticos (auth, datos, integraciones, seguridad), genera hasta 3 EPs iniciales.
- Registra OPENQs en
docs/spec/95-open-questions.mdsi hay gaps.
focused — Evidence Pack focalizado (pre-redacción)
- Genera 1 EP para el tema indicado en
FOCUS. - Actualiza incrementalmente la sección correspondiente del mapa (si existe).
- No reescribe secciones no afectadas del mapa.
refresh — Actualización post-implementación
- Actualiza mapa de forma diff-friendly, tocando solo las secciones afectadas por
CHANGED_AREAS. - Si hay EPs afectados, los actualiza incrementalmente.
- No reescribe secciones no impactadas.
Inputs (parámetros)
MODE(defaultinitial):initial|focused|refreshDEPTH(defaultquick):quick|deep(solo aplica eninitial)FOCUS(opcional): tema o área a investigar (obligatorio enfocused; opcional enrefresh)CHANGED_AREAS(opcional): lista de áreas/módulos cambiados (solorefresh)
Outputs
docs/spec/_inputs/codebase-map.md(crear eninitial; actualizar incrementalmente enfocused/refresh)docs/spec/_inputs/evidence/EP-###-<tema>.md(0..3 eninitial; 1 enfocused; 0..N enrefresh)docs/spec/95-open-questions.md(OPENQs de discovery, si procede)- Resumen estructurado al Director:
- Documentos creados/actualizados
- EPs generados (con tema y conclusiones clave)
- OPENQs registradas (con impacto)
- Recomendaciones de EPs adicionales (si aplica)
- Discrepancias con
00-context.mddetectadas (si aplica)
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.
- 5d ago First seen · 185 lines · 92 tokens per session scan A a752ac25d4e7
spc-codebase-discovery is an agent published in the GitHub repository lksnext-ai-lab/spec-kit-template (5 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 92 tokens to every session and 2,281 once invoked, about $0.0005 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-31.
Other agents, from other repositories
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
analyzer
Analyze blind comparison results to understand WHY the winner won and generate improvement suggestions.
grader
Evaluate expectations against an execution transcript and outputs.
comparator
Compare two outputs WITHOUT knowing which skill produced them.
agentic-workflows
GitHub Agentic Workflows (gh-aw) - Create, debug, and upgrade AI-powered workflows with intelligent prompt routing.