Command Palette

Search for a command to run...

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

convention-setup

БесплатноЗапускает вложенные скриптыНе проверен

Installs project conventions and reversible loading guidance; extracts representative implementations, patterns, architecture, and accepted rules. Triggers…

kochetkov-maот kochetkov-ma★ 41 звезда на GitHub

Об этом скилле

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 -> install.
  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 — 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.

  • disable parks only the generated loading rule as .claude/rules/convention.md.disabled; enable restores its byte-identical body. uninstall removes only the loading rule; purge also 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): upgrade repeats it on current evidence; conventions also validates and activates loading, other rules untouched; paths keeps the other layers. Keep local wording, cite proposed changes, never overwrite unrelated documents. At P8 validate all three docs, then the script's install (or upgrade) 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): upgrade edits only this setup's owned paths: .claude/convention/, .claude/rules/ (the loading rule and P7-accepted rules), .claude/reports/, and CLAUDE.md onl

Полный SKILL.md на GitHub

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

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

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

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

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

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

Read
Write
Edit
Glob
Grep
Bash
Agent
AskUserQuestion
Skill

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

LICENSEREADME.mdreferences/analysis-layers.mdreferences/conventions-guide.mdreferences/rules-guide.mdreferences/text-optimize-fallback.mdscripts/convention.sh

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

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

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

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