Agent skill · writing content · kochetkov-ma
convention
Extracts etalon classes, patterns, architecture into convention docs. Triggers: extract conventions, etalon classes.
Why this skill is useful
Adds specific patterns and architecture documentation processes that the AI wouldn't reliably generate on its own.
What it needs
About 10k tokens when loaded. Last updated 2026-08-06. 29 stars on the source repository.
What this skill does
<instructions> Prompt contract Position 1 of $ARGUMENTS is a free-form prompt (RU/EN) — modes and flags are optional and may follow in any order. Nobody types keys: resolve mode + scope FROM the prompt. 1. Strip flags. An explicit mode token anywhere wins outright, no scoring. 2. Else score modes by distinct whole-word keyword hits (table below). Highest unique score wins. Tie with a destructive mode -> AskUserQuestion; tie with status -> status; tie of two mutating modes -> the keyword appearing first; all zero -> full. 3. Empty arguments -> full; ask ONE scoping AskUserQuestion only when the answer changes what gets written. A read-only run asks nothing. 4. Outcome-changing ambiguity -> ONE AskUserQuestion (max 4 questions) BEFORE any work. 5. Prose that is not a mode/id/path is still input: extract the id, path or target from it. Then print this block ONCE, before the first action: Labels are literal; values follow the conversation language. Mode Detection Arguments: $ARGUMENTS Mode Invocation Phases Prerequisites EN keywords RU keywords Mutates? ------ ----------- -------- --------------- -------------- -------------- ---------- full (default) /brewcode:convention P0-P8 None (empty), full, all, everything, complete полностью, всё, весь yes conventions /brewcode:convention conventions P0-P6 None conventions, patterns, etalons, extract конвенции, паттерны, эталоны, извлеки yes rules /brewcode:convention rules P0, P7, P7.5, P8 .claude/convention/ exists rules, extract rules правила, извлеки правила yes paths /brewcode:convention paths src/a,src/b P0-P7 scoped None paths, scope, subset пути, путям, часть проекта yes paths also needs its comma-separated path list extracted from the prose (rule 3.5) whenever the user names files/dirs instead of typing the literal paths token. --- P0: Mode + Stack Detection Parse $ARGUMENTS for mode keyword. Default = full. For paths mode: split comma-separated paths after keyword. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills kochetkov-ma/convention--b9d44c