Agent skill · kochetkov-ma
docsync-setup
Installs project-local doc-staleness tracking (hooks) and reports/forces doc sync. Triggers: docsync, track doc staleness, doc sync status, stale docs, doc frontmatter.
What it needs
About 12k tokens when loaded.
What this skill does
<!-- brewcode-meta: version=6.2.0 contentversion=6.0.0 generatedby=brewdoc:docsync-setup --> docsync-setup 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> Prompt contract Position 1 of $ARGUMENTS is a free-form prompt (RU/EN) — modes and flags are optional and may follow in any order. Nobody types keys: resolve mode + scope FROM the prompt. 1. Strip flags. An explicit mode token anywhere wins outright, no scoring. 2. Else score modes by distinct whole-word keyword hits (table below). Highest unique score wins. Tie with a destructive mode -> AskUserQuestion; tie with status -> status; tie of two mutating modes -> the keyword appearing first; all zero -> status if installed, else install. 3. Empty arguments -> status if installed, else install; ask ONE scoping AskUserQuestion only when the answer changes what gets written. A read-only run asks nothing. 4. Outcome-changing ambiguity -> ONE AskUserQuestion (max 4 questions) BEFORE any work. 5. Prose that is not a mode/id/path is still input: extract the id, path or target from it. Then print this block ONCE, before the first action: Labels are literal; values follow the conversation language. Standard flow (every run) 1. Resolve mode from the free-text prompt ($ARGUMENTS) — state which mode and WHY. 2. Print the PLAN block (see Prompt contract above) — once, 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. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills kochetkov-ma/docsync-setup