adr-new
USE WHEN a load-bearing architectural decision is being made in conversation (database / framework / auth model / integration choice, or explicit rejection of…
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
$ npx -y skills add Filip-Podstavec/claude-leverage --skill conventions-init --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/conventions-initContext preview
The summary Claude sees to decide when to auto-load this skill.
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
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]"
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.
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.
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.
only scaffolds it.
suggestions for manual merge (preserves the user's comments).
fallback parser reliable.
it blank for the user.
commented `consistency` block, no prompts.
Same SKILL.md ships in Codex via `scripts/install-codex.sh`. No tool-specific divergence.
Make any repo AI-first - write sustainable code from the start, or refactor a legacy codebase to prepare it for agent-driven development.Building blocks for Claude Code: subagents, slash commands, hooks, and workflow patterns. Copy what you need. A working developer's stack for Claude Code.
Repo: Filip-Podstavec/claude-leverage
USE WHEN a load-bearing architectural decision is being made in conversation (database / framework / auth model / integration choice, or explicit rejection of…
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?" /…
USE WHEN setting up Codex CLI in a project, tightening sandbox for prod/CI, or when user asks about Codex permissions. Interactive helper for per-project…
USE WHEN the user explicitly asks to verify that this repo's DECLARED build/test/lint commands actually run ("does the quickstart work?", "validate the…
USE WHEN about to open a PR, when teammate asks "what's in this diff?", or when returning to a branch and needing self-orientation. Three modes: `--for…
USE WHEN setting up a repo for AI-first work, when an agent hallucinates domain term meaning, or when user asks to bootstrap / extend the repo's domain…