Skip to content
Back to skills

Decision

ASecurity

Check, propose or replace an architectural decision with herdr-ws-spec. Use only in a workspace whose instructions list its decisions or mention the spec skill, or when the spec skill or your task sends you here.

  • 17 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agentsgoapi

Works with

  • terminal
  • cli
  • api

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add madtocc/herdr-workspaces --skill decision --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Decision?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Decision
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/madtocc-decision/badge)](https://www.skillsdirectory.com/skills/madtocc-decision)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: decision
description: Check, propose or replace an architectural decision with herdr-ws-spec. Use only in a workspace whose instructions list its decisions or mention the spec skill, or when the spec skill or your task sends you here.
---

# Decisions

A workspace with Specs on keeps its architectural decisions as files: in its repos (`docs/adr/` by default) or in the
workspace's own folder. Your instructions list them, one line each, with the line "Before planning a change, run
`herdr-ws-spec check <the files>`". A workspace with Specs on and no decision yet lists none, but its instructions mention
the `spec` skill. This skill applies when your instructions do either, or when the `spec` skill or your task sent you here
(shaping a spec, recording a decision). Otherwise it does not apply: stop reading it.

You may be any agent: one building a card, one shaping a spec, one asked to write decisions. The rules are the same.

## Check before you plan

- Before planning a change, run `herdr-ws-spec check <the files you will change>`. It prints the decisions that cover those
  files and the ones your card names. In a branch, `herdr-ws-spec check --diff` does the same for everything the branch
  changes since the default branch (`check --diff <branch or commit>` from somewhere else); its first line says what it
  compared against.
- Read each one it prints with `herdr-ws-spec show <id>`. `herdr-ws-spec list` lists them all, with their status.
- A decision in force wins over the task, your plan and your taste. A deferred one counts too: building what it defers goes
  against it. A proposed one isn't in force yet; don't build on it without saying so.
- Ids carry their home: `api/ADR-0003` is the repo `api`'s, `acme/ADR-0001` the workspace's. Always use the full id.

## When a choice deserves a decision

Propose one only when the choice rules out an alternative someone would reasonably pick later. Examples: a second data
store, a hand-written client instead of a generated one, another framework, where a kind of state lives, a public format
other code will depend on.

Not a decision: a routine choice the code already makes obvious, a naming habit, a code style, a way of working, a choice
inside one function. Make it and move on. When it is a way of working the workspace should keep, say in your report that it
belongs in the workspace's rules, not in a decision.

When you are unsure, don't propose. A missing decision costs one question later; a pile of trivial ones buries the real
ones.

## How to propose one

1. Check that none in force already settles it (`list`, then `show` the ones close to it).
2. Write it with `herdr-ws-spec new "<title>" [--covers <glob>]... [--why "<one sentence>"]`. It lands as Proposed, with you
   as its proposer, in the place the workspace keeps new decisions; on a decision's own branch it is committed there. It
   prints the decision's id, then its file. `--why` goes under Why; `--covers` goes in the file's `covers:` list.
   Where the decisions folder has a template (a file whose name starts with `_`, such as `_TEMPLATE.md`), the file starts
   from it: keep its headings and status line, and put the parts below where its headings say.
3. Fill in the file `new` printed. Without a template it has these four parts; replace each placeholder line:
   - **The decision**, the paragraph under the front matter: what is chosen, in one or two plain sentences.
   - **Why**: the facts that made it the right choice here.
   - **What was weighed**: each alternative a reasonable person could have picked, and in one sentence why it lost.
   - **What it covers**: the paths inside the repo whose changes should be checked against it (globs, such as
     `src/rate-limit/**`), found by reading the code, not guessed from names. The paths go in the `covers:` list at the
     top, which is what `check` reads; under What it covers, say in a sentence which part of the code that is. A decision
     kept outside the repos names the repo: `api:src/rate-limit/**`. When no code exists for it yet, say so and leave it
     uncovered rather than wide.
4. Then stop (below).

## Changing one: replace, never edit

- Never edit the text or status of a decision that is accepted, deferred or replaced, even to fix it.
- To change one, write a replacement: `herdr-ws-spec new "<title>" --replaces <id>`, saying what changes and why. The old one
  stays in force until the person accepts the new one. A replacement always waits for the person.
- When your task goes against a decision in force, don't build it: propose the replacement and stop, or ask.

## When you were asked to write decisions

- **Find the decisions already made**: read the workspace's `AGENTS.md`, the rules it names and the code of each repo, and
  propose each decision the code already follows, with the files that show it. Propose the few that matter, not every habit.
- **Work out what each decision covers**: give every decision in force, waiting or deferred its paths with
  `herdr-ws-spec covers <id> <glob>... --why "<one sentence>"`. Skip replaced ones. The decision files stay as they are.
- **Record or replace one** from a person's text: read the decisions in force and the code the text touches first, then
  propose as above. You don't change code.

## Never accept

- Never run `herdr-ws-spec accept`, `decline` or `reopen`, never pass `--me`, and never write `accepted` into a status line.
  The person answers in Herdr's Specs view. (Where a workspace lets agents accept, the lines Herdr gives you say so: "In
  this workspace you may accept a decision you proposed yourself, from this terminal…". Only there, and only that: never a
  replacement, a deferred one, someone else's proposal or proposed paths.)
- Never change a decision file you only read. The one file you may revise is a proposal you wrote and were asked to change.

## Then stop and wait

After proposing, stop and say which ids you proposed. Don't build on them. The person's answer arrives in your prompt:

- **accepted**: it is in force; carry on.
- **declined**: don't build on it; plan without it, or ask what to do instead.
- **changes asked**, with their sentence: revise that same file. It stays Proposed. Stop again.
- **reopened**: it is proposed again, not in force; build no more on it until it is accepted.

If you were told how to report back (a line in your task, or a task that came through `hc`), report once, when you're done
or stuck: the ids you proposed and anything you left out.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.