threshold

threshold is a skill for Claude Code, Codex from Kshitijpalsinghtomar/depth-skills. It costs 36 tokens per session (5,022 once invoked), scanned A, original, MIT.

A decision gate that matches the amount of investigation to the cost of reversing a technical choice.

In plain words
What is it for?
Use it before committing to database schemas, public APIs, data deletion, or other high-impact decisions.
Why use it?
It helps prevent quick decisions on changes that are difficult to undo or affect many systems and people.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it before committing to database schemas, public APIs, data deletion, or other high-impact decisions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kshitijpalsinghtomar/depth-skills/ds-threshold
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 Kshitijpalsinghtomar/depth-skills --skill ds-threshold
Clone the repo
git clone --depth 1 https://github.com/Kshitijpalsinghtomar/depth-skills

Made for: Claude Code, Codex.

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 threshold

README.md
[![agentmods](https://agentmods.dev/badge/skills/kshitijpalsinghtomar/depth-skills/ds-threshold/github.svg)](https://agentmods.dev/skills/kshitijpalsinghtomar/depth-skills/ds-threshold)
Your own site
<a href="https://agentmods.dev/skills/kshitijpalsinghtomar/depth-skills/ds-threshold"><img src="https://agentmods.dev/badge/skills/kshitijpalsinghtomar/depth-skills/ds-threshold/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 threshold

Your own site · 80×15
<a href="https://agentmods.dev/skills/kshitijpalsinghtomar/depth-skills/ds-threshold"><img src="https://agentmods.dev/badge/skills/kshitijpalsinghtomar/depth-skills/ds-threshold.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,022 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.00036 $0.05022
Opus 5.5 $0.00014 $0.02009
Sonnet 5.5 $0.00007 $0.01004
Haiku 4.5 $0.00004 $0.00502

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

Security

Grade A, and why

threshold 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.

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/ds-threshold/SKILL.md · 575 lines

How it starts

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

THRESHOLD v2.0 — Commitment Gateway (Premium)

Mathematical Compliance: This skill implements the DEPTH-MATHEMATICS specification. It computes and outputs ADS phase activation, CEI components, SI components, cognitive traces (reversal cost function, commitment , early warning signals), and verifies Gates V1-V6. It provides the final commitment verdict for the Depth .

Not all decisions deserve the same depth. A CSS color choice and a database primary key choice are not the same decision — but without this skill, the model treats them with roughly equal cognitive investment.

This skill creates the gate between thinking and committing. It measures the reversal cost, enforces proportional exploration, and requires an exit plan before any high-cost commitment. Now it quantifies reversal cost as a function, produces verifiable commitment s, and defines early warning signals.


The Failure Mode You Must Recognize

You are about to give a quick, confident answer to a decision that:

  • Cannot be easily undone (database schema, public API, data deletion)
  • Affects many people or systems (blast radius extends beyond the immediate scope)
  • Was not explored proportionally (one approach considered, zero alternatives evaluated)

Uniform depth — treating all decisions with the same level of analysis — systematically under-invests in the decisions that matter most.

New failure mode in v2.0: Reversal cost handwaving — "hard to undo" without quantification. Commitment theater — gates that look strict but lack enforcement. Early warning absence — no observable signals to detect a wrong decision before it's too late.


The Protocol

0 — PARAMETERIZE: Read Thinking Parameters

Read thinking_parameters:

  • require_reversal_cost_function (default true) — quantify reversal cost mathematically
  • require_commitment_ (default true) — produce verifiable commitment
  • require_early_warning (default true) — define observable early warning signals
  • require_gate_enforcement (default true) — enforce all gates before commitment

Read the full file on GitHub · 575 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. 1mo ago Changed · +392 lines · +18 tokens per session dfadceb11556
  2. 3mo ago First seen · 183 lines · 18 tokens per session scan A e4c9009fcdd8

Subscribe to this mod's changes

threshold is a skill published in the GitHub repository Kshitijpalsinghtomar/depth-skills (6 stars, last pushed 1mo ago), licensed MIT. It adds 36 tokens to every session and 5,022 once invoked, about $0.0001 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-31.

Related

threshold compared with skills from other repositories

threshold next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
thresholdKshitijpalsinghtomar/depth-skillsSkill61mo agoMITA36Claude Code, Codex
codebase-inspectionseaworld008/Commonly-used-high-value-skillsSkill75yesterdayMITA41Claude Code, Codex
bailian-train-deploymodelstudioai/skillsSkill61yesterdayApache-2.0A465Claude Code, Codex
vox-video-directormodelstudioai/skillsSkill61yesterdayApache-2.0A238Codex
bailian-model-recommendmodelstudioai/skillsSkill61yesterdayApache-2.0A136Claude Code, Codex
aspire-project-v2-migrationmicrosoft/aspire-skillsSkill102todayMITA0Claude Code
aspireifymicrosoft/aspire-skillsSkill102todayMITA0Claude Code