arch-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?" /…
USE WHEN a load-bearing architectural decision is being made in conversation (database / framework / auth model / integration choice, or explicit rejection of an alternative) — one likely to be re-litigated in 6 months without the rationale. Bootstraps a numbered MADR ADR in
$ npx -y skills add Filip-Podstavec/claude-leverage --skill adr-new --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/adr-newContext preview
The summary Claude sees to decide when to auto-load this skill.
USE WHEN a load-bearing architectural decision is being made in conversation (database / framework / auth model / integration choice, or explicit rejection of an alternative) — one likely to be re-litigated in 6 months without the rationale. Bootstraps a numbered MADR ADR in
name: adr-new description: > USE WHEN a load-bearing architectural decision is being made in conversation (database / framework / auth model / integration choice, or explicit rejection of an alternative) — one likely to be re-litigated in 6 months without the rationale. Bootstraps a numbered MADR ADR in `docs/adr/`, asks for context + decision + alternatives, updates the index. Immutable status once accepted. See `docs/adr/README.md` for the convention; full Do/Don't list in this SKILL body. allowed-tools: - Read - Write - Edit - Glob - Bash(ls:*) - Bash(test:*) - Bash(date:*) argument-hint: "[title] [--status proposed|accepted] [--noninteractive]"
Creates a new numbered ADR file in `docs/adr/` and adds an entry to the index. ADRs are the lightweight memory of *why* the architecture looks the way it does — without them, six months from now nobody (human or agent) remembers why we chose A instead of B.
The convention is documented in [`docs/adr/README.md`](../../docs/adr/README.md): MADR-flavored, numbered, immutable status (proposed → accepted → deprecated / superseded).
1. **Find target dir.** Default `docs/adr/` from the current repo root (via `git rev-parse --show-toplevel`). If no `docs/adr/` exists, ask the user: "create it now?". If yes, also copy `templates/adr-template.md` if shipped (the plugin ships its own template under `docs/adr/template.md` — useful as a reference even when the target repo doesn't have one yet).
2. **Pick next number.** List existing `docs/adr/NNNN-*.md` files, parse the leading number, take the max + 1. Pad to 4 digits.
3. **Get the title.**
hallucinate one).
`0042-replace-polling-with-webhooks.md`.
4. **Ask for context** (skip in `--noninteractive`):
tense).
the team already decided in conversation and just needs the record).
5. **Generate the file** at `docs/adr/<NNNN>-<kebab-title>.md` using the MADR template (the plugin ships [`docs/adr/template.md`](../../docs/adr/template.md) for reference). Substitute:
`<TODO: fill in>` placeholders if user skipped them
6. **Update the index.** Append the new ADR to the bulleted list in `docs/adr/README.md` (or create it if it doesn't exist). Preserve the existing index style: `- [NNNN — Title](NNNN-kebab.md)`
7. **Report.** Print the new file path and remind the user that ADRs are immutable once `accepted` — future revisions are *new* ADRs superseding the old one, not edits.
changes. If you regenerate the file (because of typos in the title before commit), keep the number.
should be limited to typos and link fixes. Substantive changes ship as a new ADR that explicitly supersedes the old one (`Status: superseded by NNNN`).
update it; never let it drift from the directory contents.
with an existing file, ask the user for a different title.
`proposed`. Use when the decision is already settled and you're just recording it.
fills the context/decision/alternatives with `<TODO>` placeholders.
**Write an ADR for:**
embedding RAG", "AGENTS.md canonical, CLAUDE.md import").
issue, a benchmark result).
agent will propose them.
**Don't write an ADR for:**
function structure).
If you're not sure: write it. Three sentences in `docs/adr/0042.md` is cheap; re-arguing the same point six months later is expensive.
made. If you don't yet know the decision, you want a `docs/specs/` document (or `superpowers:brainstorming`), not an ADR.
decision in your own words; the skill just structures the file.
manual edit + new ADR with `Status: superseded by NNNN`.
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 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 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.…
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…