superpowers icon indicating copy to clipboard operation
superpowers copied to clipboard

Add an ADR.md?

Open mattiasthalen opened this issue 8 months ago • 3 comments

During the spec/planning/research there will be decisions made, wouldn't it be a good idea to maintain an "Architecture Decision Record" to help future sessions?

mattiasthalen avatar Mar 15 '26 22:03 mattiasthalen

Great question. I've been thinking about this more concretely.

The core insight is that the current workflow produces two types of artifacts:

  • Brainstorming docs — capture the problem space and options
  • Implementation plans — capture the execution steps

Both are ephemeral by design: they get stale fast and don't belong in the repo long-term. But the decisions made during that process — why we picked option A over B, what tradeoffs we accepted — are durable and currently fall through the cracks.

A lightweight writing-adr skill placed after code review and before finishing the branch could consolidate those decisions into a minimal ADR:

# ADR-XXX: <Title>
## Context
## Options Considered
## Decision
## Consequences

The trigger heuristic would be: new dependency, data model change, architectural pattern choice, infra change, or security-related design decision. Not every PR — just ones where a future contributor would otherwise have to reverse-engineer the "why."

@obra I'd be happy to take a stab at writing this skill if the idea has legs.

dmorfav avatar Apr 12 '26 11:04 dmorfav

This direction makes a lot of sense to me.

I especially like the distinction between:

  • brainstorming docs / implementation plans as more ephemeral working artifacts
  • ADRs as durable records of decisions that future contributors and future agent sessions can rely on

One small thought: while placing the skill after code review and before finishing the branch sounds like a good consolidation point, it might also be useful for the skill to be callable earlier from brainstorming or writing-plans when a significant decision is first made.

That way, the workflow could be:

  • capture or draft the ADR when the decision is made
  • refine/consolidate it before finishing the branch

I also agree that this should not run for every PR. The trigger heuristic around dependencies, data model changes, architectural patterns, infrastructure changes, and security-related decisions feels right.

Happy to help test, review, or collaborate on the skill if useful.

honjo-hiroaki-gtt avatar Apr 25 '26 12:04 honjo-hiroaki-gtt

Thanks for the suggestion. On current releases the brainstorming skill commits the design doc — decisions and rationale included — to docs/superpowers/specs/, and plans carry a pointer back to it, which covers the durable-record need for future sessions. A dedicated ADR convention is the kind of opinionated record-keeping kept out of core (see the discussion on #880) and would fit well as a standalone plugin, so closing as not planned.

arittr avatar Aug 19 '26 00:08 arittr