conventions-init
/conventions-init
USE WHEN setting up a repo for AI-first work (after /init-repo), or when the context-surface hook should start feeding repo conventions to agents before edits. Drafts `conventions.yml` at repo root: per-kind casing (inferred from the code), a vague-name denylist seed, directory roles, and a hand-filled house-rules block. Idempotent — never overwrites a populated file; re-running prints suggested additions for manual merge. Read-only on code; never invents house rules. After writing, run /refresh-context-map so the hook picks it up.
- Author
- filip-podstavec ↗
- Repository
- claude-leverage ↗
- Licence
- MIT
- Last repository change
- 03.08.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 03.08.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
USE WHEN setting up a repo for AI-first work (after /init-repo), or when the context-surface hook should start feeding repo conventions to agents before edits. Drafts `conventions.yml` at repo root: per-kind casing (inferred from the code), a vague-name denylist seed, directory roles, and a hand-filled house-rules block. Idempotent — never overwrites a populated file; re-running prints suggested additions for manual merge. Read-only on code; never invents house rules. After writing, run /refresh-context-map so the hook picks it up.
Arguments
/conventions-init [--noninteractive]
Original author description
USE WHEN setting up a repo for AI-first work (after /init-repo), or when the context-surface hook should start feeding repo conventions to agents before edits. Drafts `conventions.yml` at repo root: per-kind casing (inferred from the code), a vague-name denylist seed, directory roles, and a hand-filled house-rules block. Idempotent — never overwrites a populated file; re-running prints suggested additions for manual merge. Read-only on code; never invents house rules. After writing, run /refresh-context-map so the hook picks it up.
How it works
- What it does
- When to invoke
- Workflow
- Hard rules
- Tunables
- What this skill does NOT do
- Codex parity
SKILL.md preview
--- name: conventions-init description: > USE WHEN setting up a repo for AI-first work (after /init-repo), or when the context-surface hook should start feeding repo conventions to agents before edits. Drafts `conventions.yml` at repo root: per-kind casing (inferred from the code), a vague-name denylist seed, directory roles, and a hand-filled house-rules block. Idempotent — never overwrites a populated file; re-running prints suggested additions for manual merge. Read-only on code; never invents house rules. After writing, run /refresh-context-map so the hook picks it up. allowed-tools: - Read - Write - Glob - Grep - Bash(git rev-parse:*) - Bash(git ls-files:*) - Bash(python:*) - Bash(python3:*) - Bash(test:*) argument-hint: "[--noninteractive]" --- # /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. ## Hard rules - **Never invent house rules.** The `consistency` block is the user's; the skill only scaffolds it. - **Never overwrite a populated `conventions.yml`.** Existing-file mode prints suggestions for manual merge (preserves the user's comments). - **Never block.** Discoverability skill; advisory if the user declines. - **Block-style YAML only** (no inline braces or brackets) — keeps the stdlib fallback parser reliable. - **Python-first casing.** Do not infer casing from unsupported languages; leave it blank for the user. ## Tunables - `--noninteractive` — write the inferred skeleton with blank roles and a commented `consistency` block, no prompts. ## What this skill does NOT do - Auto-write house rules or invent conventions the repo does not hold. - Rebuild the context-map manifest — that is `/refresh-context-map`. - Score or lint code — that is `score_adherence.py` / `/repo-doctor`. ## Codex parity Same SKILL.md ships in Codex via `scripts/install-codex.sh`. No tool-specific divergence.
Versions
The database has no other skills named conventions-init.
Database snapshot: 13.11.2026 · package version 03be49e5d0f6 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100casing-law
This skill should be used when the user is writing code with mixed casing conventions, choosing casing for identifiers, enforcing casing consistency across a codebase, or when camelCase and snake_case appear in the same file. Covers per-context casing rules, acronym handling,… - 84init
Initialize a new project with a standard directory structure, template files, and a git repository. Use this skill whenever the user starts a new project, types /init, asks to "set up a new project", "initialize a repo", "scaffold a project", or wants to create the standard… - 100arch-map
USE WHEN setting up a repo for AI-first work, after a major directory restructure, or when an agent needs structured answers like "which modules are stable?" / "what's the public surface of X?" that the prose AGENTS.md doesn't give cheaply. Bootstraps or refreshes… - 100repo-ready
Scaffold and maintain the standard community health files every GitHub repository needs: .gitignore, .gitattributes, LICENSE, README.md, CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md, FUNDING.yml, CODEOWNERS, issue/PR templates, dependabot.yml, .editorconfig, and CI… - 100repo-init
Use when the user asks for 软件实现设计/software_architect/初始化代码仓/sdd/初始化/init/更新代码仓软件架构/更新代码仓软件实现设计. - 100setup-init
Interactive first-run setup. Auto-detects the user's repos, frameworks, event SDKs, and test patterns, asks ONLY the questions detection can't answer, then writes a complete .manifest/repos.yml with zero placeholders. Use on first run, when `/setup` finds no repos.yml, or when…