invariants

invariants is a skill for Claude Code, Codex from xgre1/troth. It costs 28 tokens per session (377 once invoked), scanned A, original, AGPL-3.0.

A tool for managing STVC invariants, which are registered rules or conditions that should remain true. The input says it can list and remove them.

In plain words
What is it for?
Use it to list registered invariants or remove a specific invariant.
Why use it?
It gives developers a way to inspect the current invariant rules and delete one when it is no longer needed.

Skill for Claude CodeCodex

Part of the troth plugin — 17 skills, 2 commands, 1 agent, 6 hooks, 4 MCP servers 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/xgre1/troth/invariants
Any agent
npx skills add xgre1/troth --skill invariants
Clone the repo
git clone --depth 1 https://github.com/xgre1/troth

Made for: Claude Code, Codex.

Or install troth, the plugin that ships this one along with the rest of its 17 skills, 2 commands, 1 agent, 6 hooks, 4 MCP servers.

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 invariants

README.md
[![agentmods](https://agentmods.dev/badge/skills/xgre1/troth/invariants.svg)](https://agentmods.dev/skills/xgre1/troth/invariants)
Your own site
<a href="https://agentmods.dev/skills/xgre1/troth/invariants"><img src="https://agentmods.dev/badge/skills/xgre1/troth/invariants.svg" alt="Measured on agentmods" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 377 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.00028 $0.00377
Opus 5 $0.00014 $0.00188
Sonnet 5 $0.00006 $0.00075
Haiku 4.5 $0.00003 $0.00038

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

Security

Grade A, and why

invariants 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 5d 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.

plugin/skills/invariants/SKILL.md · 31 lines

The source is not reproduced here

Licensed AGPL-3.0

The repository is licensed AGPL-3.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

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. 5d ago First seen · 31 lines · 28 tokens per session scan A 5ca5207ced24

Subscribe to this mod's changes

invariants is a skill published in the GitHub repository xgre1/troth (8 stars, last pushed yesterday), licensed AGPL-3.0. It adds 28 tokens to every session and 377 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

aatmf-t10-confidentiality-breach

AATMF T10 — Integrity & Confidentiality Breach. System prompt extraction, training-data extraction, model-weight leakage, private-key recovery.

PurpleAILAB/Decepticon · 39 tokens

ensembl-database

Query Ensembl genome database REST API for 250+ species. Gene lookups, sequence retrieval, variant analysis, comparative genomics, orthologs, VEP predictions, for genomic research.

synthetic-sciences/openscience · 45 tokens

wukongim-cloud-analysis

Diagnose one exact live WuKongIM cloud Simulation Run or chat-lifecycle Cloud Lease through the repository Analysis MCP. Use when the user or a local Analysis Session asks Codex to inspect a run's cluster state, Prometheus signals, application logs, diagnostics, Controller task audits, profiles, or redacted config…

WuKongIM/WuKongIM · 114 tokens

memory

Use when the user asks to remember, recall, forget, update, search, or inspect durable OpenSquilla memory, including profile facts in USER.md and long-term notes in MEMORY.md or memory//.md.

opensquilla/opensquilla · 44 tokens

sidewinder-rattlesnake

Adversary-emulation profile for SideWinder (G0121 / Rattlesnake / T-APT-04 / Razor Tiger), India's suspected state-sponsored cyber-espionage actor.

PurpleAILAB/Decepticon · 48 tokens

lazarus-group

Adversary-emulation profile for Lazarus Group (G0032, aka Hidden Cobra / Diamond Sleet / Labyrinth Chollima), a North Korean RGB-linked actor conducting espionage, destructive, and financially motivated operations.

PurpleAILAB/Decepticon · 51 tokens