Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от kochetkov-ma★ 41 звезда на 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.

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
Полный SKILL.md на GitHub

Установить docsync-setup в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Edit
Bash
Glob
Grep
AskUserQuestion

Вложенные файлы

LICENSEREADME.mdassets/INSTALL.mdassets/docsync-gate.mjsassets/docsync-track.mjsassets/docsync-watch.mjs

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить docsync-setup с