reconcile-docs

reconcile-docs is a skill for Claude Code from JotJunior/cstk. It costs 171 tokens per session (2,136 once invoked), scanned A, original, MIT.

A documentation-maintenance workflow that compares feature documents with the current code and updates only the parts that no longer match. It treats the code as the source of truth and writes only under the specified documentation directory.

In plain words
What is it for?
Use it to reconcile feature specifications, plans, data models, contracts, and quickstarts, either for one feature or for all features, with an optional dry run first.
Why use it?
Specifications and quickstarts become inaccurate after code changes, which can mislead developers and users. This workflow brings those documents back in line without changing the code.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the cstk plugin — 23 skills, 7 commands, 7 agents, 1 MCP server shipped together

Good fit Use it to reconcile feature specifications, plans, data models, contracts, and quickstarts, either for one feature or for all features, with an optional dry run first.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jotjunior/cstk/reconcile-docs
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.

Any agent
npx skills add JotJunior/cstk --skill reconcile-docs
Clone the repo
git clone --depth 1 https://github.com/JotJunior/cstk

Made for: Claude Code.

Or install cstk, the plugin that ships this one along with the rest of its 23 skills, 7 commands, 7 agents, 1 MCP server.

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 reconcile-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/jotjunior/cstk/reconcile-docs/github.svg)](https://agentmods.dev/skills/jotjunior/cstk/reconcile-docs)
Your own site
<a href="https://agentmods.dev/skills/jotjunior/cstk/reconcile-docs"><img src="https://agentmods.dev/badge/skills/jotjunior/cstk/reconcile-docs/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 reconcile-docs

Your own site · 80×15
<a href="https://agentmods.dev/skills/jotjunior/cstk/reconcile-docs"><img src="https://agentmods.dev/badge/skills/jotjunior/cstk/reconcile-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 171 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,136 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.00171 $0.02136
Opus 5.5 $0.00068 $0.00854
Sonnet 5.5 $0.00034 $0.00427
Haiku 4.5 $0.00017 $0.00214

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

Security

Grade A, and why

reconcile-docs 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 23d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (scripts/doc-guard.sh, scripts/extract-anchors.sh, scripts/git-probe.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/cstk/skills/reconcile-docs/SKILL.md · 125 lines

How it starts

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

Skill: Reconcile Docs — documentacao segue o codigo

Compara o que a documentacao de uma feature (ativa ou arquivada) afirma com o que o codigo faz hoje e atualiza so os trechos divergentes. E o sentido inverso da converge (que adiciona tarefas para o codigo alcancar a spec). Jamais altera codigo: a unica escrita possivel e em documentos da feature, sempre validada por scripts/doc-guard.sh.

Invocacao

/reconcile-docs <feature> [--dry-run]
/reconcile-docs --all [--dry-run]
Argumento Regra
<feature> nome kebab-case, com ou sem prefixo AAAA-MM-DD-
--all todas as features ativas e arquivadas; exclusivo com <feature>
--dry-run nenhuma escrita (inclusive reconciliation.md); acoes proposed-*
nenhum argumento erro de uso: mostre a sintaxe acima e encerre sem alterar nada

Raiz do projeto = diretorio de trabalho corrente; precisa conter docs/specs/. Sem ela, encerre informando. Recomende --all --dry-run antes de --all.

Gravacao: so com git. Sem --dry-run, rode "$SKILL/scripts/git-probe.sh" can-write --root . ANTES de qualquer escrita; qualquer resultado diferente de WRITE<TAB>allowed (exit != 0, denied-no-git ou script ausente) = RECUSA: execute como --dry-run forcado e emita o aviso no-git-write-refused. Detalhes e politica completa em references/write-policy.md.

$SKILL abaixo = diretorio desta skill (.../skills/reconcile-docs).

Fluxo por feature

  1. Localizar: "$SKILL/scripts/locate-feature.sh" --root . --name <feature> (exit 3 = inexistente e 4 = ambiguo: liste os candidatos e encerre sem alterar; exit 2 = nome invalido). Homonima ativa+arquivada: reconcilie a ativa e informe a arquivada (archived-shadowed) no relatorio.
  2. Snapshot: "$SKILL/scripts/git-probe.sh" status --root . (base da auditoria). Linha STATUS no-git = sem git: a escrita e recusada (--dry-run forcado, aviso no-git-write-refused); a analise segue, sem priorizacao e sem auditoria.
  3. Ancoras: "$SKILL/scripts/extract-anchors.sh" --root . --feature-dir <dir> (TSV kind token doc:line presence). E o unico escopo de busca no codigo. exit != 0 (inclusive documento ilegivel, exit 1) = nao verificavel: reporte unverifiable e nao trate a lista parcial como completa.
  4. Priorizar (opcional): "$SKILL/scripts/git-probe.sh" changed-since --root . --feature-dir <dir>. So atalho; a verificacao le SEMPRE o codigo atual.
  5. Comparar e classificar cada ancora/afirmacao lendo o codigo (Read/Grep/Glob), conforme references/classification.md (5 tipos, regra MUST/MUST NOT, unverifiable, nao-copia de segredos). Releia a linha citada antes de gravar.
  6. Escrever (so sem --dry-run e com can-write permitido; ver references/write-policy.md), para cada alteracao: doc-guard.sh check --root . --feature-dir <dir> <doc> (exit != 0, inclusive script ausente = negado, acao ignored) -> Edit so do trecho divergente -> marcador inline [reconciled:<kind> <date> evidence=<ref>] (scripts/markers.sh next-fr <spec.md> numera o novo FR) -> markers.sh lint <doc> e markers.sh verify --root . <doc> (devem passar).
  7. Registrar: so se algum documento mudou, monte o corpo a partir de templates/log-entry.md num arquivo temporario e rode reconciliation-log.sh append --feature-dir <dir> --date <hoje> --summary-file <arq> (exit 3 = vazio, nada gravado). Sem alteracao, NAO grave nada.
  8. Auditar: git-probe.sh status de novo; entrada nova fora da allowlist = audit: violation no relatorio (sem git nao ha gravacao: skipped-no-git).
  9. Relatorio na conversa conforme templates/report.md (cada linha com evidencia arquivo:linha ou absent:<caminho>).

Read the full file on GitHub · 125 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. 23d ago First seen · 125 lines · 171 tokens per session scan A 42596aaac0ae

Subscribe to this mod's changes

reconcile-docs is a skill published in the GitHub repository JotJunior/cstk (24 stars, last pushed 4d ago), licensed MIT. It adds 171 tokens to every session and 2,136 once invoked, about $0.0007 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-10-02.