latent-premises

latent-premises is a skill for Claude Code, Codex from escoffier-labs/brigade. It costs 0 tokens per session (1,059 once invoked), scanned A, original, MIT.

A read-only review that finds hidden assumptions in code—conditions the code relies on but that are not guaranteed by its types, checks, documentation, or environment.

In plain words
What is it for?
Reviewing diffs or modules for unsafe assumptions about input data, called functions, contracts, or the surrounding environment, especially when assessing what could break later.
Why use it?
Code may work while today’s inputs and systems happen to satisfy those assumptions, then fail when they change. This identifies the assumption and the concrete failure it could cause.

Skill for Claude CodeCodex

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

Good fit Reviewing diffs or modules for unsafe assumptions about input data, called functions, contracts, or the surrounding environment, especially when assessing what could break later.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/escoffier-labs/brigade/latent-premises
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 escoffier-labs/brigade --skill latent-premises
Clone the repo
git clone --depth 1 https://github.com/escoffier-labs/brigade

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 latent-premises

README.md
[![agentmods](https://agentmods.dev/badge/skills/escoffier-labs/brigade/latent-premises/github.svg)](https://agentmods.dev/skills/escoffier-labs/brigade/latent-premises)
Your own site
<a href="https://agentmods.dev/skills/escoffier-labs/brigade/latent-premises"><img src="https://agentmods.dev/badge/skills/escoffier-labs/brigade/latent-premises/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 latent-premises

Your own site · 80×15
<a href="https://agentmods.dev/skills/escoffier-labs/brigade/latent-premises"><img src="https://agentmods.dev/badge/skills/escoffier-labs/brigade/latent-premises.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,059 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00000 $0.01059
Opus 5 $0.00000 $0.00530
Sonnet 5 $0.00000 $0.00212
Haiku 4.5 $0.00000 $0.00106

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

Security

Grade A, and why

latent-premises 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.

registry/skills/latent-premises/SKILL.md · 66 lines

How it starts

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

latent-premises

An unguarded premise is an undeclared allergen. The dish is fine for most diners, every night, until the wrong one orders it, and nothing on the menu warned anybody. Code carries the same hazard: a premise that holds on every input the system produces today, enforced by nothing, documented nowhere, that fails silently the day the premise breaks.

Core principle: a premise is only a finding when it is genuinely unenforced AND you can name what concretely breaks when it fails. Enforced premises are fine. Consequences you cannot name are hypotheses, not findings.

Read-only. This is a review lens. Fixing is a separate engagement.

The taxonomy

Hunt in five categories. Each finding gets exactly one.

Category The code assumes Examples
input boundary or external data is well-formed, with nothing upstream guaranteeing it a non-empty array ([0]), an existing key, a successful parse, a non-null string, an in-range number
contract callee behavior the signature or types do not promise a result is sorted, a call is idempotent, a value the type says is nullable is never null, a specific error type
environment the world outside the process is arranged an env var is set, a path exists, a service is reachable, a timezone or locale, an OS behavior
ordering events happen in one sequence init-before-use, single-threaded access to shared state, no interleaving between read and write, "this runs once"
cardinality a shape or scale property holds uniqueness assumed but not enforced, one-to-one where the data allows one-to-many, "the list is always small"

Process

  1. Pin the scope. Default to the diff or the recently changed code, same as reduce.
  2. Enumerate the premises. For each changed function, list what it takes for granted, category by category.
  3. Check enforcement before flagging. Read enough surrounding code to tell whether the type system, a framework contract, or a validated boundary upstream already guarantees the premise. Enforced means NOT a finding, and re-guarding it is over-defensive noise.
  4. Name the break. State the concrete failure when the premise stops holding: which input or state change, which wrong result or crash. Cannot name it? Drop it.
  5. Classify honestly. If you can construct a failing input from code visible today, it is a present defect. Hand it to bug-hunt severity rules, not this report. If the premise holds on everything the system can currently produce, it is latent. Report it here.
  6. Point at one resolution. Every finding ends with exactly one arrow: guard it (add the check), document it (state the precondition where the next caller will read it), or encode it in the type (make the compiler enforce it). Pick the cheapest one that actually closes the hazard.

Read the full file on GitHub · 66 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 · 66 lines · 0 tokens per session scan A a2104443bf21

Subscribe to this mod's changes

latent-premises is a skill published in the GitHub repository escoffier-labs/brigade (72 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,059 tokens. 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.

Related

Other skills, from other repositories

Sverklo Code Intelligence

Gives you deep codebase understanding — semantic search, blast-radius analysis, PR review, and health audits.

sverklo/sverklo · 27 tokens

slm-graph

Index and query a codebase as a structural graph — build the code graph, trace blast radius of a change, find callers/callees/inheritors, semantic code search by meaning, assemble PR review context, and detect what changed since last index. Use when the user asks how code connects, what breaks if X changes, what calls…

qualixar/superlocalmemory · 97 tokens

cartograph

Explore a codebase through Cartograph v2's PostgreSQL code graph: intent-aware context, exact/BM25/hybrid search, callers/callees/impact, affected tests, live source, review, freshness, and bounded index administration.

adder-factory/cartograph · 0 tokens

patch-edit

Apply one rewrite-plan step at a time as small reviewable file edits, never rewriting whole files when a localised change suffices.

nexu-io/open-design · 30 tokens

printing-press-output-review

Internal sub-skill: agentic review of a printed CLI's sampled command output for plausibility issues that rule-based checks can't encode (substring-match relevance, format bugs, silent source drops, ranking failures). Invoked via the Skill tool by the main printing-press skill at Phase 4.85 and printing-press-polish…

mvanhorn/cli-printing-press · 102 tokens

systemic-issue-triage

Trigger: new issue, bug report, triage, backlog, issue flood, community report, root cause, dead-end, blocked user. Attack issues by root class, never one-by-one; fixes must shrink the system, not grow it.

Gentleman-Programming/gentle-ai · 57 tokens