dr

dr is a skill for Claude Code from thkt/dotclaude. It costs 59 tokens per session (2,051 once invoked), scanned A, original, MIT.

A workflow for creating numbered Decision Records in MADR v4 format. A Decision Record documents an important choice, its context, alternatives, and the reasons for selecting one option.

In plain words
What is it for?
Use it to create or update records in the decisions directory, gather supporting sources, check for similar records, and challenge exceptions or replacements of existing decisions.
Why use it?
It preserves the reasoning behind difficult-to-reverse decisions so future readers can understand why the project was built that way.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; names the AskUserQuestion tool.

Good fit Use it to create or update records in the decisions directory, gather supporting sources, check for similar records, and challenge exceptions or replacements of existing decisions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thkt/dotclaude/dr
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add thkt/dotclaude --skill dr
Clone the repo
git clone --depth 1 https://github.com/thkt/dotclaude

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dr

README.md
[![agentmods](https://agentmods.dev/badge/skills/thkt/dotclaude/dr/github.svg)](https://agentmods.dev/skills/thkt/dotclaude/dr)
Your own site
<a href="https://agentmods.dev/skills/thkt/dotclaude/dr"><img src="https://agentmods.dev/badge/skills/thkt/dotclaude/dr/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dr

Your own site · 80×15
<a href="https://agentmods.dev/skills/thkt/dotclaude/dr"><img src="https://agentmods.dev/badge/skills/thkt/dotclaude/dr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,051 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00059 $0.02051
Opus 5.5 $0.00024 $0.00820
Sonnet 5.5 $0.00012 $0.00410
Haiku 4.5 $0.00006 $0.00205

Measured 1mo ago against content hash 1dee1c552ae9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dr scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/dr_common.ts, scripts/pre-check.ts, scripts/update-index.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.ja/skills/dr/SKILL.md · 94 lines

How it starts

The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/dr - Decision Record 作成

入力

決定タイトルは $ARGUMENTS で受け取る。空なら AskUserQuestion で New decision/Update existing を確認する。New decision ならタイトルを聞き、Update existing なら <git-root>/docs/decisions/ の既存 DR から選択させる (§ 既存 DR の更新)。新規に作るタイトルは "Adopt X for Y" のような具体的なアクションに整え、5〜64 文字に収めて /:*?"<>| を含めない。保存先は既定で <git-root>/docs/decisions/ で、DR_DIR 環境変数を設定すると変えられる。

${CLAUDE_SKILL_DIR}/../../rules/conventions/DOCUMENTS.md に従い、関連 wiki・DR と原本の適用条件・状態を現在の要求へ照合する。必要な文書更新を今回の合意範囲へ含め、実装と同じ評価へ渡す。

採用ゲート

下表の 3 条件すべてが成り立つときだけプロセスへ進む。欠けるときは DR を作らず、上から順に当てて最初に該当した記録先へ決定を残す。

条件 欠けたときの記録先
覆しにくい。後から決定を変えるには相応のコストがかかる プロジェクトの設計ノート。無ければコミットメッセージ本文
文脈がないと意外に見える。将来の読み手が「なぜこの形にしたのか」と疑問を持つ プロジェクトの設計ノート。無ければコミットメッセージ本文
実在するトレードオフの結果。本物の代替案が存在し、特定の理由で 1 つを選んでいる コミットメッセージ本文

プロセス

Step 工程 内容
1 Pre-Check ${CLAUDE_SKILL_DIR}/scripts/pre-check.ts "$TITLE" を実行する。返り値から使うのは dr_dir と filename (書き込み先)、date (frontmatter)、similar_drs (重複判定)
2 Type 決定の意図で決定タイプを判定し、推奨トピックを選ぶ (§ 決定タイプ)
3 Sources プロジェクトドキュメント、issue、外部リソースを収集する
4 Draft ${CLAUDE_SKILL_DIR}/templates/madr-template.md を dr_dir 配下に filename で写し、収集した内容で埋める (§ YAML Frontmatter)
5 Challenge 既存 DR の原則に例外を作る、または既存 DR を supersede する場合だけ /challenge を通し、verdict と成立条件を More Information に 1 行で残す
6 Validate ${CLAUDE_SKILL_DIR}/scripts/validate-dr.ts "$DR_FILE" を実行する。exit 0 なら合格。落ちた項目は errors[] に入り、warnings[] は参考
7 Index ${CLAUDE_SKILL_DIR}/scripts/update-index.ts を実行し、dr_dir/README.md を再生成する

Read the full file on GitHub · 94 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +6 lines 1dee1c552ae9
  2. 1mo ago Changed fcde3a4aab68
  3. 1mo ago First seen · 88 lines · 59 tokens per session scan A bbbbc4de8ba2

Subscribe to this mod's changes

dr is a skill published in the GitHub repository thkt/dotclaude (12 stars, last pushed 25d ago), licensed MIT. It adds 59 tokens to every session and 2,051 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

team-management-receiving-feedback

How to receive code review as technical evaluation rather than social performance — verify claims against the codebase before implementing, push back with evidence, and drop the performative agreement. Use when responding to a human reviewer, a PR comment, or another AI reviewer, and when deciding whether a suggestion…

TeamManagementPlugin/claude-plugin · 97 tokens

review

Adversarial design review of a System Design Doc. Interrogates the staff questions, finds the cost-explosion and failure risks, returns a verdict. Sensors and evals gate.

Pierry/harness-kit · 39 tokens

council

Five independent critic subagents in parallel on an idea, plan, design, R&R strategy, grant, or SKILL.md, then a synthesis pass that ranks findings by how much of the argument rests on them, never by vote count. A markdown work plan gets the plan roster (assumptions, pre-mortem, what to delete, alternatives per piece…

ericluo04/claude-academic-workflow · 154 tokens

pr-reviewer

Review pull requests with full context. Fetches linked Jira tickets, Figma designs, and Notion docs via MCP, spawns parallel subagents for systematic code review (correctness, security, tests, SOLID, clean code), then drafts friendly, humanized GitHub-ready comments. Use when reviewing PRs, examining code changes, or…

Flagrare/agent-skills · 82 tokens

implementation-review

Pre-commit quality gate. Invoke before every git commit, after /flagrare:staleness-audit. Seven checks, plan gaps, use-case coverage gaps, missing test scenarios, test philosophy violations (Kent Dodds Testing Trophy), SOLID violations, Clean Code violations, and security vulnerabilities. Each check is delegated to a…

Flagrare/agent-skills · 106 tokens

security-audit

Focused security review of a change. Finds HIGH-CONFIDENCE, concretely exploitable vulnerabilities in the staged diff (injection, broken authn/authz, secrets and data exposure, unsafe deserialization, crypto misuse, SSRF) and audits dependencies when a lockfile moved, using the repo's own package manager. Runs as…

Flagrare/agent-skills · 148 tokens