From doc-sync
Verify that all file:line references in markdown documentation point to real code at those exact lines, and that code examples in docs match the current source. Use when the user asks to "review docs against code", "check that line references are accurate", "make sure comments match the code", "verify documentation", or after a refactor that could invalidate line numbers. Also use proactively when inline comments or code examples in docs look stale. Repeat rounds until a full pass finds no further changes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/doc-sync:doc-syncThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Ensure every file:line reference in markdown docs points to current code, and every code example matches actual source.
Ensure every file:line reference in markdown docs points to current code, and every code example matches actual source.
find . -name "*.md" -not -path "*/.git/*" -not -path "*/node_modules/*" | sort
If the user passed a path argument, restrict to that path.
Look for these patterns in markdown files:
**Location**: \file.go:N`orLocation: `file.go:N-M```file.go:N` inline in text// file.go:N-M comments inside fenced code blocksgrep -rn "\`[a-z_/]*.go:[0-9]" docs/ README.md QUICKSTART.md 2>/dev/null
grep -rn "// .*\.go:[0-9]" docs/ 2>/dev/null
For every reference found, Read the source file starting at the claimed line number and check:
grep -rn "// .*[0-9]+ lines\|// .*TODO\|// .*FIXME" internal/ main.go 2>/dev/null
Spot-check any comments that describe counts, behavior, or reference other files.
| Issue | Fix |
|---|---|
| Line number off by N | Update to actual line number |
| Code example shows old logic | Rewrite to match current source |
| Stale field/function name | Correct to current name, or remove if deleted |
| Wrong count ("~X lines") | Update if significantly off; leave if still approximate |
| Stale behavioral description | Rewrite to match current behavior |
go test ./...
Confirm no regressions from edits.
Go back to Step 2. Keep iterating until a complete pass over all references finds zero issues.
Termination: Stop only when a full round produces no changes at all. A round that fixes items must be followed by another full round to confirm the fixes didn't introduce new stale content.
Run this to get a starting list of all references to verify:
grep -rn "\`[a-z_./-]*\.[a-z]*:[0-9]" docs/ README.md QUICKSTART.md 2>/dev/null | \
grep -v "^Binary" | \
sed 's/.*`\([a-z_./-]*\.[a-z]*:[0-9-]*\)`.*/\1/' | \
sort -u
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Applies a firm's KYC/AML rules grid to parsed onboarding records: assigns risk rating, checks required documents, outputs rule outcomes with citations, and routes for escalation.
Generates daily or weekly digests of activity from connected sources (chat, email, docs, tasks, CRM), highlighting action items, decisions, mentions, and project updates.
npx claudepluginhub yhuang/my-claude-skills --plugin doc-sync