Skip to main content
skill CX Codex

documenting-decisions — Claude Code skill: decisions, install

This skill marks important choices in agent-written code and turns them into a review log. Use it during planning, implementation, fixes, or diff review.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add pandoscope/skills --skill documenting-decisions -a claude-code
Open on GitHub

What documenting-decisions does

The skill guides the agent on where to add decision comments while it plans, implements, or fixes code. ARCH covers structural choices such as new abstractions and data models; SCOPE records how an ambiguous request was interpreted. Other markers cover public interfaces, security-sensitive changes, irreversible effects, and choices made without an existing repository pattern.

When the task ends, markers from changed files become a PR section with decisions that need human review, plus a short routine-change summary. Routine edits are deliberately left unmarked, so ordinary refactoring does not create review noise.

On request, the skill switches to diff classification and labels each hunk with a decision tag or ROUTINE, including the file and line range. An ARCH or IRREV choice can also lead to an ADR when reversing it is difficult or its trade-off needs context; the related ticket should be updated before closure.

What it helps with

  • spot architectural choices in generated code
  • record how an ambiguous task was resolved
  • flag API, configuration, and security changes
  • turn code markers into a PR decision log
  • classify diff hunks during review

Example prompts for the agent

  • Plan this task and mark the choices that need human review.
  • Review my diff and classify every hunk with the appropriate decision tag.
  • After implementation, build the PR decision log and update the related ticket.

How to install documenting-decisions

1Skills CLI (Vercel)

npx skills add pandoscope/skills --skill documenting-decisions -a claude-code

2Manually: put the files in place

~/.claude/skills/documenting-decisions/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/documenting-decisions/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about documenting-decisions

How do I install documenting-decisions in Claude Code?

Run npx skills add pandoscope/skills --skill documenting-decisions -a claude-code, then check ~/.claude/skills/documenting-decisions/SKILL.md.

What does documenting-decisions do?

It marks consequential choices in code comments and gathers them into a PR review log. On request, it also classifies diff hunks by decision type.

Which platforms support documenting-decisions?

The skill supports Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, and OpenCode.

Source text

SKILL.md · MIT
---
name: documenting-decisions
description: Routes human attention to decisions that matter in agent-generated code. Active during planning, implementing, fixing. Defines when and how to place DECISION markers in code comments. Also applies when reviewing a diff/PR on request.
---

# Documenting Decisions

## Checkpoint tags

| Tag     | When to mark                                                                                          |
| ------- | ----------------------------------------------------------------------------------------------------- |
| `ARCH`  | New abstractions, deps, data models, component boundaries — anything that shapes long-term structure. |
| `SCOPE` | You resolved an ambiguity in the task by choosing an interpretation.                                  |
| `IFACE` | Changed a public API, config schema, CLI flag, env var, or wire format.                               |
| `SEC`   | Touched auth, crypto, permissions, network exposure, or input validation.                             |
| `IRREV` | Created a migration, data deletion, deployment trigger, or external side effect.                      |
| `NOVEL` | No existing repo pattern to follow — you interpolated from training data.                             |

Do not mark routine changes (pattern-following, boilerplate, refactoring).

## Format

See this skill's `references/` `decision-markers.md` and (if needed) `marker-examples.md`.

## After task completion

Generate decision log from markers in changed files and add to PR description:

```markdown
## Decisions requiring review
- **TAG** `file:line` — explanation
## Routine (skip review)
[One-line summary]
```

If an `ARCH` or `IRREV` marker meets the `writing-adrs` bar (hard to reverse, surprising without context, result of a real trade-off), also write the ADR per that skill.

### Reconcile driving ticket

Work driven by ticket → update it before close: fold in deviations, mid-session scope, decisions above (or their ADR/glossary refs). Per `to-tickets` reproducibility invariant: replayed issue stream builds final state, not first draft.

## Diff classification mode

When user requests review of diff, classify each hunk as one of the six tags or `ROUTINE`. Present as `File: path — TAG` with line ranges.

## Reference files

- `references/canary-signals.md` — CI scripts for automated checkpoint detection (repo setup, not runtime).
- `references/marker-examples.md` — example markers in multiple languages.
- other files in references are only relevant if explicitly mentioned in AGENTS.md or requested by the user.

© pandoscope · MIT · pandoscope/skills

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set5

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor