con un clic
adr
Capture qualifying architecture decisions as ADRs in the right HQ or repo location.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Capture qualifying architecture decisions as ADRs in the right HQ or repo location.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Deploy or share generated HQ artifacts through hq-deploy.
Mark a company as HQ Pro cloud-backed and sync its team setup.
Send HQ Sync direct messages, prompts, details, or scheduled notes to teammates.
Run a full bidirectional sync for cloud-backed HQ companies.
Scaffold a new HQ company AND optionally take it all the way to operational — business-discovery interview, seeded knowledge/workers/skills/projects, brand design packs (generated from website/PDF/Drive and bound to deploys via policy), connected integrations, org groups + ACL rules, teammate invites, and optional cloud agents.
Resolve HQ Sync conflicts by choosing local, cloud, or discard.
| name | adr |
| description | Capture qualifying architecture decisions as ADRs in the right HQ or repo location. |
| allowed-tools | Read, Grep, Glob, Bash, Write, Edit, AskUserQuestion |
Architectural Decision Records — minimal, dated, sequentially numbered. The point is recording that a decision was made and why, not filling out template sections.
Pattern adapted from mattpocock/skills (grill-with-docs/ADR-FORMAT.md).
$ARGUMENTS may include:
[company] slug — fall back to manifest / handoff / cwd inference if absent[repo|hq] scope — pick home directory<one-line decision summary> — used as title and slug seedIf scope is ambiguous, ask via AskUserQuestion:
| Choice | Home | When |
|---|---|---|
repo | <repo>/docs/adr/ | Decision is bound to specific code; reviewers will read it alongside the code |
hq | companies/{co}/knowledge/adrs/ | Decision is org-level (e.g. "we use Linear, not Jira"; "all auth via Cognito") |
If no company resolves and scope is hq, default to core/knowledge/public/adrs/ (rare — most ADRs have a tenant).
Ask the user three yes/no questions via a single AskUserQuestion call:
If any answer is no → DO NOT WRITE THE ADR. Offer alternatives:
| Failed condition | Alternative |
|---|---|
| Easy to reverse | Skip — you'll just reverse it later |
| Not surprising | Skip — nobody will wonder |
| No real trade-off | Add to CONTEXT.md glossary instead, or skip |
Re-prompt: "Skip ADR / Add to CONTEXT.md / Force-write anyway (rarely correct)". Only Force-write proceeds; record reasoning in the ADR body so the override is explicit.
# repo scope
mkdir -p <repo>/docs/adr/
# hq scope
mkdir -p companies/{co}/knowledge/adrs/
Lazy-create only when the first ADR is needed.
ls <target>/[0-9][0-9][0-9][0-9]-*.md 2>/dev/null \
| sed 's|.*/\([0-9]*\)-.*|\1|' \
| sort -n \
| tail -1
Increment by 1. Default to 0001 if no existing ADRs. Format: NNNN (4-digit zero-padded).
Slug from the user's title:
--Final filename: NNNN-slug.md
Single AskUserQuestion (or sequential prompts) collecting:
That's the minimum. The value is in recording the decision, not in completing a template.
Ask via AskUserQuestion (multiSelect) which (if any) to include:
proposed | accepted | deprecated | superseded by ADR-NNNN) — useful when decisions are likely to be revisitedIf user picks none, the ADR is just title + 1–3 sentences. Good.
Template (use only the sections selected in Step 5):
---
status: <accepted|proposed|...> # only if Status was selected
date: <YYYY-MM-DD>
related: [] # ADR numbers, optional
---
# <Title>
<1-3 sentences: context, decision, why.>
## Considered Options <!-- optional -->
- <Option A> — <why rejected>
- <Option B> — <why rejected>
## Consequences <!-- optional -->
- <non-obvious downstream effect>
If new domain terms surfaced during the conversation, offer to update CONTEXT.md (in the same repo for repo scope; in companies/{co}/knowledge/CONTEXT.md for hq scope).
If this ADR supersedes an earlier one, update the older ADR's frontmatter to status: superseded by ADR-NNNN (after asking).
If this ADR is accepting a /architect candidate, add a backlink in workspace/reports/{slug}-architect.md under that candidate's "Outcome" section.
Print:
✓ ADR written: <target>/NNNN-slug.md
Title: <title>
Scope: repo | hq
Optional sections: <Status / Considered Options / Consequences / none>
CONTEXT.md updated: yes / no
Supersedes: ADR-MMMM / none
CONTEXT.md, not an ADR/out-of-scope — sibling skill for rejected feature requests (vs. this for accepted technical decisions)./brainstorm, /plan, /architect, /diagnose — all hand off here when a decision warrants ADR./learn — for cross-tenant knowledge capture (different from per-repo / per-company ADR).mattpocock/skills grill-with-docs/ADR-FORMAT.md.