From adr-kit
One-time project setup for adr-kit. Appends an "ADR Kit Rules" section to the project's CLAUDE.md (creating the file if it does not exist) so future sessions know about the ADR skill, agent, and instructions. Idempotent: skips the append if the section is already present.
npx claudepluginhub rvdbreemen/adr-kitThis skill is limited to using the following tools:
You are running the one-time project setup for the adr-kit plugin. Your job is to append a small "ADR Kit Rules" section to the project's `CLAUDE.md` so future Claude Code sessions in this project know about the ADR skill, the `adr-generator` subagent, and the path-specific coding and review instructions.
Generates design tokens/docs from CSS/Tailwind/styled-components codebases, audits visual consistency across 10 dimensions, detects AI slop in UI.
Records polished WebM UI demo videos of web apps using Playwright with cursor overlay, natural pacing, and three-phase scripting. Activates for demo, walkthrough, screen recording, or tutorial requests.
Delivers idiomatic Kotlin patterns for null safety, immutability, sealed classes, coroutines, Flows, extensions, DSL builders, and Gradle DSL. Use when writing, reviewing, refactoring, or designing Kotlin code.
You are running the one-time project setup for the adr-kit plugin. Your job is to append a small "ADR Kit Rules" section to the project's CLAUDE.md so future Claude Code sessions in this project know about the ADR skill, the adr-generator subagent, and the path-specific coding and review instructions.
Locate the project's CLAUDE.md. It lives at the repository root. The user is expected to run /adr-kit:setup from the project root. Check whether CLAUDE.md exists in the current working directory.
Idempotency check. If CLAUDE.md exists, read it. If it already contains a heading exactly named ## ADR Kit Rules (case-sensitive, exact heading text), do nothing. Tell the user the setup is already done and exit. Do not duplicate the section.
Append or create. If CLAUDE.md exists but lacks the section, append the snippet below to the end of the file, with one blank line separating it from whatever was the last content. If CLAUDE.md does not exist, create it containing only the snippet (no other scaffolding).
Confirm. Reply with one short line that names the action taken (created, appended, or skipped), the path to the file, and the line number of the new section's heading.
## ADR Kit Rules
This project uses [adr-kit](https://github.com/rvdbreemen/adr-kit) for Architecture Decision Records. The skill, the `adr-generator` subagent, and the path-specific instructions are loaded via the plugin.
- Use `/adr-kit:adr` (or invoke the `adr-generator` subagent) when authoring a new ADR.
- During coding work, follow the rules in the plugin's `instructions/adr.coding.md`.
- During code review, apply the six named ADR checks in the plugin's `instructions/adr.review.md`.
- An ADR cannot flip from `Proposed` to `Accepted` until it passes all four verification gates: Completeness, Evidence, Clarity, Consistency.
ADR files live at `docs/adr/ADR-XXX-title.md`. Status flow: `Proposed` to `Accepted`, then immutable. To reverse a decision, write a superseding ADR rather than editing the original.
/adr-kit:setup must not duplicate the section. Always do the heading-presence check first.Reply with exactly one of these forms:
Setup complete. Appended "ADR Kit Rules" section to CLAUDE.md at line <N>.Setup complete. Created CLAUDE.md with the "ADR Kit Rules" section.Already set up. CLAUDE.md already contains an "ADR Kit Rules" heading at line <N>. No changes made.If you cannot find a sensible project root (no CLAUDE.md, no .git/, no package.json or other manifest), stop and ask: "I do not see a project root here (no CLAUDE.md, no .git, no package manifest). Are you in your project directory? If yes, I can create CLAUDE.md from scratch. Confirm to proceed."
Do not silently create files in unexpected locations.