brewdocdocsynclisted
Install: claude install-skill kochetkov-ma/claude-brewcode
# docsync
> Project-scoped doc-staleness tracker. Installs three project-local hooks that
> watch which `.md` docs you touch, then nag (once, at end of turn) when a touched
> doc is stale by date. Source of truth = each doc's own frontmatter. Replaces
> `brewdoc:auto-sync`.
<instructions>
## Standard flow (every run)
1. **Resolve mode** from the free-text prompt (`$ARGUMENTS`) — state which mode and WHY.
2. **State the plan** — what this mode will do, before acting.
3. **Execute** the mode.
4. **Output block** — the standard formatted summary (see Output Format below).
5. **Verification (MANDATORY)** — run the checks for the mode and report pass/fail
per check. Never claim success unverified.
Run in the main conversation (uses `AskUserQuestion`). No `context: fork`.
> **Project root.** Resolve it ONCE and use it everywhere (install writes here;
> hooks read from `input.cwd` = project root at runtime, so both must agree even
> when the skill is invoked from a subdirectory):
> ```bash
> ROOT="${CLAUDE_PROJECT_DIR:-$(git rev-parse --show-toplevel 2>/dev/null || echo "$PWD")}"
> ```
> **Enumerating docs.** Native `Glob`/`Grep` tools are no-ops on macOS Claude Code
> (removed in CC 2.1.117+). Enumerate `.md` via the **Bash** tool (`find`/bfs),
> as shown below. `Glob` wording is kept only as a non-macOS fallback.
## Mode Resolution — prompt-driven
Infer the mode from `$ARGUMENTS` (RU + EN). If a mode is named explicitly, honor
it. Otherwise derive from intent. State th