spec-kit-template: Skill for Claude Code

.github/skills/spec-kit-codebase-maintenance/SKILL.md

spec-kit-codebase-maintenance is a skill for Claude Code, Codex from lksnext-ai-lab/spec-kit-template. It costs 0 tokens per session (1,037 once invoked), scanned A, original, Apache-2.0.

A maintenance guide for deciding when derived codebase documentation needs updating after code changes. It covers the codebase map and evidence packs.

In plain words
What is it for?
Use it to assess whether a code change, resolved question, or old map should trigger a targeted documentation refresh.
Why use it?
It prevents documentation from becoming stale without requiring updates for changes that do not affect documented behavior.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

This is lksnext-ai-lab/spec-kit-template's own configuration. It tells Claude Code and Codex how to work on spec-kit-template itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything spec-kit-template configures →

Reuse

Borrowing it

Nothing to install: this file belongs to lksnext-ai-lab/spec-kit-template. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/lksnext-ai-lab/spec-kit-template/main/.github/skills/spec-kit-codebase-maintenance/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/lksnext-ai-lab/spec-kit-template

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 spec-kit-codebase-maintenance

README.md
[![agentmods](https://agentmods.dev/badge/skills/lksnext-ai-lab/spec-kit-template/spec-kit-codebase-maintenance.svg)](https://agentmods.dev/skills/lksnext-ai-lab/spec-kit-template/spec-kit-codebase-maintenance)
Your own site
<a href="https://agentmods.dev/skills/lksnext-ai-lab/spec-kit-template/spec-kit-codebase-maintenance"><img src="https://agentmods.dev/badge/skills/lksnext-ai-lab/spec-kit-template/spec-kit-codebase-maintenance.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,037 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.00000 $0.01037
Opus 5 $0.00000 $0.00518
Sonnet 5 $0.00000 $0.00207
Haiku 4.5 $0.00000 $0.00104

Measured 8d ago against content hash 559fda0a3155, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

spec-kit-codebase-maintenance 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 8d 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.

.github/skills/spec-kit-codebase-maintenance/SKILL.md · 103 lines

How it starts

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

Skill: codebase_maintenance

Objetivo

Definir cuándo y cómo actualizar la documentación derivada del codebase (codebase-map.md y Evidence Packs) tras cambios en codebase/**, evitando burocracia innecesaria.

Este skill lo consume spc-codebase-discovery (modo refresh) y el Director (para decidir si proponer refresh post-implementación).


Principios

  • Mantenimiento proporcional: solo actualizar lo impactado por el cambio real.
  • Sin burocracia: refactors internos sin cambio funcional NO requieren actualización.
  • Diff-friendly: nunca reescribir el mapa/EP completo; solo secciones afectadas.
  • Opt-in: la actualización es una sugerencia del Director, no una obligación automática.

Señales de obsolescencia

El Director o los agentes pueden detectar obsolescencia mediante:

  1. Fecha: last_updated en codebase-map.md > 60 días → WARN.
  2. Cruce de áreas: si una tarea Txx completada (tipo code-change o migration) opera sobre un área listada en areas_covered del mapa → sugerir refresh.
  3. OPENQ resuelta: si se cierra una OPENQ que referenciaba el mapa o un EP, verificar si esa resolución afecta al contenido documentado.

Tabla de actualización: tipo de cambio → acción

Tipo de cambio en codebase Acción sobre codebase-map.md Acción sobre Evidence Packs
Nuevo módulo/servicio Añadir sección en "Módulos/capacidades" Recomendar EP si es crítico (auth/datos/integración)
Cambio de stack/framework Actualizar "Stack y tooling" Actualizar EP de stack si existe
Nuevo endpoint/API Actualizar "Interfaces públicas" EP solo si es integración externa
Cambio de modelo de datos/migraciones Actualizar "Persistencia" Actualizar EP de datos si existe
Cambio de auth/roles/permisos Actualizar sección relevante Actualizar o crear EP (tema crítico)
Cambio de CI/CD o infra Actualizar "Operación" EP solo si afecta a despliegue
Nuevo entrypoint Actualizar "Entrypoints y bootstrap" No requiere EP
Cambio de config/env Actualizar "Operación" (config) No requiere EP salvo secretos
Refactor interno (sin cambio funcional) No tocar No tocar
Renombrado de módulos (sin cambio funcional) Actualizar nombres/rutas en secciones afectadas Actualizar rutas en EPs afectados
Eliminación de módulos Eliminar/marcar sección del módulo Marcar EP como obsoleto si aplica

Read the full file on GitHub · 103 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. 8d ago First seen · 103 lines · 0 tokens per session scan A 559fda0a3155

Subscribe to this mod's changes

spec-kit-codebase-maintenance is a skill published in the GitHub repository lksnext-ai-lab/spec-kit-template (5 stars, last pushed 6mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,037 tokens. 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 skills, from other repositories

plan-authoring

Reference material for writing implementation plans (technical context, architecture decisions, data models, API contracts, project-instructions alignment). Loaded on demand by plan-feature; not directly invokable.

attilaszasz/sdd-pilot · 41 tokens

task-generation

Reference material with the canonical task-format grammar and decomposition rules for plan-to-tasks expansion. Loaded on demand by generate-tasks; not directly invokable.

attilaszasz/sdd-pilot · 35 tokens

adr-authoring

Defines the canonical MADR format, lifecycle rules, numbering policy, and SAD catalog contract for standalone ADRs under specs/adrs/.

attilaszasz/sdd-pilot · 30 tokens

implementation-standards

Reference material with coding standards (defensive coding, error handling, testing patterns). Loaded on demand by the Developer sub-agent (.github/agents/developer.md); not directly invokable.

attilaszasz/sdd-pilot · 44 tokens

game-ui-workflow

Orchestrates an end-to-end game UI workflow from game design (GDD), PRD, and UI interaction logic through design specification, screen-system extension, page image generation, component breakdown, sprite-sheet splitting, PNG ZIP packaging, atlas packing, engine JSON handoff, asset registration, and validation. Use…

guiguiyan930-source/game-ui-design-workflow · 94 tokens

game-ui-sprite-sheet-splitter

Splits a generated game UI sprite sheet or component board into individual transparent PNG elements, writes crop metadata, validates dimensions and alpha channels, and packages all PNG files into a ZIP archive. Use after component breakdown when users ask to cut a combined sprite sheet, isolate every…

guiguiyan930-source/game-ui-design-workflow · 85 tokens