whodecided: Skill for Claude Code

.claude/skills/add-signal/SKILL.md

add-signal is a skill for Claude Code from zhu-kai/whodecided. It costs 51 tokens per session (416 once invoked), scanned A, original, MIT.

A guide for adding a deterministic triage check to whodecided, a tool that reviews decisions and code changes. The check reads structured project data and reports a result across the tool's review, board, and report views.

In plain words
What is it for?
Use it to add risk factors, links between decisions and code changes, or coverage checks. It covers the check's code, tests, data wiring, and display.
Why use it?
It prevents the same check from being implemented differently in several places. It also keeps checks independent of language-specific wording and large language models.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is zhu-kai/whodecided's own configuration. It tells Claude Code how to work on whodecided itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything whodecided configures →

Reuse

Borrowing it

Nothing to install: this file belongs to zhu-kai/whodecided. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/zhu-kai/whodecided/main/.claude/skills/add-signal/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/zhu-kai/whodecided

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 add-signal

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhu-kai/whodecided/add-signal/github.svg)](https://agentmods.dev/skills/zhu-kai/whodecided/add-signal)
Your own site
<a href="https://agentmods.dev/skills/zhu-kai/whodecided/add-signal"><img src="https://agentmods.dev/badge/skills/zhu-kai/whodecided/add-signal/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 add-signal

Your own site · 80×15
<a href="https://agentmods.dev/skills/zhu-kai/whodecided/add-signal"><img src="https://agentmods.dev/badge/skills/zhu-kai/whodecided/add-signal.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 416 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.00051 $0.00416
Opus 5 $0.00026 $0.00208
Sonnet 5 $0.00010 $0.00083
Haiku 4.5 $0.00005 $0.00042

Measured 12d ago against content hash 0825c0cdc380, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

add-signal 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 12d ago.

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.

.claude/skills/add-signal/SKILL.md · 17 lines

What it actually says

A signal is a deterministic judgement over data already on hand (ledger entries, branch diff, traces). Adding one:

  1. Pure function in src/checks/ - data in, struct out, unit-tested directly. Never call git, fs, or an LLM from checks; the impure gathering lives in src/git.ts and src/commands/signals.ts.

  2. Language rule. Ledger prose is in the user's language, so a signal must not depend on matching prose keywords. Semantics come from structured fields - if the meaning is only in the prose, add a distiller tag (tags in src/ledger/schema.ts + the tags contract in src/distill/prompt.ts) and match on the tag. English keyword regexes are acceptable only as a fallback for pre-tag entries.

  3. Wire once in src/commands/signals.ts (analyzeBranch for per-branch data, decisionSignals for per-decision) - review, board, and report all consume from there. Do not compute signals inside a command.

  4. Surface it: src/render/html.ts (WorkbenchEntry field + drawer/attention/triage as fits) and src/render/md.ts if it belongs in the PR report. Negative/actionable signals go in the drawer's needs-attention block; healthy states stay out of the way.

Scoring conventions in checks/risk.ts: silent 35 / hard-to-reverse 25 / assumption 20; diff churn, relative churn ("rewrote N% of a file", new files excluded), and scatter (entropy) top it up. High >= 60, medium >= 32. Keep new factors proportionate.

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. 12d ago First seen · 17 lines · 51 tokens per session scan A 0825c0cdc380

Subscribe to this mod's changes

add-signal is a skill published in the GitHub repository zhu-kai/whodecided (22 stars, last pushed 1mo ago), licensed MIT. It adds 51 tokens to every session and 416 once invoked, about $0.0003 per session on Opus 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.