← ClaudeAtlas

hyper-docs-synclisted

Use after implementation changes documented API, schemas, CLI flags, or architecture — before docs go stale. Also when the user invokes /hyperclaude:hyper-docs-sync. Syncs docs to the current code state.
zeikar/hyperclaude · ★ 3 · AI & Automation · score 74
Install: claude install-skill zeikar/hyperclaude
# 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