sync-project-docs

A procedure for updating a project's living documentation after a development phase. It covers project status, architecture, compliance, threat modelling, and the documentation index.

In plain words
What is it for?
Use it after a phase to update only the relevant documents and check that the documentation gate passes before closing the phase.
Why use it?
It keeps documentation aligned with actual code changes without adding claims about work that was not done.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/686f6c61/alfred-dev/sync-project-docs
Any agent
npx skills add 686f6c61/alfred-dev --skill sync-project-docs
Clone the repo
git clone --depth 1 https://github.com/686f6c61/alfred-dev

Made for: Claude Code, Codex.

Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 412 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00037 $0.00412
Opus 5 $0.00018 $0.00206
Sonnet 5 $0.00007 $0.00082
Haiku 4.5 $0.00004 $0.00041

Measured 3d ago against content hash bd44ae0b8668, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

sync-project-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 3d 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.

skills/sync-project-docs/SKILL.md · 53 lines

What it actually says

Sincronizar documentación viva

Resumen

Tras una fase, actualiza solo lo que ha cambiado. El helper crea esqueletos y comprueba la gate. Tú escribes el contenido.

Proceso

  1. Esqueleto e índice:

    python3 .claude/alfred-continuity.py sync-project-docs "$PWD"
    
  2. Lee docs/project/README.md y el protocolo commands/_docs_vivas.md.

  3. Actualiza únicamente los ficheros de la fase. Si no hubo API nueva, no toques una guía de API. Si no hubo decisión, no inventes un ADR.

  4. Cuando un esqueleto tenga contenido real, deja <!-- alfred-doc:filled --> y quita <!-- alfred-doc:scaffold -->.

  5. Comprueba la gate:

    python3 .claude/alfred-continuity.py check-project-docs "$PWD" --command <comando> --phase <fase>
    
  6. Si el helper falla, no declares la fase cerrada.

En quick y fix

Sync mínimo: índice + docs/project/current.md. ADR solo si el cambio mueve un límite (auth, persistencia, integración).

Criterios de éxito

  • El índice refleja el estado real (scaffold o filled).
  • No hay prosa inventada sobre código que no se ha tocado.
  • check-project-docs sale 0 antes de cerrar la gate.

Qué NO hacer

  • No reescribas todo docs/ en cada fase.
  • No copies el chat al Markdown.
  • No marques filled si siguen los _(pendiente)_.
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. 3d ago First seen · 53 lines · 37 tokens per session scan A bd44ae0b8668

Subscribe to this mod's changes

sync-project-docs is a skill published in the GitHub repository 686f6c61/alfred-dev (119 stars, last pushed 18d ago), licensed MIT. It adds 37 tokens to every session and 412 once invoked, about $0.0002 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-30.