conventions-init

conventions-init is a skill for Claude Code from Filip-Podstavec/claude-leverage. It costs 124 tokens per session (1,090 once invoked), scanned A, original, MIT.

A starter file of repository conventions for AI coding agents, including naming style, directory roles, and team-specific rules. It infers conventions from the code and leaves rules that require human agreement for the team to fill in.

In plain words
What is it for?
Use it when preparing a repository for AI-assisted work, usually after initial repository setup, or when you want the context-surface hook to begin supplying these conventions.
Why use it?
It gives agents useful local guidance before they edit files, reducing guesses about names, structure, and house rules.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions AGENTS.md; mentions Codex.

Part of the claude-leverage plugin — 16 skills, 5 commands, 14 agents, 4 hooks shipped together

Good fit Use it when preparing a repository for AI-assisted work, usually after initial repository setup, or when you want the context-surface hook to begin supplying these conventions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/filip-podstavec/claude-leverage/conventions-init
Install

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.

Any agent
npx skills add Filip-Podstavec/claude-leverage --skill conventions-init
Clone the repo
git clone --depth 1 https://github.com/Filip-Podstavec/claude-leverage

Made for: Claude Code.

Or install claude-leverage, the plugin that ships this one along with the rest of its 16 skills, 5 commands, 14 agents, 4 hooks.

Wrote 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.

agentmods badge for conventions-init

README.md
[![agentmods](https://agentmods.dev/badge/skills/filip-podstavec/claude-leverage/conventions-init/github.svg)](https://agentmods.dev/skills/filip-podstavec/claude-leverage/conventions-init)
Your own site
<a href="https://agentmods.dev/skills/filip-podstavec/claude-leverage/conventions-init"><img src="https://agentmods.dev/badge/skills/filip-podstavec/claude-leverage/conventions-init/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.

agentmods 80×15 button for conventions-init

Your own site · 80×15
<a href="https://agentmods.dev/skills/filip-podstavec/claude-leverage/conventions-init"><img src="https://agentmods.dev/badge/skills/filip-podstavec/claude-leverage/conventions-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 124 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,090 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00124 $0.01090
Opus 5 $0.00062 $0.00545
Sonnet 5 $0.00025 $0.00218
Haiku 4.5 $0.00012 $0.00109

Measured 9d ago against content hash de6ff0bb4176, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

conventions-init 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 9d 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.

skills/conventions-init/SKILL.md · 97 lines

How it starts

The opening of the file, as written. The whole thing — 97 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/conventions-init

What it does

Bootstraps conventions.yml at the repo root — the profile the context-surface hook surfaces to an agent before it edits a source file (casing rules, a vague-name denylist, directory roles, and divergent house rules the model cannot infer). Block-style YAML only, so the stdlib fallback parser stays reliable.

It infers the mechanical parts (casing, structure) and asks the user for the house rules — it never invents a convention the repo does not actually hold.

When to invoke

  • Setting up an AI-first repo, after /init-repo.
  • When you want the plugin to start steering on this repo (no conventions.yml yet means the whole steering loop is a no-op).

Do NOT invoke for: per-function docs (those are docstrings), or to auto-write house rules the team has not agreed on.

Workflow

  1. Resolve repo root (git rev-parse --show-toplevel); if not a repo, STOP and suggest git init / /init-repo.
  2. Detect mode. If conventions.yml is absent, bootstrap. If it exists, do NOT rewrite it (stdlib YAML loses the human-written consistency comments); instead print the suggested draft below and tell the user to merge by hand.
  3. Infer casing. Run python scripts/score_adherence.py --repo . if the plugin's scorer is available, and read metrics.casing_consistency.by_kind[*] .dominant for functions / types / constants. Python-first: if there are no .py files (or the scorer is absent), leave casing values blank with a comment for the user — never guess from an unsupported language.
  4. Seed structure roots. List top-level + recognized source dirs (src/, lib/, app/, scripts/, tests/, …) that exist; write each as a root key with a blank role string for the user to fill.
  5. Seed the denylist from the documented defaults (data, result, tmp, handle, process); the user can extend.
  6. Leave consistency as a commented template — house rules are the user's to write (same "never invent" rule as glossary-init).
  7. Write conventions.yml (bootstrap mode) with the schema_version "1.x" comment, block-style. In existing-file mode, print the draft instead.
  8. Remind the user to run /refresh-context-map so the manifest (and thus the hook) picks up the new conventions, and offer a one-line AGENTS.md pointer.
  9. Report the path and which fields were inferred vs left for the user.

Read the full file on GitHub · 97 lines

Changes

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.

  1. 9d ago First seen · 97 lines · 124 tokens per session scan A de6ff0bb4176

Subscribe to this mod's changes

conventions-init is a skill published in the GitHub repository Filip-Podstavec/claude-leverage (68 stars, last pushed 1mo ago), licensed MIT. It adds 124 tokens to every session and 1,090 once invoked, about $0.0006 per session on Opus 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-08-30.

Related

Other skills, from other repositories

OCR Review-to-Approval Loop

Drive a PR to an approved code review by looping OCR's multi-agent review and address steps. Runs /ocr:review then /ocr:address repeatedly until the review verdict is APPROVE, then one final /ocr:address for leftover suggestions, posting every review and every address round to the GitHub PR as comments. Use when the…

spencermarx/open-code-review · 178 tokens

repo-visuals

Create hero visuals — animated GIF, static PNG, or animated SVG — for GitHub repositories. Runs a structured discovery conversation (scan repo → recommend format → propose creative scenarios → agree on a brief), then designs bespoke HTML/SVG, previews it in the browser, and exports. Use when the user asks for a README…

livlign/claude-skills · 112 tokens

opik

This skill should be used when the user needs to add Opik tracing or integrations to their code, instrument an LLM application, or needs reference for Opik SDK usage (Python, TypeScript, REST API). Use for tasks like "add tracing", "instrument my code", "use trackopenai", "add OpikTracer", "what span types are…

comet-ml/opik-claude-code-plugin · 84 tokens

hyper-plan

Use when about to start a non-trivial implementation that needs decomposition before coding. Also when the user invokes /hyperclaude:hyper-plan. Produces an ordered, bite-sized plan in .hyperclaude/plans/ — the input for /hyperclaude:hyper-plan-review and /hyperclaude:hyper-implement.

zeikar/hyperclaude · 70 tokens

swarm

Run a multi-agent audit of a codebase by spawning specialized parallel subagents (security, performance, tests, architecture, dead-code), then synthesize their findings into a single prioritized action plan. Use this whenever the user runs /swarm, asks to "audit the repo," "review this codebase," "find issues across…

Zintellix/Claude-Skills · 138 tokens

mcp-builder

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

composio-community/awesome-claude-plugins · 61 tokens