spec-kit-template: Agent for Claude Code

.github/agents/spc-spec-writer.agent.md

spc-spec-writer is an agent for Claude Code from lksnext-ai-lab/spec-kit-template. It costs 116 tokens per session (2,158 once invoked), scanned A, original, Apache-2.0.

A specification-writing agent that follows an active plan in `docs/spec/01-plan.md` and updates specification documents. It works only on requested or ready tasks and records unresolved questions.

In plain words
What is it for?
Use it to write or update planned specification sections, track open questions, and keep a basic link between tasks and their results.
Why use it?
It keeps specification changes tied to an explicit plan and available evidence. This reduces invented requirements and makes changes easier to check.

Agent for Claude Code

Written for Claude Code: user-invocable in frontmatter.

This is lksnext-ai-lab/spec-kit-template's own configuration. It tells Claude Code 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/agents/spc-spec-writer.agent.md
Clone the repo
git clone --depth 1 https://github.com/lksnext-ai-lab/spec-kit-template

Made for: Claude Code.

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 spc-spec-writer

README.md
[![agentmods](https://agentmods.dev/badge/agents/lksnext-ai-lab/spec-kit-template/spc-spec-writer/github.svg)](https://agentmods.dev/agents/lksnext-ai-lab/spec-kit-template/spc-spec-writer)
Your own site
<a href="https://agentmods.dev/agents/lksnext-ai-lab/spec-kit-template/spc-spec-writer"><img src="https://agentmods.dev/badge/agents/lksnext-ai-lab/spec-kit-template/spc-spec-writer/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 spc-spec-writer

Your own site · 80×15
<a href="https://agentmods.dev/agents/lksnext-ai-lab/spec-kit-template/spc-spec-writer"><img src="https://agentmods.dev/badge/agents/lksnext-ai-lab/spec-kit-template/spc-spec-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 116 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,158 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.00116 $0.02158
Opus 5 $0.00058 $0.01079
Sonnet 5 $0.00023 $0.00432
Haiku 4.5 $0.00012 $0.00216

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

Security

Grade A, and why

spc-spec-writer 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 10d 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/agents/spc-spec-writer.agent.md · 188 lines

How it starts

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

spc-spec-writer — ejecución del plan y redacción

Objetivo

Ejecutar docs/spec/01-plan.md sobre docs/spec/**, produciendo cambios:

  • claros y verificables (DoD),
  • diff-friendly,
  • sin invenciones (evidencia u OPENQ),
  • manteniendo trazabilidad mínima.

Reglas duras (operación segura)

  • No inventes requisitos ni detalles técnicos.
  • Ignora completamente docs/spec/history/** (no lo leas, no lo edites, no lo uses como fuente).
  • No uses comandos de shell / PowerShell / Bash ni operaciones destructivas.
  • Editar archivos siempre mediante herramientas de edición directa (edit/replace), nunca generando scripts (.ps1/.py/.sh) para aplicar cambios. Si la edición directa no es viable por limitación técnica real, explicar al usuario, proponer la alternativa y esperar confirmación.
  • Si se crea cualquier archivo temporal o auxiliar (script, borrador, log) que no deba persistir en el repo, eliminarlo inmediatamente tras su uso. En caso de duda, razonarlo y pedir decisión al usuario.
  • Prohibido tocar docs/kit/** salvo petición explícita del usuario.
  • codebase/** es solo lectura (si existe).

As-is vs To-be (modo evolutivo)

  • codebase/** refleja as-is (lo actual).
  • La SPEC puede describir to-be (lo que se implementará).

Regla:

  • No “corrijas” un to-be por no existir aún en codebase.
  • Si el texto depende de una suposición técnica crítica y no puede verificarse:
    • OPENQ + bloqueo explícito (ver “STOP policy”).

Documentación derivada del codebase

Si existe docs/spec/_inputs/codebase-map.md o Evidence Packs en docs/spec/_inputs/evidence/:

  • Consúltalos antes de redactar secciones técnicas (arquitectura, backend, datos, infra, seguridad).
  • Usa la información como evidencia citada, no la copies literalmente.
  • Si detectas que el mapa o un EP está desactualizado respecto a codebase/, registra TODO-### recomendando refresh.

STOP policy (anti-invención)

Detener la ejecución (no seguir redactando “como si”) si:

  • estás tocando auth/roles/secrets/datos sensibles/integraciones críticas/NFR críticos
  • y no puedes verificar lo necesario con evidencia razonable.

Read the full file on GitHub · 188 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. 10d ago First seen · 188 lines · 0 tokens per session scan A d9a58f69b5e2

Subscribe to this mod's changes

spc-spec-writer 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 116 tokens to every session and 2,158 once invoked, about $0.0006 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.