threshold

threshold is a skill for Claude Code, Codex from Kshitijpalsinghtomar/depth-skills. It costs 18 tokens per session (1,397 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 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,397 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.00018 $0.01397
Opus 5 $0.00009 $0.00698
Sonnet 5 $0.00004 $0.00279
Haiku 4.5 $0.00002 $0.00140

Measured 11d ago against content hash e4c9009fcdd8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 11d 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 · 183 lines

How it starts

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

THRESHOLD — Commitment Gateway

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.


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.


The Protocol

Step 1 — CLASSIFY: Write the Reversal Cost

THRESHOLD CLASSIFICATION
────────────────────────────────────────
Decision:          [what is being decided — one sentence]

Reversal cost:     [Category 1 / 2 / 3 / 4]
  Category 1 — TRIVIAL (minutes, no coordination):
    Variable names, file organization, CSS values, config
  Category 2 — MODERATE (hours to days, some coordination):
    Indexes, internal API shapes, library versions, service boundaries
  Category 3 — EXPENSIVE (days to weeks, significant coordination):
    Database schemas, public API contracts, auth systems, data formats
  Category 4 — CATASTROPHIC (weeks to months, or impossible):
    Primary keys, data deletion, published standards, architecture at scale

Reversal timeline: [minutes / hours / days / weeks / months / never]
Blast radius:      [self / team / users / ecosystem]
────────────────────────────────────────

When uncertain between two categories, pick the higher one. The cost of overthinking a reversible decision is wasted time. The cost of underthinking an irreversible one is permanent damage.

Read the full file on GitHub · 183 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. 11d 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 (4 stars, last pushed 3mo ago), licensed MIT. It adds 18 tokens to every session and 1,397 once invoked, about $0.0001 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.

Related

Other skills, from other repositories

vox-video-director

Turn ONE topic into a finished Vox-style paper-collage explainer / ad video, end to end with Aliyun Bailian CLI + local ffmpeg — script, collage keyframes, motion, voice-over, music, captions, all automated. Use this whenever the user wants a "Vox style" video, a paper/torn-paper collage animation, a "motion collage"…

modelstudioai/skills · 238 tokens

bailian-train-deploy

A workflow for using Alibaba Cloud’s Bailian command-line tool to fine-tune or directly deploy AI models as callable services. It covers text, speech-synthesis, image-generation, and video-generation models.

modelstudioai/skills · 321 tokens

ai-infrastructure-ollama

Local LLM inference with the Ollama JavaScript client -- chat, streaming, tool calling, vision, embeddings, structured output, model management, and OpenAI-compatible endpoint.

agents-inc/skills · 41 tokens

ai-orchestration-langchain

LangChain.js patterns for building LLM applications — chat models, LCEL chains, prompt templates, structured output, agents, tools, RAG, streaming, and LangSmith tracing.

agents-inc/skills · 43 tokens

ai-provider-cohere-sdk

Official Cohere TypeScript SDK patterns -- CohereClientV2, chat, embeddings, rerank, RAG with citations, tool use, streaming, and model selection.

agents-inc/skills · 40 tokens

ai-provider-mistral-sdk

Official Mistral AI TypeScript SDK patterns — client setup, chat completions, streaming, function calling, structured outputs, embeddings, vision, Codestral FIM, and production best practices.

agents-inc/skills · 45 tokens