Constraint Check logo

Constraint Check

Organization
Rune-kit
constraint-check

Meta-validator for HARD-GATEs. Use when auditing whether a skill's mandatory constraints were actually followed during a workflow (not just claimed). Called by cook, team, and audit for discipline compliance.

Overview

PublisherRune-kit
Repositoryrune
Skill nameconstraint-check
Stars
88
Forks
26
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Rune-kit on GitHub. Read the source before you install it.

Installation

Install the Constraint Check AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Rune-kit/rune/tree/master/skills/constraint-check
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Rune-kit/rune.git /tmp/rune
mkdir -p .claude/skills
cp -r /tmp/rune/skills/constraint-check .claude/skills/constraint-check
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Constraint Check in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Constraint Check on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Constraint Check is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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 TypeHow to VerifyEvidence Source
"MUST write tests BEFORE code"Test file Write/Edit timestamps before implementation Write/EditTool call ordering
"MUST get user approval"User message containing "go"/"yes"/"proceed" after planConversation history
"MUST run verification"Bash command with test/lint/build outputTool call results
"MUST show actual output"Stdout captured in agent responseAgent messages
"MUST NOT modify files outside scope"Git diff files vs plan file listGit + plan comparison
"Iron Law: delete code before test"No implementation code exists before test creationTool call ordering

Step 4 — Classify Violations

Violation TypeSeverityMeaning
HARD-GATE violationBLOCKSkill says this is non-negotiable
Constraint violationWARNSkill says this is required but not fatal
Best practice skipINFORecommended but optional

Step 5 — Report

## Constraint Check Report
- **Status**: COMPLIANT | VIOLATIONS_FOUND | CRITICAL_VIOLATION
- **Skills Audited**: [count]
- **Constraints Checked**: [count]
- **Violations**: [count by severity]

### HARD-GATE Violations (BLOCK)
- [skill:test] Iron Law: implementation code written at tool_call #12 BEFORE test file created at #15
- [skill:cook] Plan Gate: Phase 4 started without user approval message

### Constraint Violations (WARN)
- [skill:verification] Constraint 2: "All tests pass" claimed at message #20 without stdout evidence
- [skill:sentinel] Constraint 3: files scanned list not included in report

### Compliance Summary
| Skill | HARD-GATEs | Constraints | Status |
|-------|-----------|-------------|--------|
| cook | 3/3 ✓ | 6/7 (1 WARN) | WARN |
| test | 0/1 ✗ | 8/9 (1 WARN) | BLOCK |
| verification | 1/1 ✓ | 4/6 (2 WARN) | WARN |
| sentinel | 1/1 ✓ | 7/7 ✓ | PASS |

### Remediation
- BLOCK: test Iron Law — delete implementation, restart with test-first
- WARN: verification — re-run and capture stdout

Constraint Catalog (Quick Reference)

Key HARD-GATEs across skills that constraint-check audits:

SkillHARD-GATECheck Method
testTests BEFORE code (Iron Law)Tool call ordering
cookScout before plan, plan before codePhase progression
planEvery code phase has test entryPlan content
verificationEvidence for every claimStdout capture
sentinelBLOCK = halt pipelineNo commit after BLOCK
preflightBLOCK = halt pipelineNo commit after BLOCK
debugNo code changes during debugNo Write/Edit in debug
debug3-fix escalationFix attempt counter
brainstormNo implementation before approvalUser message check

Output Format

Constraint Check Report with status (COMPLIANT/VIOLATIONS_FOUND/CRITICAL_VIOLATION), HARD-GATE violations, constraint violations, compliance summary table, and remediation steps. See Step 5 Report above for full template.

Constraints

  1. MUST check all HARD-GATEs for every invoked skill — not just the ones that seem relevant
  2. MUST use tool call ordering (not agent narrative) to verify temporal constraints
  3. MUST distinguish HARD-GATE violations (BLOCK) from constraint violations (WARN)
  4. MUST report specific evidence for each violation — not just "violated"
  5. MUST NOT accept agent's self-report as compliance evidence — check independently

Sharp Edges

Failure ModeSeverityMitigation
Agent self-reports compliance and constraint-check trusts itCRITICALConstraint 5: check tool calls independently, not agent narrative
Only checking cook constraints, missing test/sentinel/etcHIGHConstraint 1: audit ALL invoked skills, not just the orchestrator
Temporal check wrong (tool calls reordered in context)MEDIUMUse tool call sequence numbers, not message ordering
Too strict on optional steps (INFO treated as BLOCK)LOWStep 4 classification: only HARD-GATE = BLOCK, constraints = WARN

Done When

  • All invoked skills identified from context
  • HARD-GATEs and constraints extracted from each skill's SKILL.md
  • Each constraint checked against conversation evidence
  • Violations classified as BLOCK/WARN/INFO
  • Compliance summary table emitted per skill
  • Remediation steps listed for each violation

Cost Profile

~1000-2000 tokens input, ~500-1000 tokens output. Haiku for speed — reads skill files and checks tool call ordering.

Frequently asked questions

What does the Constraint Check AI skill do?

Meta-validator for HARD-GATEs. Use when auditing whether a skill's mandatory constraints were actually followed during a workflow (not just claimed). Called by cook, team, and audit for discipline compliance.

Why use Constraint Check on TypingMind?

Because you install it once and use it with any model. Constraint Check is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Constraint Check in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Rune-kit/rune/tree/master/skills/constraint-check. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Constraint Check?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Constraint Check?

As many as you like. As long as a model supports skills, you can use Constraint Check with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Constraint Check AI skill free?

Yes. It is published on GitHub by Rune-kit under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇