constraint-check

constraint-check is a skill for Claude Code from Rune-kit/rune. It costs 64 tokens per session (1,579 once invoked), scanned A, original, MIT.

A process checker for mandatory workflow rules, called hard gates. It reviews the session to see whether required steps were actually followed, rather than merely reported as completed.

In plain words
What is it for?
It is for auditing agent workflows used by coding, team, and project-audit processes.
Why use it?
It catches skipped process requirements, such as failing to write tests before code or failing to obtain required plan approval. This complements checks that verify output claims or code itself.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the rune plugin — 66 skills, 1 command, 66 agents, 6 hooks shipped together

Good fit It is for auditing agent workflows used by coding, team, and project-audit processes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rune-kit/rune/constraint-check
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 Rune-kit/rune --skill constraint-check
Clone the repo
git clone --depth 1 https://github.com/Rune-kit/rune

Made for: Claude Code.

Or install rune, the plugin that ships this one along with the rest of its 66 skills, 1 command, 66 agents, 6 hooks.

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 constraint-check

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/rune-kit/rune/constraint-check"><img src="https://agentmods.dev/badge/skills/rune-kit/rune/constraint-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,579 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.00064 $0.01579
Opus 5.5 $0.00026 $0.00632
Sonnet 5.5 $0.00013 $0.00316
Haiku 4.5 $0.00006 $0.00158

Measured 8d ago against content hash 01d4ffdce037, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

constraint-check 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 8d 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/constraint-check/SKILL.md · 166 lines

How it starts

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

constraint-check

Purpose

The internal affairs department for Rune skills. Checks whether HARD-GATEs and mandatory constraints were actually followed during a workflow — not just claimed to be followed. Reads the constraint definitions from skill files and audits the conversation trail for compliance.

While completion-gate checks if claims have evidence, constraint-check checks if the PROCESS was followed. Did you actually write tests before code? Did you actually get plan approval? Did you actually run sentinel?

Triggers

  • Called by cook (L1) at end of workflow as discipline audit
  • Called by team (L1) to verify stream agents followed constraints
  • Called by audit (L2) during quality dimension assessment
  • /rune constraint-check — manual audit of current session

Calls (outbound)

None — pure read-only validator.

Called By (inbound)

  • cook (L1): end-of-workflow discipline audit
  • team (L1): verify stream agent compliance
  • audit (L2): quality dimension
  • User: manual session audit

Execution

Step 1 — Identify Active Skills

Parse the conversation/workflow to identify which skills were invoked:

Extract from context:
  - Skills invoked via Skill tool (exact list)
  - Skills referenced in agent narrative
  - Phase progression (cook phases completed)

Step 2 — Load Constraint Definitions

For each invoked skill, extract HARD-GATEs and numbered constraints:

For each skill in invoked_skills:
  Read: skills/<skill>/SKILL.md
  Extract:
    - <HARD-GATE> blocks → mandatory, violation = BLOCK
    - ## Constraints numbered list → required, violation = WARN
    - ## Mesh Gates table → required gates

Step 3 — Audit Compliance

Check each constraint against the conversation evidence:

Constraint Type How to Verify Evidence Source
"MUST write tests BEFORE code" Test file Write/Edit timestamps before implementation Write/Edit Tool call ordering
"MUST get user approval" User message containing "go"/"yes"/"proceed" after plan Conversation history
"MUST run verification" Bash command with test/lint/build output Tool call results
"MUST show actual output" Stdout captured in agent response Agent messages
"MUST NOT modify files outside scope" Git diff files vs plan file list Git + plan comparison
"Iron Law: delete code before test" No implementation code exists before test creation Tool call ordering

Read the full file on GitHub · 166 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. 8d ago First seen · 166 lines · 64 tokens per session scan A 01d4ffdce037

Subscribe to this mod's changes

constraint-check is a skill published in the GitHub repository Rune-kit/rune (96 stars, last pushed 2d ago), licensed MIT. It adds 64 tokens to every session and 1,579 once invoked, about $0.0003 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-11-22.

Related

constraint-check compared with skills from other repositories

constraint-check next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
constraint-checkRune-kit/runeSkill962d agoMITA64Claude Code
tddsentimony/skillsSkill8todayMITA43Claude Code
using-agent-skillsvanja-emichi/a0_agent_skillsSkill63mo agoMITA95Claude Code, Codex
binder-design-tool-selectionzongtingwei/Bioclaw_Skills_HubSkill277mo agoMITA91Claude Code, Codex
end-to-end-protein-design-workflowzongtingwei/Bioclaw_Skills_HubSkill277mo agoMITA98Claude Code, Codex
agent-orchestratorlingxling/awesome-skills-cnSkill3411mo agoMITA41Claude Code
poc-spec-loopfabiandistler/agentsSkill2todaynoneA55Claude Code, Codex