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.
npx skills add closedloop-ai/claude-plugins --skill decision-tablegit clone --depth 1 https://github.com/closedloop-ai/claude-pluginsWrote 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.
[](https://agentmods.dev/skills/closedloop-ai/claude-plugins/decision-table)<a href="https://agentmods.dev/skills/closedloop-ai/claude-plugins/decision-table"><img src="https://agentmods.dev/badge/skills/closedloop-ai/claude-plugins/decision-table.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.
<a href="https://agentmods.dev/skills/closedloop-ai/claude-plugins/decision-table"><img src="https://agentmods.dev/badge/skills/closedloop-ai/claude-plugins/decision-table.svg?style=web" alt="Reviewed on agentmods" width="80" height="15"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00055 | $0.03900 |
| Opus 5 | $0.00028 | $0.01950 |
| Sonnet 5 | $0.00011 | $0.00780 |
| Haiku 4.5 | $0.00006 | $0.00390 |
Grade A, and why
decision-table 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 yesterday.
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.
How it starts
The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Decision Table
Purpose
Generate a repo-local decision-table artifact that makes control-flow and stateful edge cases reviewable. The decision table is the source of truth; a Mermaid diagram is optional and secondary.
Output Location
Write artifacts under <repo-root>/.closedloop-ai/decision-tables/. Create the directory if missing.
Default to one artifact per work item:
- plan-scoped:
<plan-id>.md - non-plan-scoped:
<short-work-name>.md(lowercase kebab-case)
Keep multiple behavior areas as sections inside the same artifact. Only split into multiple files when one artifact would be too large to review quickly or when the work clearly spans separate repos/systems.
Workflow
- Resolve the repo root and the work item under review.
- If a plan/ticket/description is supplied, infer behavior to map: control-flow surfaces, retries/recovery/finalization, validation/error paths, state transitions, durable side effects. Ignore purely mechanical edits.
- Read the plan first (if any) and extract only behaviorally relevant requirements.
- Read repo-level guardrails as co-equal requirements: agent instruction files (
AGENTS.md,CLAUDE.md), compatibility rules, contributor docs, API contracts. If the plan and guardrails conflict, record the tension in the artifact, add aPlan Clarificationsnote when appropriate, and surface the conflict to the user if it affects implementation or review. - Read the actual code paths. Build the table from code, not expectations.
- For shared routes, handlers, helpers, contracts, or policy surfaces, build a call-site inventory before choosing axes. Search for literal route paths, exported helper names, feature flag keys, rollout keys, query parameters, cache key segments, environment variable names, storage keys, event names, command names, plugin or marketplace identifiers, header/reason/status strings, and shared types. For each caller, record what data it can supply, what response shapes/statuses it expects, peer version skew, and how missing/unknown fields degrade. Classify each literal by semantic purpose and source of truth; do not treat similar-looking strings as aliases unless a shared constant, documented contract, or existing compatibility path proves they are aliases.
- For dependencies, model success, null/absent, validation failure, and thrown/rejected branches whenever externally visible behavior depends on them.
- Run the behavioral edge-case expansion pass. Apply every category in
references/edge-cases.md. Each must be represented by rows or an explicit non-applicability note with source-backed evidence. When multiple evidence, authority, history, or fallback sources can coexist, add a bounded interaction pass: cover pairwise and high-risk intersections instead of an unbounded Cartesian product, including legacy/absent plus fresh valid, corrupt/undated plus fresh valid, irrelevant historical plus current authoritative, tied/conflicting current records, and source/state precedence. For distributed command, signing, key, capability, or cross-process state work, treat web app, backend, Electron, local store, OS notification, cache, and remote peer behavior as separate surfaces unless code proves they are the same surface. - Choose a small set of state axes that explain the branch behavior. Reuse the same axes within a behavior area across
Current CodeandIntended Change. - Write the artifact using
references/artifact-format.md. - When a plan is in scope, include
Current Code,Intended Change,Delta Checklist, andRequired Tests. When no plan is in scope, omitIntended Changeand focus on the current-state table plus gaps or suspicious branches. - Give every material decision row a stable row ID. For
Required Tests, map each test to one or more row IDs and name the invariant being proved, the positive path, and the wrong-input, mixed-state, failure, or compatibility mutation. A test must prove the specific binding/fallback/diagnostic the row claims; it cannot just trigger a generic rejection. When a row depends on an exact external contract literal, the test oracle must fail closed for the wrong literal: feature-flag mocks enable only the exact expected key, query/header/event assertions check exact names and values, and cache/storage/command/plugin identifiers are asserted by semantic type rather than broad substring or "any key" matching. - Once implementation begins, freeze
Current CodeandIntended Change. All later updates are append-only inVerification Findings,Fixes Applied,Final Alignment Status, and optionalPlan Clarifications. - After implementation, verify the final code against the intended behavior. If drift, missing edges, missing tests, or guardrail violations exist, fix them, append the verification/fix sections, and re-verify until aligned.
Final Alignment Status: Not alignedis a terminal stop: do not proceed to PR creation, merge, completion, or any downstream success state while it remains. Fixable repo-local findings remain unresolved work and must be fixed and re-verified; they cannot be normalized into a successful handoff. - Record evidence artifacts for high-yield coverage and non-applicability claims. Use
references/artifact-format.mdand capture the actual command or source evidence for changed exports, package subpaths, CLI flags, route/query/header/event/cache/storage/command literals, path or filesystem writes, untrusted input fields, persisted schema fields, replay/idempotency behavior, and test-boundary coverage. Do not accept an assertion such as "no consumers", "not externally visible", or "covered by tests" without the corresponding evidence. - Run the adversarial responsibility split described below. When delegation is available, this is a post-implementation review by independent lane workers. When delegation is unavailable, run the applicable lanes sequentially and record that the pass was not independent.
- Group
Fixes Appliedby discovery source when more than one source exists (e.g.,Initial verification,Adversarial abuse/filesystem lane,Adversarial compatibility lane,Runtime testing,Review findings,Validation failures,Repo guardrails,Plan clarification,Final hygiene). Do not leave a broadDuring verificationbucket once other sources have produced fixes. - Treat
Verification Findingsas a resolution queue, not a backlog. Every finding must be (a) fixed, (b) marked not applicable with source-backed evidence, or (c) carried intoFinal Alignment Status: Not alignedwith a specific human/external blocker (credentials, deployment access, product decision, unavailable independent adversarial review, etc.). Do not record fixable repo-local work as a permanent gap when the user asked for implementation. - Before marking final alignment, run two passes:
- Internal consistency: if the same state, reason, or dependency failure appears with different intended outcomes, add the missing distinguishing axis or fix the mismatch.
- Review-prevention: for every touched externally visible surface, walk
references/review-prevention.md. Each item must be fixed, already covered by a named row/test, marked not applicable with source-backed evidence, or carried intoNot aligned. Do not markAlignedwhile any item is merely assumed covered. - Coverage and evidence disposition rule (hard rule): every
Coveredoralready covereddisposition, whether it appears inVerification Findings, in the Behavioral Edge-Case Expansion, in the adversarial lanes, or in the review-prevention pass, must cite a specific test name and the wrong-input or negative case that test fails closed on. Everynot applicabledisposition must cite source-backed evidence such as grep output, export/package inventory, call-site inventory, schema/query inventory, or code references proving the surface is absent or out of scope. A coverage claim backed only by a happy-path assertion, a pure helper test for an integration boundary, or no evidence is treated asNot aligned, not as covered. This applies to security findings: do not mark a security findingCoveredwithout a named test proving the rejected or blocked case.
- Only change
Intended Changepost-implementation if the plan itself was ambiguous or wrong. Record this asPlan Clarificationswith reason and source. Never silently rewrite the target. - Always give the user a human-facing closeout summary outside the artifact. Separate: what was verified and fixed, important nuances, and anything still requiring user input or external action. When status is
Not aligned, explicitly state that downstream PR/merge/completion is blocked, name every unresolved blocker, and give the exact next action and owner; never phrase it as completion. If the agent cannot complete something autonomously (product decision, credentials, deployment access, independent adversarial review), ask the user directly. If no user action is required, say so. If the user also asked for review, use the artifact as a first-class input rather than recreating the analysis.
What ships with it
3 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.
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.
- yesterday First seen · 123 lines · 55 tokens per session scan A a3cdd3a89722
decision-table is a skill published in the GitHub repository closedloop-ai/claude-plugins (103 stars, last pushed 2d ago), licensed Apache-2.0. It adds 55 tokens to every session and 3,900 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-09-07.
Other skills, from other repositories
dx-audit
Audits libraries, CLIs, and SDKs using 38 rules for public contracts, package exports, piped output, errors, and configuration. Use when asked to "audit my CLI", "review my SDK", "make this agent-friendly", or diagnose package type resolution. For agentic product trust use ax-audit; for docs use docs-writing.
ts-debug
TypeScript/Node debugging expert. Use when the user needs to debug, profile, or trace TypeScript or Node.js code — e.g. "how do I debug this", "find the memory leak", "why is this slow", "add a breakpoint", "profile this function", "why won't the process exit".
py-debug
Python debugging expert. Use when the user needs to debug, profile, or trace Python code — e.g. "how do I debug this", "find the memory leak", "why is this slow", "add a breakpoint", "profile this function".
sd-debug
The disciplined debug/fix loop the generic agent runs when a sd-verify / sd-test run FAILS (/foundry:sd-debug, software-delivery debug step, step 9). A PROCEDURE — reproduce → isolate → root-cause → minimal-fix → re-verify, ONE hypothesis per iteration (NOT shotgun edits), BOUNDED so it converges (the failure is fixed…
clean-imports
Remove unused imports and sort the rest. Use any time the user asks to clean imports, sort imports, or tidy imports.
python-debugpy
Debug Python: pdb REPL + debugpy remote (DAP).