discern

discern is a skill for Claude Code, Codex from donald-ada/workinggenius. It costs 60 tokens per session (1,136 once invoked), scanned A, original, MIT.

An adversarial decision process for testing possible implementation paths before choosing one. It records which options were rejected, why they failed, and why the surviving choice was accepted.

In plain words
What is it for?
Use it during the judgment stage of tracked work or when reviewing a ready-made plan. It checks alternatives against existing decisions and commits to one path.
Why use it?
It reduces the chance that a plausible but incorrect design reaches implementation without being seriously challenged.

Skill for Claude CodeCodex

Part of the workinggenius plugin — 22 skills, 3 agents shipped together

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.

agentmods
npx agentmods add skills/donald-ada/workinggenius/discern
Any agent
npx skills add donald-ada/workinggenius --skill discern
Clone the repo
git clone --depth 1 https://github.com/donald-ada/workinggenius

Made for: Claude Code, Codex.

Or install workinggenius, the plugin that ships this one along with the rest of its 22 skills, 3 agents.

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 discern

README.md
[![agentmods](https://agentmods.dev/badge/skills/donald-ada/workinggenius/discern.svg)](https://agentmods.dev/skills/donald-ada/workinggenius/discern)
Your own site
<a href="https://agentmods.dev/skills/donald-ada/workinggenius/discern"><img src="https://agentmods.dev/badge/skills/donald-ada/workinggenius/discern.svg" alt="Measured on agentmods" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,136 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00060 $0.01136
Opus 5 $0.00030 $0.00568
Sonnet 5 $0.00012 $0.00227
Haiku 4.5 $0.00006 $0.00114

Measured today against content hash cf87d637ea70, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

discern 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 today.

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.

skills/discern/SKILL.md · 25 lines

How it starts

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

Discernment

The genius of judgment. Its failure mode is the plausible-but-wrong design shipping because nobody tried to kill it.

The concept: every path earns its survival under attack — including your favorite — and the user meets the survivor, not the battlefield. Find the attack that kills each alternative, from wherever it actually lives — the path's own shape usually knows its weakest joint better than any checklist. Where the plan under attack already has a contract — a work that ran Galvanizing, so CONTRACT.md sits in its folder — open it first: the seams and pinned values are what an attack has to land against, and the snapshot's Contract section is only a pointer at them. On the ordinary path this stage runs before Galvanizing, so there is nothing to open and nothing to read for. Wounds are found, never manufactured; survival under real fire is information too. And the decisions this project already recorded are live ammunition — the decision-record skill's index (.genius/DECIDED.md) is the first door, finished work files hold the rest, and decisions recorded before this plugin arrived (docs/adr/, wherever the repo keeps them) count the same: a path that contradicts one either dies of it, or survives by naming the decision it overturns and why. Ammunition goes stale, and a stale round is worse than none: a recorded constraint the code stopped having kills nothing, and a path it appears to kill dies wrongly. Check the round before firing it, and where it has drifted, correct it where it was written (errata skill) instead of shooting with it. A record nobody reads is decoration; this is where it earns its keep.

Then commit, and present the commitment — not a ballot. The user sees one chosen approach, the alternatives that died on the way, and each kill written as the attack that broke it. Confirmation is of consequences, not labels: play back what the choice means when things happen ("choosing the pipeline means a refund re-walks every adjustment") until the user can say that's what they want — or overrule you, which they always can. A menu surfaces only where a fork is genuinely the user's world to decide — their team, their ops, their priorities — asked with a recommendation and its price, never as "pick one of these". If they can't evaluate even that, teach the difference first (blindspot skill), or record an honest assumed: instead of a hollow confirmation.

Read the full file on GitHub · 25 lines

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. today Changed · +8 lines cf87d637ea70
  2. 5d ago First seen · 17 lines · 60 tokens per session scan A 2453feecc12f

Subscribe to this mod's changes

discern is a skill published in the GitHub repository donald-ada/workinggenius (6 stars, last pushed today), licensed MIT. It adds 60 tokens to every session and 1,136 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-31.