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.
npx skills add kochetkov-ma/claude-brewcode --skill docsync-setupgit clone --depth 1 https://github.com/kochetkov-ma/claude-brewcodeWrote 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.
[](https://agentmods.dev/skills/kochetkov-ma/claude-brewcode/docsync-setup)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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 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
.mddocs a session edits and, at end of turn, raise those whoselast_updatedis 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.
- Mode: an explicit mode token wins outright; else the most distinct whole-word keyword hits
(table below). Tie with a destructive mode ->
AskUserQuestion; withstatus->status; of two mutating modes -> the keyword that comes first. No hit or empty ->statusif installed, elseinstall. Strip--unattendedbefore routing: a flag, never a mode, keyword or id; onlyupgradehonours it (Mode: upgrade), and it never asks. - Scope: prose that is not a mode/id/path is still input: take the id, path or target from it.
- 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.claudeat HOME is skipped). Keep the token bare-braced (${VAR:-fallback}is never substituted). The hooks skip thegit rev-parserung and are the authority for config/state placement under a nested.claude.
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.
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.
- 9d ago Changed d32ef0228e91
- 10d ago Changed 6bcc9659712a
- 12d ago Changed 4256a558165a
- 13d ago Changed daa02cf5edfd
- 14d ago Changed 98e2fa125538
- 15d ago Changed f11421e03113
- 21d ago Changed 0093b83bf80f
- 22d ago Changed 5e9d25bff012
- 27d ago Changed 5c2969375245
- 1mo ago First seen · 457 lines · 47 tokens per session scan B c7886d439ed5
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.
docsync-setup compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| docsync-setupkochetkov-ma/claude-brewcode | Skill | 41 | 2d ago | MIT | B | 47 | Claude Code |
| vienen-las-visitasmcasillas17/mexican-mom | Skill | 2 | 3mo ago | MIT | A | 63 | Claude Code |
| git-prlukaskellerstein/claude-my-marketplace | Skill | 3 | 2d ago | none | A | 124 | Claude Code |
| update-feature-docslukaskellerstein/claude-my-marketplace | Skill | 3 | 2d ago | none | A | 175 | Claude Code |
| updatelukaskellerstein/claude-my-marketplace | Skill | 3 | 2d ago | none | A | 114 | Claude Code |
| deletelukaskellerstein/claude-my-marketplace | Skill | 3 | 2d ago | none | A | 117 | Claude Code |
| debug-systematictravisjneuman/.claude | Skill | 116 | yesterday | MIT | A | 33 | Claude Code |