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 yesterday against content hash bde6e623804b, 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 yesterday.

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. yesterday Changed · +31 lines bde6e623804b
  2. 2d ago Changed 99b93801db79
  3. 3d ago Changed 79485fcd87a2
  4. 4d ago Changed · +4 lines 1c4e2e911cf4
  5. 5d ago Changed · -276 lines scan D → B f16582e0be28
  6. 12d ago Changed 6adcc78ff16d
  7. 17d ago Changed · -47 lines a8679f471caa
  8. 1mo ago Changed 01dda3220ae0
  9. 1mo ago First seen · 745 lines · 47 tokens per session scan D c5f6a3a529c3

Subscribe to this mod's changes

docsync-setup is a skill published in the GitHub repository kochetkov-ma/claude-brewcode (37 stars, last pushed yesterday), 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

Other skills, from other repositories

vienen-las-visitas

Use before work crosses to another person or system — opening a pull request, pushing a shared branch, requesting review, handing off to another agent, a demo, or a release. NOT for ordinary intermediate commits; this is the boundary-crossing gate, not a per-commit ritual.

mcasillas17/mexican-mom · 63 tokens

git-pr

For every git repo in the current folder, create and merge a PR for feature-branch work, then return to the default branch and pull. With no arguments this runs fully autonomously across ALL sub-repos — commit → push → PR → squash-merge → checkout main → pull. Use whenever the user asks to commit, ship, push…

lukaskellerstein/claude-my-marketplace · 117 tokens

update-feature-docs

Generate or update documentation for the current feature branch. Analyzes all changes (commits, diffs) between the feature branch and base branch, then creates or updates docs/features/ /README.md with incremental indexing based on existing feature docs. Use when documenting a feature branch, creating feature…

lukaskellerstein/claude-my-marketplace · 175 tokens

debug-systematic

Systematic 4-phase debugging methodology for complex, intermittent, or mysterious issues. Use when investigating bugs, race conditions, or unexplained failures.

travisjneuman/.claude · 33 tokens

pre-release-review

Run the pre-release gate for this multi-plugin monorepo: establish each plugin's release boundary from its last reachable tag to HEAD, audit every changed plugin's [Unreleased] changelog against the actual code diff, identify contract-surface and breaking changes, and, per the objective the user picks up front, either…

gtapps/hermitd · 188 tokens

renovate

Generate renovate.json covering all dependency file types used in a repo, emit a GitHub Actions workflow that validates renovate.json on every PR, or generate a pre-commit hook for local validation.

nitinjain999/platform-skills · 42 tokens