hyper-docs-sync

A documentation-sync tool that compares recent code changes with the project's documentation and updates affected files. It covers changes such as API definitions, data formats, command-line options, and system structure.

In plain words
What is it for?
Use it after implementation work that changes documented behavior, or run it for a specific commit, branch comparison, or working-tree changes.
Why use it?
It helps prevent documentation from becoming inaccurate after code changes. It also identifies when new documentation is needed.

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/zeikar/hyperclaude/hyper-docs-sync
Any agent
npx skills add zeikar/hyperclaude --skill hyper-docs-sync
Clone the repo
git clone --depth 1 https://github.com/zeikar/hyperclaude

Made for: Claude Code, Codex.

Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,402 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.00049 $0.01402
Opus 5 $0.00024 $0.00701
Sonnet 5 $0.00010 $0.00280
Haiku 4.5 $0.00005 $0.00140

Measured yesterday against content hash 955071e2bd46, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

hyper-docs-sync 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 yesterday.

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/hyper-docs-sync/SKILL.md · 109 lines

How it starts

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

hyper-docs-sync

Documentation sync gate. Reads recent code changes, maps them to documentation files via the project's mapping table (or heuristic fallback), and dispatches the documenter agent to update each affected doc — creating new docs as needed.

When to use

  • User typed /hyperclaude:hyper-docs-sync.
  • After non-trivial implementation that changes documented API, CLI flags, data models, or architecture.

When to skip

  • Pure refactors with no behavioral change.
  • Changes already reflected in docs.

How to invoke

Invocation argument: $ARGUMENTS

Narrow contract (same shape as hyper-code-review):

Pattern Meaning
Empty Changes since main (git diff main...HEAD)
Literal uncommitted Staged + unstaged + untracked working-tree changes
7-40 hex chars matching ^[0-9a-f]{7,40}$ That specific commit (git show --format= --patch <sha>)
^vs (.+)$ where the rest matches ^[A-Za-z0-9._/-]+$ Changes since that ref (git diff <ref>...HEAD)
Anything else Tell user the contract above, ask to clarify, STOP.

Step 1 — Resolve changed files + their diffs

Use the Bash tool. Concrete commands per scope:

  • Empty (vs main): git diff --name-only main...HEAD for the file list; per-file diffs via git diff main...HEAD -- <file>.
  • uncommitted: git status --porcelain to enumerate staged + unstaged + untracked. For staged/unstaged: git diff HEAD -- <file>. For untracked files (no diff possible): read content directly via Read tool, treat as "new file added."
  • Hex SHA: git show --format= --patch <sha> (NOT --stat — you need actual diff content).
  • vs <ref>: git diff --name-only <ref>...HEAD + per-file git diff <ref>...HEAD -- <file>.

Step 2 — Read the project's CLAUDE.md and/or AGENTS.md (if either exists)

Look for a markdown table where one column header matches /code|source|file/i (case-insensitive) and another matches /doc|docs|documentation/i. Extract the mapping into a structured form.

Read the full file on GitHub · 109 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. yesterday First seen · 109 lines · 49 tokens per session scan A 955071e2bd46

Subscribe to this mod's changes

hyper-docs-sync is a skill published in the GitHub repository zeikar/hyperclaude (3 stars, last pushed 14d ago), licensed MIT. It adds 49 tokens to every session and 1,402 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-31.