agentleFS
maroffomaroffo/claude-forge/skills/adr/SKILL.md

adr

Skill17 starsChanged 50 days agoMITView on GitHub

Write Architecture Decision Records following HikmaAI format. Use when user says write ADR, architecture decision, ADR, or decision record. Orchestrates refinement, research, writing, vault storage, and review. Not for implementation plans (use plan mode) or retrospectives (use learning-docs).

  • Commits and pushes

90 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use fdr, runbook and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • thiagofgfSkill

    fdr

    Use when creating, changing, reviewing, retiring, auditing, or backfilling implemented user-visible feature behavior, permissions, feature-specific rationale, tradeoffs, or relationships to architectural decisions.

    Also in 3 projects that use this

  • AnthropicSkill

    runbook

    Create or update an operational runbook for a recurring task or procedure. Use when documenting a task that on-call or ops needs to run repeatably, turning tribal knowledge into exact step-by-step commands, adding troubleshooting and rollback steps to an existing procedure, or writing escalation paths for when things go wrong.

    Also in 5 projects that use this

  • drewdrewthisSkill

    sweep

    Search for similar patterns, anti-patterns, or issues elsewhere in the codebase after a fix or feature. Use after implementing a fix to catch the same bug in other places, or proactively to audit for a known pattern.

    Also in 4 projects that use this

  • vndeeSkill

    product-spec

    Use when starting a new feature, product, or project — before any architecture or code, to define what to build and why

    Also in 3 projects that use this

  • OpenAISkill

    threat-model

    Use when Codex is already in the threat-modeling phase of a security scan, the user explicitly invokes $threat-model, or the user explicitly asks to create, update, or persist a repository threat model. Do not use as the primary trigger for full PR, commit, branch, patch, or repository scans.

    Also in 6 projects that use this

  • montymiSkill

    tech-spec

    Parse and review Technical Specification documents for completeness, consistency, and implementation readiness

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 4 are distinctive, and 7 are very specific to this project.

  • 0

    Common

    Most of the 75 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every claim should be backed by evidence (code, docs, benchmarks)

    line 14
  2. Distinctive:

    Do not skip the refinement step for ambiguous topics

    line 15
  3. Very specific:

    Before writing, clarify scope using AskUserQuestion:

    line 21
  4. Distinctive:

    The Linear ticket number IS the ADR number: No separate counter. Gaps in numbering are expected.

    line 45
  5. Very specific:

    Before calling any mcp__linear-server__* tool (here and in Step 10), verify it exists in the current session.

    line 47
  6. Very specific:

    Follow the HikmaAI ADR format exactly (full section-by-section template in references/adr-format.md).

    line 80
  7. Very specific:

    Add a row to the ADR Index table in hikma-system-design/README.md:

    line 84
  8. Very specific:

    If the README's Conventions section gives an ADR filename pattern other than ADR-NNN-kebab-title.md, update it to match.

    line 90
  9. Very specific:

    Run dx-reviewer agent on the ADR file, focusing on:

    line 105
  10. Very specific:

    Update ADR status to Status: Accepted (follow-up commit or part of next PR)

    line 162
  11. Distinctive:

    No em dashes; use commas, colons, semicolons, or parentheses

    line 195

“Common” is measured: kept by at least 6 in 10 of the 75 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

ABOUTME: Full ADR lifecycle: Linear ticket, branch, write, vault, review, commit, PR

ABOUTME: Follows HikmaAI format and ADR guidelines (Linear ticket = ADR number)

Architecture Decision Records

Quality Notes

  • ADRs are permanent records; accuracy matters more than speed
  • Every claim should be backed by evidence (code, docs, benchmarks)
  • Do not skip the refinement step for ambiguous topics

Workflow

Step 1: Refine Requirements

Before writing, clarify scope using AskUserQuestion:

  • What decision is being made? (single clear question)
  • What options are on the table?
  • What constraints apply?
  • Who are the stakeholders?

Skip if user provided a fully specified request or said "just write it."

Step 2: Research

Launch research-analyst agent to gather:

  • Prior art (existing ADRs in vault, LEARNING.md, MEMORY.md)
  • External references (competing approaches, industry patterns)
  • Current codebase state (relevant files, existing patterns)

For HikmaAI projects, always check:

  • Vault: Projects/HikmaAI/HLD/ for existing ADRs
  • CLAUDE.md for architecture context
  • Relevant source code for current implementation

Step 3: Create Linear Ticket (reserves the ADR number)

The Linear ticket number IS the ADR number. No separate counter. Gaps in numbering are expected.

Before calling any mcp__linear-server__* tool (here and in Step 10), verify it exists in the current session; MCP tool names change, so fall back to the Linear web UI if it is absent.

mcp__linear-server__save_issue:
  title: "ADR: {Decision Title}"
  team: "Hikmaai"
  project: "ADR Lifecycle"
  state: "In Progress"
  assignee: "me"
  priority: 2  (or as appropriate)
  description: "One-line summary.\n\nRepo: hikma-system-design\nBranch: adr/{NNN}-{kebab-title}"

Note the ticket identifier (e.g., HIK-249): the numeric part (249) is the ADR number.

Step 4: Create Branch

cd ~/Development/hikmaAI/hikma-system-design
git checkout -b adr/{NNN}-{kebab-title} main

Example: adr/249-mirsad-cryptographic-decision-trail

Step 5: Write the ADR

  1. Copy adr/TEMPLATE.md to adr/ADR-{NNN}-{kebab-title}.md
  2. Fill in all sections following the template guidance
  3. Set frontmatter fields:
    • **Status:** Drafting
    • **Linear:** [HIK-{NNN}](https://linear.app/hikmaai/issue/HIK-{NNN})
    • **Obsidian:** [[{NNN}-{kebab-title}]]

Follow the HikmaAI ADR format exactly (full section-by-section template in references/adr-format.md).

Step 6: Update README.md

Add a row to the ADR Index table in hikma-system-design/README.md:

| {NNN} | {project} | {Title} | Drafting |

If the README's Conventions section gives an ADR filename pattern other than ADR-NNN-kebab-title.md, update it to match.

Step 7: Store in Vault

Save using the obsidian skill:

obsidian create name="Projects/HikmaAI/HLD/ADR-{NNN}-{Title}" content="..." silent

Fallback (direct file access): Write to /Users/maroffo/Library/Mobile Documents/iCloud~md~obsidian/Documents/Projects/HikmaAI/HLD/ADR-{NNN}-{Title}.md

Step 8: Review

Run dx-reviewer agent on the ADR file, focusing on:

  • Completeness (all sections present)
  • Clarity (decisions unambiguous)
  • Evidence (claims backed by data/code)
  • Actionability (enough detail to implement)

This launch cannot pass isolation: "worktree": the ADR file is still uncommitted here (Step 9 commits it), and a reviewer worktree materialises at the default branch, where the file does not exist. Open the brief with the first line ISOLATION-EXEMPT: ADR review, the target file is uncommitted and the reviewer only reads it, which is what reviewer-isolation-guard reads; the reviewer then stays read-only agent-side, which is all this step wants.

Alternatively, if the ADR is short and straightforward, skip the agent and self-review against the checklist above.

Step 9: Commit, Push, PR

Commit:

git add adr/ADR-{NNN}-{kebab-title}.md README.md [any other changed files]
git commit -m "docs: ADR-{NNN} {Title} (HIK-{NNN})

{One-line summary of the decision.}

Co-Authored-By: Claude <model> <noreply@anthropic.com>"

Replace <model> with the current model name (e.g. the model running this session); do not hardcode a specific version.

Push + PR:

git push -u origin adr/{NNN}-{kebab-title}

gh pr create \
  --title "ADR-{NNN}: {Title}" \
  --body "## Summary
- **ADR-{NNN}**: {Decision summary}

**Linear:** [HIK-{NNN}](https://linear.app/hikmaai/issue/HIK-{NNN})

## Test plan
- [ ] Review ADR content for technical accuracy
- [ ] Verify README index entry

🤖 Generated with [Claude Code](https://claude.com/claude-code)"

Step 10: Update Linear Status

Move the ticket to "In Review" and attach the PR link:

mcp__linear-server__save_issue:
  id: "HIK-{NNN}"
  state: "In Review"
  links: [{"url": "{PR_URL}", "title": "PR: ADR-{NNN}"}]

After Merge (manual or automated)

  • Move Linear ticket to Done: state: "Done"
  • Update ADR status to **Status:** Accepted (follow-up commit or part of next PR)
  • GitHub Action syncs to Notion automatically

ADR Status Lifecycle

StatusLinear StateMeaning
ProposedTodoNumber reserved, idea captured
DraftingIn ProgressADR being written on feature branch
In ReviewIn ReviewPR opened, team reviewing
AcceptedDonePR merged, decision final
SupersededCanceledReplaced by a newer ADR (link to successor)

Numbering

RuleDetail
SourceLinear ticket number (NNN from HIK-NNN)
Legacy ADRs001-032 keep their original numbers
New ADRsUse the Linear ticket number (249, 250, ...)
GapsExpected and acceptable (rejected ADRs consume a number)
ImmutableOnce assigned, the number never changes regardless of status

Naming Conventions

ElementConventionExample
FilenameADR-NNN-kebab-title.mdADR-249-mirsad-cryptographic-decision-trail.md
Branchadr/NNN-kebab-titleadr/249-mirsad-cryptographic-decision-trail
Linear ticketADR: TitleADR: Mirsad Cryptographic Decision Trail

Style Rules

  • No em dashes; use commas, colons, semicolons, or parentheses
  • Tables for structured comparisons (always)
  • Code blocks for API schemas, configs, deployment patterns
  • Bold for core decisions and key terms
  • --- horizontal rules between major parts
  • ASCII diagrams for architecture flows (no Mermaid in ADRs)

Anti-patterns

BadGood
"We should probably...""Decision: X. Rationale: ..."
Options without trade-offsEach option with pros/cons
Vague consequencesSpecific, testable outcomes
Missing contextName the trigger explicitly
Monolithic wall of textParts + tables + code blocks
Time estimates in ADRPhases with dependencies only
Manual ADR numberingLinear ticket = ADR number

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.