hyper-docs-sync — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited hyper-docs-sync (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
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.
/hyperclaude:hyper-docs-sync.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. |
Use the Bash tool. Concrete commands per scope:
git diff --name-only main...HEAD for the file list; per-file diffs via git diff main...HEAD -- <file>.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."git show --format= --patch <sha> (NOT --stat — you need actual diff content).git diff --name-only <ref>...HEAD + per-file git diff <ref>...HEAD -- <file>.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.
The canonical recommended header names are Code and Docs. Example (commentarium-style):
| Code area | Docs |
|---|---|
| API surface | docs/api.md |
| Firestore schema | docs/data-model.md |
| Auth flows | docs/auth.md |If no conforming table is found, note this in the summary and proceed with heuristic fallback.
Use the extracted table (exact path or glob match against changed file paths).
Heuristic fallback when no table or no table match: name similarity (e.g., changed src/auth/session.ts → look for docs/auth.md if it exists).
Confidence rule: dispatch the documenter agent ONLY for matches that meet ONE of:
auth.ts → auth.md qualifies; session.ts → auth.md does NOT qualify by this rule alone).Lower-confidence heuristic candidates (no clear name overlap) are REPORTED in the summary as skipped — possible candidates: X, Y so the user can manually invoke documenter if appropriate. Avoids unsafe edits driven by guesswork.
Group all changed files + their diffs that map to the same target doc. Never dispatch the documenter agent more than once per target doc; aggregate first.
documenter agentFor each affected doc, dispatch via the Agent tool with subagent_type: hyperclaude:documenter. In the prompt, include:
[ -f "<target>" ] via Bash before dispatching. If absent, dispatch in CREATE mode (the agent writes a new file with a sensible scaffold). If present, dispatch in UPDATE mode (agent edits in place). Make this explicit in the dispatch prompt.Run git status and git diff --stat to summarize what changed in docs. Report per-doc:
docs/api.md — sections X, Y modifieddocs/new-feature.md — new file scaffolded from <code path>docs/foo.md — code change didn't affect this doc's claimsdocs/bar.md — possible heuristic match, manual review suggestedIf the project has no mapping table, end the report with a suggestion: "Tip: add a Code | Docs mapping table to your CLAUDE.md so future runs are precise. Based on this run's matches, here's a starter table you can paste:" followed by the inferred table.
This skill produces no .hyperclaude/ artifacts; the doc edits/new files ARE the artifact. The hyper-docs-review gate is the follow-up Codex critic for accuracy verification.
/hyperclaude:hyper-docs-sync — Claude EDITS docs to match code (this skill)/hyperclaude:hyper-docs-review — Codex CRITIQUES docs for accuracy/hyperclaude:hyper-code-review — Codex critiques code diffs/hyperclaude:hyper-plan-review — Codex critiques plans~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.