Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add kochetkov-ma/claude-brewcode --skill convention-setupgit clone --depth 1 https://github.com/kochetkov-ma/claude-brewcodeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/kochetkov-ma/claude-brewcode/convention-setup)<a href="https://agentmods.dev/skills/kochetkov-ma/claude-brewcode/convention-setup"><img src="https://agentmods.dev/badge/skills/kochetkov-ma/claude-brewcode/convention-setup/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/kochetkov-ma/claude-brewcode/convention-setup"><img src="https://agentmods.dev/badge/skills/kochetkov-ma/claude-brewcode/convention-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00039 | $0.01191 |
| Opus 5.5 | $0.00016 | $0.00476 |
| Sonnet 5.5 | $0.00008 | $0.00238 |
| Haiku 4.5 | $0.00004 | $0.00119 |
Grade A, and why
convention-setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 51 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Convention setup
Inspect representative production code and tests, identify repeated architectural and implementation patterns, and write concise convention documents to the user-selected Codex-owned path. Cite concrete repository files, distinguish enforced rules from observations, and avoid changing application code unless the user explicitly asks.
Modes and lifecycle
Resolve one mode from status, install (default, the original full extraction), upgrade, enable, disable, uninstall, purge; extras: full, conventions, rules, paths <p1,p2>. Explicit tokens win; otherwise resolve RU/EN intent, choose install on empty/no-match input, and ask at most one outcome-changing question. Read-only status asks nothing.
Before the first action print PLAN — brewcode:convention-setup with literal INPUT:, MODE:, SCOPE:, DO:, RESULT:. Run sh <skill-directory>/scripts/convention.sh status first; stop on ownership/collision errors.
| Mode | Behavior |
|---|---|
status |
Read-only document/loading inventory; parked guidance is disabled, never missing. |
install / full |
Run the extraction workflow below; validate docs, then run the script's install command. |
upgrade |
Refresh evidence and metadata using the workflow; run the script's upgrade command, preserving parked state and local guidance wording. |
enable / disable |
Run that script command to restore/park .codex/rules/convention.md as .md.disabled, byte-identically. |
uninstall |
Remove only owned loading guidance and its generated AGENTS index row; preserve docs and accepted rules. |
purge |
Confirm the three owned document paths unless deletion is already explicit; remove them and loading guidance, preserve accepted rules and unrelated files. |
conventions |
Extract only documents, validate and install loading guidance; leave other rules untouched. |
rules |
Extract accepted rules from existing stamped evidence without regenerating documents. |
paths |
Refresh named source layers, preserving other evidence. |
What ships with it
10 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- agents/openai.yaml 243 B
- LICENSE 1.1 KB
- README.md 468 B
- references/analysis-layers.md 11 KB
- references/conventions-guide.md 5.8 KB
- references/rules-guide.md 618 B
- references/text-optimize-fallback.md 885 B
- scripts/convention.sh 14 KB runs code
- tests/lifecycle.mjs 6.9 KB runs code
- tests/run.sh 884 B runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 6d ago Changed b48903f41db3
- 7d ago Changed bef3bb76a836
- 9d ago Changed 32579903035b
- 10d ago Changed 0b1e6801e729
- 11d ago Changed 6de4f921354e
- 12d ago Changed d39fb02e8bec
- 18d ago Changed 2cdd7888b828
- 19d ago Changed e053151f4b83
- 24d ago Changed 9a329a33e41e
- 27d ago First seen · 51 lines · 39 tokens per session scan A eca2d8700b05
convention-setup is a skill published in the GitHub repository kochetkov-ma/claude-brewcode (41 stars, last pushed 7d ago), licensed MIT. It adds 39 tokens to every session and 1,191 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-01.
convention-setup compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| convention-setupkochetkov-ma/claude-brewcode | Skill | 41 | 7d ago | MIT | A | 39 | Codex |
| doc-digestegorfedorov/claude-context-optimizer | Skill | 136 | 6d ago | MIT | A | 75 | Claude Code |
| token-checkegorfedorov/claude-context-optimizer | Skill | 136 | 6d ago | MIT | A | 66 | Claude Code |
| sharpen-promptegorfedorov/claude-context-optimizer | Skill | 136 | 6d ago | MIT | A | 47 | Claude Code |
| skill-creator-plusyaniv-golan/skill-creator-plus | Skill | 8 | 18d ago | MIT | A | 147 | Claude Code |
| cpp-reinforcement-learningAznatkoiny/zAI-Skills | Skill | 10 | 22d ago | MIT | A | 131 | Claude Code |
| deep-researchyachi/claude-skills | Skill | 3 | 1mo ago | MIT | A | 164 | Claude Code |