Skip to content
Back to skills

Docs Sync

ASecurity

Keep docs and config examples coherent after a change - ARCHITECTURE.md, README, GOAL.md, MODELS.md, ROADMAP.md (ledger rows), imp.conf.reference and imp.conf.example, CHANGELOG, MISSION_JOURNAL, "README says X but code does Y". Not layers/lint (docs-layers), code audits (codebase-audit), perf baseline (benchmark-cuda), agent memory.

  • 80 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 28, 2026
ai-agentspythongoapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 27, 2026

npx -y skills add kekzl/imp --skill docs-sync --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docs Sync?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Docs Sync
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kekzl-docs-sync/badge)](https://www.skillsdirectory.com/skills/kekzl-docs-sync)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
name: docs-sync
description: Keep docs and config examples coherent after a change - ARCHITECTURE.md, README, GOAL.md, MODELS.md, ROADMAP.md (ledger rows), imp.conf.reference and imp.conf.example, CHANGELOG, MISSION_JOURNAL, "README says X but code does Y". Not layers/lint (docs-layers), code audits (codebase-audit), perf baseline (benchmark-cuda), agent memory.
---

# Docs sync - imp

## Hard rules

| # | Rule |
|---|---|
| 1 | `imp.conf.reference` MUST match the parser: every key is a `B/I/F/S("...")` binder in `src/runtime/config.cpp` (surface in `src/core/config/*.h`); a dropped key logs `imp.conf: unknown key` (stale `q4k_imma_enabled` after #624). Add/remove/rename = `config.h`, `config.cpp`, `imp.conf.reference` together, real default. `imp.conf.example` (short start file) keys carry the reference's value and its `All N keys` line the bound count (`tools/check_config_keys.py`). A bogus `--set` key fails at start (`no such key`). |
| 2 | Numbers are commit-anchored; `docs/PERF.md` owns them. `tests/perf_baseline.json` is the gate (8%/8%/10% `own_peak_mb`, `scripts/verify.sh`); the `docs/PERF.md` perf block is GENERATED (`scripts/sync_docs.py`, `<!-- PERF:BEGIN -->`; `--check` blocks). `docs/BENCHMARKS.md` rows: date, commit SHA, CUDA, model, quant, metric, value, exact command. |
| 3 | Verify before you claim: grep the tree; half the staleness reports are already fixed (the "GOAL.md lists H100" flag was one). |
| 4 | Env vars are not config: the engine reads only `IMP_CONFIG`, `IMP_DETERMINISTIC`, `IMP_FMHA_FA2`, `IMP_WORKER_TIMING`, `IMP_SPEC_TRACE`, `IMP_PPL_DUMP`; config is `imp.conf` / `--config` / `--set`. The container surface is `IMP_CONFIG` + `IMP_SET` (#1823, `docs/DEPLOYMENT.md` "From a container"); the 19 legacy `IMP_*` entrypoint names are frozen and get no new siblings. |
| 5 | Three blocking doc gates, in hooks and `Build`: `scripts/docs_lint.py`, `scripts/sync_docs.py --check`, `scripts/check_doc_citations.py .` (all living docs since #1783; a TU split or a de-prose compaction moves line numbers). |
| 6 | No prose: a paragraph without a number, path or decision is deleted (#1802/#1804 sweeps). |

## The doc set

| Doc | Owns | Touch when |
|---|---|---|
| `docs/internals/ARCHITECTURE.md` | canonical narrative | a refactor changes structure or data flow |
| `docs/internals/MEMORY.md`, root `AUDIT.md`, `docs/audit/AUDIT_ARCH_2026_07_29.md` | memory subsystem (tiers, allocators, invariants I1-I7), running findings log (incl. REFUTED), 07-29 architecture audit | ownership, lifetime, capacity, VRAM behaviour |
| `README.md` | pitch + quickstart; no CI gate numbers | supported models or build steps change |
| `docs/PERF.md` | every number (partly generated) | any perf number changes |
| `docs/GOAL.md` | north star (Qwen3-14B Q6_K @ctx2048 -> 175 tok/s) + hardware scope | goal or scope changes |
| `docs/BENCHMARKS.md` | reproducible SHA-anchored table; `**Toolchain (current: \`vX.Y.Z\`):**` line parsed by `check-release.sh` | a publishable number; a release |
| `docs/FEATURES.md`, `docs/LIMITATIONS.md`, `docs/DESIGN_DECISIONS.md` | what exists / what does not / why | feature ships, limitation opens or closes, decision made or reversed |
| `docs/ROADMAP.md` | verdict ledgers (fact + number + decision per row) and the `B-nn` backlog ledger, citations drift-gated by `check_doc_citations.py` (#1772) | a lever is measured, shipped, refuted or closed; a backlog item opens or closes; investigation goes to `docs/plans/YYYY-MM-DD-<topic>.md`, a closed plan to `docs/archive/plans/` |
| `docs/plans/` | records with closure marks (docs-layers) | an item closes |
| `tests/perf_baseline*.json` | perf + peak-VRAM gate | intentional perf/VRAM move (`scripts/gen_perf_baseline.sh`) |
| `docs/MODELS.md`, `docs/DEPLOYMENT.md`, `docs/API.md`, `docs/QUICKSTART.md` | supported models; container/compose; HTTP contract (request tracing, priority); worked example (`kekzle/Qwen3.8-27B-NVFP4-vllm`) | new arch/model/quant; new flag or env; new endpoint field |
| `docs/MISSION_JOURNAL.md`, `docs/scoreboard.tsv` | mission log, competitive scoreboard | competitive result changes |
| `CHANGELOG.md` | written at the release cut from PR titles (`tools/changelog_release.py`, shipping-prs); a hand entry only for a breaking change | release cut |
| `docs/audit/` | audit reports and ledgers (codebase-audit) | an audit pass |
| `.claude/skills/*/SKILL.md`, `CLAUDE.md` tree | L3 agent routing; per-dir `CLAUDE.md` <= 800 tokens, no perf numbers | a workflow, gate or trap changes |

## When a change lands

| Change | Sync |
|---|---|
| Perf moved intentionally | `gen_perf_baseline.sh`, `BENCHMARKS.md` row, say so in the PR; measure per benchmark-cuda first |
| Config key added/removed/renamed | `config.h` + `config.cpp` + `imp.conf.reference` (+ `imp.conf.example` count, and the key if it is listed there); a new auto-default also needs an `imp-cli --bench` pin (`apply_config_pins` in `tools/imp-cli/args.cpp`) or the baseline bakes it in |
| New arch / model / quant | `docs/MODELS.md` (+ README if headline) |
| New endpoint field, header or env | `docs/API.md`, `docs/DEPLOYMENT.md`, `tests/api/mock_server.py` mirrors the contract |
| Structural refactor | `ARCHITECTURE.md` if the narrative broke, then `python3 scripts/check_doc_citations.py .` (the #1782 scheduler split cost a CI roundtrip on a `ROADMAP.md` citation) |
| A lever measured (shipped or refuted) | `docs/ROADMAP.md` ledger row; harness in `tools/analysis/`; record in `docs/plans/` if the investigation is longer than three lines |
| Any L0-L2 doc edited | bump `verified:`/`commit:` in its header (docs-layers) |

## Common mistakes

- A `BENCHMARKS.md` number from a cold single shot (benchmark-cuda STOP list).
- A skill or `CLAUDE.md` carrying a count or runtime that nothing checks (docs-layers rule 3b).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.