docsync-setup

docsync-setup is a skill for Claude Code from kochetkov-ma/claude-brewcode. It costs 47 tokens per session (7,702 once invoked), scanned B, original, MIT.

Project-local tools that track whether documentation may be out of date. They use hooks, which run automatically when specified project actions happen, and document frontmatter, which stores metadata at the start of a document.

In plain words
What is it for?
Use them to install tracking, check documentation status, and report or enforce document synchronisation.
Why use it?
They make stale documentation visible and can require it to be synchronised before work continues.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; reads .claude/ paths; mentions .claude-plugin.

Part of the brewdoc plugin — 4 skills shipped together

Good fit Use them to install tracking, check documentation status, and report or enforce document synchronisation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kochetkov-ma/claude-brewcode/docsync-setup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kochetkov-ma/claude-brewcode --skill docsync-setup
Clone the repo
git clone --depth 1 https://github.com/kochetkov-ma/claude-brewcode

Made for: Claude Code.

Or install brewdoc, the plugin that ships this one along with the rest of its 4 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for docsync-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/kochetkov-ma/claude-brewcode/docsync-setup/github.svg)](https://agentmods.dev/skills/kochetkov-ma/claude-brewcode/docsync-setup)
Your own site
<a href="https://agentmods.dev/skills/kochetkov-ma/claude-brewcode/docsync-setup"><img src="https://agentmods.dev/badge/skills/kochetkov-ma/claude-brewcode/docsync-setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for docsync-setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/kochetkov-ma/claude-brewcode/docsync-setup"><img src="https://agentmods.dev/badge/skills/kochetkov-ma/claude-brewcode/docsync-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,702 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.07702
Opus 5.5 $0.00019 $0.03081
Sonnet 5.5 $0.00009 $0.01540
Haiku 4.5 $0.00005 $0.00770

Measured 9d ago against content hash d32ef0228e91, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

docsync-setup scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (assets/docsync-gate.mjs, assets/docsync-track.mjs, assets/docsync-watch.mjs, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

if [ -f "$ROOT/.claude/hooks/docsync-gate.mjs" ] && grep -q 'docsync-gate.mjs' "$ROOT/.claude/settings.json" 2>/dev/null; then
brewdoc/skills/docsync-setup/SKILL.md · 457 lines

How it starts

The opening of the file, as written. The whole thing — 457 lines — stays where its author put it; the contents beside it link to each section on GitHub.

docsync-setup

Project-scoped doc-staleness tracker. Installs three project-local hooks that log which .md docs a session edits and, at end of turn, raise those whose last_updated is missing, unusable or behind the file. Source of truth = each doc's own frontmatter.

Prompt contract

$ARGUMENTS is one free-form RU/EN prompt; mode tokens and flags may sit anywhere in it.

  1. Mode: an explicit mode token wins outright; else the most distinct whole-word keyword hits (table below). Tie with a destructive mode -> AskUserQuestion; with status -> status; of two mutating modes -> the keyword that comes first. No hit or empty -> status if installed, else install. Strip --unattended before routing: a flag, never a mode, keyword or id; only upgrade honours it (Mode: upgrade), and it never asks.
  2. Scope: prose that is not a mode/id/path is still input: take the id, path or target from it.
  3. Ask: at most ONE AskUserQuestion (max 4 questions) to resolve mode and scope, before any work, only when the answer changes what gets written. A read-only run asks nothing.

Print once, before the first action (labels literal, values in the conversation language):

PLAN — brewdoc:docsync-setup
INPUT:  <arguments verbatim, or "(empty)">
MODE:   <resolved> — <explicit | matched keyword: X | default>
SCOPE:  <resolved paths / target / level / flags>
DO:     <2-5 imperative bullets>
RESULT: <what the user ends up holding>

Standard flow (every run)

Resolve the mode, print the PLAN block, execute, print the summary (Output Format), then run that mode's checks (Verification). Verification is mandatory: report pass/fail per check, never unverified success. Run in the main conversation (uses AskUserQuestion); no context: fork.

Project root. Each EXECUTE block resolves it: CLAUDE_PROJECT_DIR -> git rev-parse --show-toplevel -> upward walk for .git/.claude (a profile .claude at HOME is skipped). Keep the token bare-braced (${VAR:-fallback} is never substituted). The hooks skip the git rev-parse rung and are the authority for config/state placement under a nested .claude.

Read the full file on GitHub · 457 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago Changed d32ef0228e91
  2. 10d ago Changed 6bcc9659712a
  3. 12d ago Changed 4256a558165a
  4. 13d ago Changed daa02cf5edfd
  5. 14d ago Changed 98e2fa125538
  6. 15d ago Changed f11421e03113
  7. 21d ago Changed 0093b83bf80f
  8. 22d ago Changed 5e9d25bff012
  9. 27d ago Changed 5c2969375245
  10. 1mo ago First seen · 457 lines · 47 tokens per session scan B c7886d439ed5

Subscribe to this mod's changes

docsync-setup is a skill published in the GitHub repository kochetkov-ma/claude-brewcode (41 stars, last pushed 2d ago), licensed MIT. It adds 47 tokens to every session and 7,702 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

docsync-setup compared with skills from other repositories

docsync-setup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docsync-setupkochetkov-ma/claude-brewcodeSkill412d agoMITB47Claude Code
vienen-las-visitasmcasillas17/mexican-momSkill23mo agoMITA63Claude Code
git-prlukaskellerstein/claude-my-marketplaceSkill32d agononeA124Claude Code
update-feature-docslukaskellerstein/claude-my-marketplaceSkill32d agononeA175Claude Code
updatelukaskellerstein/claude-my-marketplaceSkill32d agononeA114Claude Code
deletelukaskellerstein/claude-my-marketplaceSkill32d agononeA117Claude Code
debug-systematictravisjneuman/.claudeSkill116yesterdayMITA33Claude Code