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…
от kochetkov-ma★ 41 звезда на 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.
Mode Resolution — prompt-driven
Canonical verbs, in order: status | install | upgrade | enable | disable | uninstall | purge.
Skill-specific extras come after them: sync [--all], reread, frontmatter.
| Mode | EN keywords | RU keywords | Mutates? |
|---|---|---|---|
status |
(empty), status, check, show, what is stale | что устарело, показать, статус | no |
install |
install | установи, настрой | yes |
upgrade |
upgrade, refresh hooks | обнови хуки, переустанови | yes |
enable |
enable, turn back on | включи, включи отслеживание, возобнови | yes |
disable |
disable, pause, mute | выключи, приостанови, отключи отслеживание | yes |
uninstall |
uninstall | удали docsync, снеси хуки | yes |
purge |
purge | вычисти, снеси всё вместе с конфигом | yes, destructive |
sync |
sync, sync all, --all |
синхронизируй, обнови устаревшие | yes |
reread |
reread, refresh context | перечитай, освежи | no |
frontmatter |
frontmatter, add frontmatter | проставь frontmatter, ретро-разметка | yes |
Removed aliases
init,on,off,setup,remove,reset,create,update,cleanup: map each to its canonical verb (on->enable,off->disable), say so in the output, and never print one back to the user as a command. Never treat the first word of a prose prompt as a positional id.
First-run detection
EXECUTE using Bash tool:
ROOT="${CLAUDE_PROJECT_DIR}"
[ -n "$ROOT" ] && [ -d "$ROOT" ] || ROOT=$(git rev-parse --show-toplevel 2>/dev/null || true)
is_profile_parent() { _pp=$(cd "${1}" 2>/dev/null && pwd -P) || return 1; { [ -n "${HOME:-}" ] && [ "$_pp" = "$(cd "$HOME" 2>/dev/null && pwd -P)" ]; } || { [ -n "${CLAUDE_CONFIG_DIR:-}" ] && [ "$_pp/.claude" = "$(cd "$CLAUDE_CONFIG_DIR" 2>/dev/null && pwd -P)" ]; }; }
[ -n "$ROOT" ] || { d=$PWD; until [ -d "$d/.git" ] || { [ -d "$d/.claude" ] && ! is_profile_parent "$d"; } || [ "$d" = / ]; do d=$(dirname "$d"); done; [ "$d" = / ] && ROOT=$PWD || ROOT=$d; }
if [ -f "$ROOT/.claude/hooks/docsync-gate.mjs" ] && grep -q 'docsync-gate.mjs' "$ROOT/.claude/settings.json" 2>/dev/null; then
# `"enabled": false` means installed-but-inert, NOT missing. Absent key = enabled.
if grep -q '"enabled":space:*::space:*false' "$ROOT/.claude/docsync/config.json" 2>/dev/null; then
echo "docsync: INSTALLED (DISABLED)"
else
echo "docsync: INSTALLED"
fi
else
echo "docsync: NOT_INSTALLED"
fi
# Launcher = first word of command, unquoted, basename; not node = the project wraps the hook (a fork).
node -e '
const fs = require("fs");
const launcher = c => { const m = /^\s*(?:"([^"]*)"|\x27([^\x27]*)\x27|(\S+))/.exec(c); re
Установить docsync-setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditBashGlobGrepAskUserQuestionВложенные файлы
FAQ
Что делает скилл 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.
Как установить скилл docsync-setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл docsync-setup запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic