recording-decisions

$npx mdskill add supabase/supabase-go/recording-decisions

Never write to [`decisions.md`](../../../decisions.md) on your own initiative. When you believe an entry is earned, present the falsification test's three parts in chat and stop. The user commissions the entry or dismisses it, and only a commissioned entry is written, landing atomically with the change it records.

SKILL.md

.github/skills/recording-decisionsView on GitHub ↗
---
name: recording-decisions
description: Guides when a development decision earns a decisions.md entry and how entries are proposed and written. Use when a design choice is made, changed or reverted during any task. Never write decisions.md unprompted - a candidate entry is proposed in chat through the three-part falsification test (maintainer question, answer-from-source attempt, why the answer fails) and only a commissioned entry is written. Covers the false-trigger list and the What/Why authoring rules.
---

## Who Holds the Pen

Never write to [`decisions.md`](../../../decisions.md) on your own initiative.
When you believe an entry is earned, present the falsification test's three parts in chat and stop.
The user commissions the entry or dismisses it, and only a commissioned entry is written, landing atomically with the change it records.

## The Falsification Test

Your default is No Entry: most changes, including large refactors and corrections, warrant nothing.
A proposal is exactly three parts:

1. **The question**: the precise "why?" a future maintainer would ask of this change.
2. **The answer attempt**: your best good-faith answer using only the finished diff - identifiers, types, package boundaries and comments.
3. **The failure**: why that answer is wrong or incomplete.

Run the test only against finished code, never at planning time - a plan may say "evaluate against the finished diff", never "will gain an entry".
If the answer attempt is even halfway coherent, there is no entry and nothing to propose.
An entry earns its place only by capturing what source cannot show, typically the alternative that lost and why it lost.

## False Triggers

None of these is evidence an entry is earned, however strongly it feels otherwise:

- hard deliberation, or a reversal along the way
- a mistake corrected
- a principle or policy articulated during review
- strong reviewer emotion
- a plan that promised an entry

## Authoring a Commissioned Entry

Read the `decisions.md` preamble for the What/Why format, the present-tense-only rule and atomic landing. Existing entries establish the pattern.

An entry states only what it uniquely owns: code is the canonical record of signatures, mechanics and behavior, and neighboring entries tell their own stories - never restate the former, never re-tell nor borrow from the latter.
If two entries need the same sentence, they are one decision or the sentence belongs to one of them.
Record, don't perform: no clauses admiring the design, no coined aphorisms, and the why stated once - what deliberately does not exist earns at most the one line that forbids it.
Prefer one representative example over enumeration, avoiding "every" and "all" unless totality is itself the decision.
The heading names the decision, the body carries it, and no layer repeats the layer below.

More from supabase/supabase-go

SkillDescription
auditing-tool-currencyGuides auditing the repository's externally sourced, version-pinned tooling against canonical origins - the GitHub Actions pins, the Go tool module under tools/go, the npm tool module under tools/node, the pinned Supabase CLI and the Go consumer floor. Use when asked which tools could be upgraded, whether pins are stale or to prepare an upgrade report or plan. Audit and report only: applying a bump is the changing-build-and-continuous-integration skill's territory.
changing-build-and-continuous-integrationGuides changes to this repository's build, module and CI machinery rather than the SDK's own code. Use when touching any go.mod, the go.work workspace, the scripts folder, GitHub Actions workflows, the pinned tool modules under tools or the spell-check configuration - including adding a new module, taking on a new dependency or bumping a Go or tool version. Covers workspace wiring for unpublished sibling modules, the published Go version floor versus the CI toolchain, digest pinning, the first-party-actions-only policy and the rule that CI jobs run the same scripts developers run locally.
designing-internal-boundariesGuides the design of internal type contracts in respect of immutability and encapsulation. Enhances codebase maintainability by separating concerns in a manner that is compiler-enforced, both for internal state as well as immutable values returned to callers alike. Use when creating or reworking types, when adding machinery (e.g. parsing, caching, transport, crypto), when naming or splitting an internal package, when writing constructors or defensive copies and when deciding whether a test is external or in-package.
designing-public-interfacesGuides design of this SDK's public API surface. Use when adding, renaming, removing or reshaping any exported identifier in any module published as end-user, consumer-facing interface - whether that module be existing or new to the published surface area. Includes functional options, domain client accessors, error model, sentinel errors, error struct types, exported fields, the accessor pattern, constructor signatures and naming policy.
writing-changelogsGuides the writing and editing of changelog entries in the per-module CHANGELOG.md files. Use when a user-facing change needs an entry, when drafting or reshaping an Unreleased section, or when reviewing entries at release time. Covers the type headings, the entry shape and the succinctness bar - what an entry says and what it leaves to the docs.
writing-commentaryGuides the content and style of all comments - Go doc comments on exported or internal identifiers, package overviews in doc.go, inline comments and comments in scripts, workflows, SQL and configuration files. Use when writing, editing or reviewing any comment on any surface, including comments authored in passing while implementing something else. Covers audience focus (API consumer versus codebase maintainer), contract-first phrasing and where rationale, history and cross-component notes belong instead.
writing-examplesGuides the creation, update, merging and deletion of examples - the runnable Example functions that render on pkg.go.dev, the code snippets inside doc comments and the example programs under examples/. Use when adding an example, reworking one or deciding whether an existing example is replaced, upgraded, folded into a sibling or removed outright. Covers the removal test and when an example earns its place.