convention-setup
БесплатноЗапускает вложенные скриптыНе проверенInstalls project conventions and reversible loading guidance; extracts representative implementations, patterns, architecture, and accepted rules. Triggers…
от kochetkov-ma★ 41 звезда на GitHubОб этом скилле
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 ->install. - 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 — brewcode:convention-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>
Mode Detection
| Mode | Invocation | Phases | Prerequisites | EN keywords | RU keywords | Mutates? |
|---|---|---|---|---|---|---|
status |
/brewcode:convention-setup status |
Lifecycle | None | status, installed, check |
статус, установлено, проверь |
no |
install (default) |
/brewcode:convention-setup install |
P0-P8, activate loading | None | install, setup |
установи, настрой |
yes |
upgrade |
/brewcode:convention-setup upgrade |
P0-P8, preserve disabled state | Existing docs | upgrade, refresh |
обнови, освежи |
yes |
enable |
/brewcode:convention-setup enable |
Lifecycle | Loading rule exists | enable, activate |
включи, активируй |
yes |
disable |
/brewcode:convention-setup disable |
Lifecycle | Loading rule exists | disable, deactivate |
выключи, отключи |
yes |
uninstall |
/brewcode:convention-setup uninstall |
Lifecycle | None | uninstall |
удали установку |
yes |
purge |
/brewcode:convention-setup purge |
Lifecycle | None | purge, erase |
очисти полностью, сотри |
yes, destructive |
full |
/brewcode:convention-setup full |
P0-P8 | None | full, all, everything, complete |
полностью, всё, весь |
yes |
conventions |
/brewcode:convention-setup conventions |
P0-P6 | None | conventions, patterns, etalons, extract |
конвенции, паттерны, эталоны, извлеки |
yes |
rules |
/brewcode:convention-setup rules |
P0, P7, P7.5, P8 | .claude/convention/ exists |
rules, extract rules |
правила, извлеки правила |
yes |
paths |
/brewcode:convention-setup paths src/a,src/b |
P0-P7 scoped | None | paths, scope, subset |
пути, путям, часть проекта |
yes |
paths also takes its comma-separated path list from prose naming files or dirs.
Lifecycle — status first
After the PLAN, run bash "${CLAUDE_SKILL_DIR}/scripts/convention.sh" status in the project root;
on any script failure report the ownership/collision error and change no file. status: report the
JSON, stop. docs counts every .claude/convention/*.md; "hand_written":true (no loading rule, no
document with the owner stamp) is missing (hand-written docs present): nothing to upgrade, and an
install would write the three generated names over same-named files, so ask before running it. enable, disable, uninstall, purge: run the script with that exact mode, report its
result, stop; no analysis or regeneration.
disableparks only the generated loading rule as.claude/rules/convention.md.disabled;enablerestores its byte-identical body.uninstallremoves only the loading rule;purgealso deletes the three owned generated documents after confirming their paths once, unless the user explicitly asked for that deletion. Both keep accepted rules, other files and CLAUDE.md: accepted coding rules and manual CLAUDE.md references are user-owned and stay active; say so when disabling or removing.- Extraction (phases in the table above):
upgraderepeats it on current evidence;conventionsalso validates and activates loading, other rules untouched;pathskeeps the other layers. Keep local wording, cite proposed changes, never overwrite unrelated documents. At P8 validate all three docs, then the script'sinstall(orupgrade) creates.claude/rules/convention.md(lazy-loading guidance) or refreshes only its metadata; a parked rule stays parked. - The loading rule is the discovery mechanism: add the optional P7.5 CLAUDE.md references only on the user's explicit request.
Scope (normative):
upgradeedits only this setup's owned paths:.claude/convention/,.claude/rules/(the loading rule and P7-accepted rules),.claude/reports/, andCLAUDE.mdonl
Установить convention-setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditGlobGrepBashAgentAskUserQuestionSkillВложенные файлы
FAQ
Что делает скилл convention-setup?
Installs project conventions and reversible loading guidance; extracts representative implementations, patterns, architecture, and accepted rules. Triggers: convention setup, extract conventions, etalon classes.
Как установить скилл convention-setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл convention-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