Source profileQuality 90/100

event4u-app/agent-config/src/skills/adr-create/SKILL.md

adr-create

Use when capturing an architectural decision — file naming, next ADR number, Status / Context / Decision / Consequences, index regen; fires even without saying 'ADR'.

Source repository stars
7
Declared platforms
0
Static risk flags
1
Last source update
2026-07-28
Source checked
2026-07-28

Decision brief

What it does—and where it fits

Use when capturing an architectural decision — file naming, next ADR number, Status / Context / Decision / Consequences, index regen; fires even without saying 'ADR'.

Best for

  • A non-trivial architectural choice needs a written record (kernel
  • A decision overrides a previous one and needs supersedes: linkage.
  • A roadmap phase closes and the chosen variant must be cited.

Not for

  • Tasks that require unconfirmed production actions or broad system permissions.
  • Environments where the pinned source and install steps cannot be inspected.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeNot declaredNo explicit evidencePortability before use
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/event4u-app/agent-config --skill "src/skills/adr-create"
Safe inspection promptEditorial

Inspect the Agent Skill "adr-create" from https://github.com/event4u-app/agent-config/blob/0adf49a8ae84b0ff6e2de8759eea43257e020eff/src/skills/adr-create/SKILL.md at commit 0adf49a8ae84b0ff6e2de8759eea43257e020eff. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    Procedure

    Ask one question only if both are plausible:

    Flat surface — chosen when the decision constrains thePer-area surface — chosen when the decision constrains codeUnknown area — not in the inventory: refuse with a
  2. 02

    When to use

    A non-trivial architectural choice needs a written record (kernel

    A non-trivial architectural choice needs a written record (kernelA decision overrides a previous one and needs supersedes: linkage.A roadmap phase closes and the chosen variant must be cited.
  3. 03

    Goal

    Sequential ADR-NNN-.md numbering with no gaps.

    Sequential ADR-NNN-.md numbering with no gaps.Standard template: Status, Context, Decision, Consequences,Regenerated index so readers find the ADR by topic, not by ls.
  4. 04

    Preconditions

    An ADR directory exists. Two layouts coexist (see

    An ADR directory exists. Two layouts coexist (seeFlat — docs/decisions/ (or docs/adr/ alias): cross-cuttingPer-area — docs/adrs//: sub-area ADRs, 4-digit
  5. 05

    1. Inspect and pick the surface

    Ask one question only if both are plausible:

    Flat surface — chosen when the decision constrains thePer-area surface — chosen when the decision constrains codeUnknown area — not in the inventory: refuse with a

Permission review

Static risk signals and limitations

Writes files

medium · line 191

The documentation asks the agent to create, modify, or delete local files.

Never delete an ADR file — supersede it. Deletion breaks

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score90/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars7SourceRepository attention, not individual Skill quality
Compatibility0 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
event4u-app/agent-config
Skill path
src/skills/adr-create/SKILL.md
Commit
0adf49a8ae84b0ff6e2de8759eea43257e020eff
License
MIT
Collected
2026-07-28
Default branch
main
View the original SKILL.md

adr-create

When to use

Use this skill when:

  • A non-trivial architectural choice needs a written record (kernel membership, cap raises, contract changes, library swap, deprecation).
  • A decision overrides a previous one and needs supersedes: linkage.
  • A roadmap phase closes and the chosen variant must be cited.
  • The user says "write an ADR for X", "decision log this", "we need a record of why we picked Y".

Do NOT use when:

  • The change is reversible without governance impact (typo, lint fix, refactor that stays inside one module).
  • The decision is already covered by an existing ADR — extend or supersede it instead of duplicating.
  • A skill, rule, or guideline is the better home (use those skills).

Goal

  • Sequential ADR-NNN-<slug>.md numbering with no gaps.
  • Standard template: Status, Context, Decision, Consequences, Alternatives, References.
  • Regenerated index so readers find the ADR by topic, not by ls.
  • Zero MCP-tool dependency — pure filesystem + TypeScript tooling (run via ./scripts-run).

Preconditions

  • An ADR directory exists. Two layouts coexist (see docs/contracts/adr-layout.md):
    • Flatdocs/decisions/ (or docs/adr/ alias): cross-cutting governance ADRs, 3-digit numbering (ADR-NNN-<slug>.md).
    • Per-areadocs/adrs/<area>/: sub-area ADRs, 4-digit numbering (NNNN-<slug>.md); <area> must match the canonical inventory in scripts/audit_adr_coverage.ts.
  • The decision is already made — ADRs record outcomes, they do not run the decision process. For unresolved trade-offs, run the council or consult adversarial-review first.

Procedure

1. Inspect and pick the surface

Ask one question only if both are plausible:

  1. Flat surface — chosen when the decision constrains the package's contract with consumers (kernel composition, rule taxonomy, package-wide architecture). Directory: docs/decisions/ (fallback docs/adr/). Filename: ADR-NNN-<slug>.md.
  2. Per-area surface — chosen when the decision constrains code inside one area folder (one runtime module, one contract group, one CLI surface). Directory: docs/adrs/<area>/. Filename: NNNN-<slug>.md (4-digit, no ADR- prefix).
  3. Unknown area<area> not in the inventory: refuse with a hint to add the area to AREAS in scripts/audit_adr_coverage.ts in the same PR. Do not invent.
  4. In doubt → per-area (cheaper to surface, easier to relocate).

2. Pick the next ADR number

  • Flat surface — scan docs/decisions/ (or docs/adr/) for ADR-*.md, parse the leading 3-digit number, take max + 1 (zero-padded to 3). For an empty directory, start at 001.
  • Per-area surface — scan docs/adrs/<area>/ for [0-9][0-9][0-9][0-9]-*.md, parse the leading 4-digit number, take max + 1 (zero-padded to 4). For an empty area, start at 0001. README.md is not an ADR — skip it.

Reject re-use of an existing number — index regeneration treats duplicates as a hard failure on both surfaces.

3. Pick a slug

Short, hyphen-lowercase, scope-revealing. Match peer ADRs in the directory. Examples: kernel-swap-deferred, flat-cluster-subs, http-bridge-deferred-with-trigger, per-tier-smoke-scripts. Reject slugs longer than 60 chars.

4. Author the ADR

Use the surface-specific template. All sections are required; "—" is acceptable for genuinely empty Alternatives or References blocks but never for Status, Context, Decision, or Consequences.

review_trigger is required and it names a CONDITION, not a date. A decision is a call made under conditions that held at the time; the trigger records which change would make it worth re-deciding. "Review annually" is ignored by everyone and rots into ceremony — check_adr_frontmatter.ts rejects bare cadences for exactly that reason. Write the event: "when a second consumer reports the same preservation surprise", "when a host ships a native primitive for this", "if the measured lift drops below the pre-registered threshold". Enforced from 2026-07-25 forward; earlier ADRs are grandfathered by date.

When you later reopen one, say which premise moved and what evidences the move — not "we were wrong". If the original was right under its own conditions, record that too. A premise that turns out false while the decision stays correct gets a logged correction block, never a silent edit.

Flat-surface template (docs/decisions/ADR-NNN-<slug>.md):

---
adr: NNN
status: proposed | accepted | superseded | deprecated
date: YYYY-MM-DD
decision: <slug>
supersedes: — | ADR-MMM
superseded_by: — | ADR-MMM
phase: <roadmap> · <phase-id>
review_trigger: <the CONDITION that would reopen this decision>
---

# ADR-NNN — <Decision Title>

## Status

**<Proposed | Accepted | …>** · YYYY-MM-DD.

## Context / Decision / Consequences / Alternatives / References

Per-area template (docs/adrs/<area>/NNNN-<slug>.md):

# ADR NNNN — <Decision Title>

> Area: `<area>` · Status: accepted · Date: YYYY-MM-DD · Type: retrospective | new
> Roadmap: `agents/roadmaps/<file>.md` <phase-id>
> Supersedes: —

## Context / Decision / Considered alternatives / Consequences / References

Per-area ADRs use a quote-style header (no YAML frontmatter) so audit_adr_coverage.ts's permissive parser can index them. Cite the area's contract from the README in docs/adrs/<area>/README.md.

5. Regenerate the index

  • Flat surface./scripts-run src/scripts/adr/regenerate_index --dir docs/decisions/ writes INDEX.md from ADR-*.md.
  • Per-area surface./scripts-run src/scripts/audit_adr_coverage --regen-area-readme <area> rewrites docs/adrs/<area>/README.md. Coverage gate: run ./scripts-run src/scripts/audit_adr_coverage (no args) — exit 0 only when every canonical area has ≥ 1 ADR.

6. Validate

  • Flat: ./scripts-run src/scripts/adr/regenerate_index --check exits 0.
  • Per-area: ./scripts-run src/scripts/audit_adr_coverage --check exits 0.
  • The project's CI / quality pipeline passes — locally only when quality.local_auto_run: true; under the default (false / missing) remote CI is the gate and no local pipeline run happens.

Rubric pass (optional, surfacing-only)

After drafting an ADR, run judge-artifact-completeness with rubric architecture-score to confirm alternatives, consequences, reversibility, and risk are present. Invoke when the user asks for a completeness check — not on every ADR by default.

Output format

  1. Path of the new ADR file.
  2. Path of the regenerated index / README.
  3. One-line summary of the decision.
  4. Linked roadmap or phase, if any.

Gotchas

  • Flat default path is docs/decisions/ in this package; some projects use docs/adr/. Pass --dir when running outside the default.
  • Per-area numbering is 4-digit (NNNN-<slug>.md); the flat surface stays 3-digit (ADR-NNN-<slug>.md). Do not mix.
  • Area inventory is closed<area> must already exist in AREAS in scripts/audit_adr_coverage.ts. Adding a new area is a separate PR with explicit reviewer sign-off.
  • Frontmatter adr: (flat) is the canonical number; the filename prefix must match. The flat regenerator fails on mismatch.
  • ADRs are append-only history. To revise a decision, write a new ADR with supersedes: ADR-MMM (flat) or a Supersedes: line in the header quote-block (per-area) and flip the old one's status to superseded.
  • Never delete an ADR file — supersede it. Deletion breaks historical links and round-trips through git history checks.

Frugality Standards

Apply the Frugality Charter to every ADR you author.

Examples in this artifact:

  • Per the charter's default-terse rule, ## Context states the forcing function in 2–3 sentences; no historical narrative.
  • Per the cite-don't-restate principle, ## Decision links the rules / contracts it overrides; no rule body is quoted in full.
  • Per the cheap-question check, ## Alternatives considered lists genuine design alternatives, not strawmen.

Pre-save self-check:

  1. Does ## Context carry more than 5 sentences of setup?
  2. Does ## Decision restate rule text instead of citing the rule?
  3. Are alternatives evaluated with a real consequence each, or with stylistic preference?
  4. Does the ADR forecast consequences with hedge phrases ("might", "could potentially") instead of decidable claims?

Do NOT

  • Skip Context — a decision without context is folklore.
  • Reuse an existing ADR number — the index regenerator hard-fails.
  • Author ADRs for reversible refactors or minor cleanups.
  • Cite a council session id without ensuring the file is committed or otherwise reachable from the repo (per no-roadmap-references, council clause).