constraint-check

constraint-check is a skill for Claude Code, Codex from microsoft/cat-agent-skills. It costs 169 tokens per session (1,674 once invoked), scanned A, original, MIT.

A rule-based staffing check that applies independence, conflict, prior-role, ethical-wall, and availability rules to ranked candidates. It gives an eligibility result and does not grant exceptions.

In plain words
What is it for?
It is for deciding whether each candidate can fill a role, identifying blocking rules, and recording the evidence and reason for each result.
Why use it?
It separates suitability scoring from compliance decisions, so a high-scoring candidate is not treated as eligible without the required checks.

Skill for Claude CodeCodex ✓ vendor

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

Good fit It is for deciding whether each candidate can fill a role, identifying blocking rules, and recording the evidence and reason for each result.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/microsoft/cat-agent-skills/constraint-check
About the project

microsoft/cat-agent-skills is a static website that catalogs reusable instruction sets and related packages for AI agents. People use it to search, filter, rate, and download skills for Cowork, Copilot Studio, and Scout, along with Copilot plugins and Scout automations. The catalogue entries are the skills, instructions, plugins, and settings displayed by the site.

microsoft/cat-agent-skills · 101 stars · on GitHub

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 microsoft/cat-agent-skills --skill constraint-check
Clone the repo
git clone --depth 1 https://github.com/microsoft/cat-agent-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 constraint-check

README.md
[![agentmods](https://agentmods.dev/badge/skills/microsoft/cat-agent-skills/constraint-check/github.svg)](https://agentmods.dev/skills/microsoft/cat-agent-skills/constraint-check)
Your own site
<a href="https://agentmods.dev/skills/microsoft/cat-agent-skills/constraint-check"><img src="https://agentmods.dev/badge/skills/microsoft/cat-agent-skills/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/microsoft/cat-agent-skills/constraint-check"><img src="https://agentmods.dev/badge/skills/microsoft/cat-agent-skills/constraint-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 169 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,674 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.00169 $0.01674
Opus 5.5 $0.00068 $0.00670
Sonnet 5.5 $0.00034 $0.00335
Haiku 4.5 $0.00017 $0.00167

Measured yesterday against content hash f565004c0a4b, 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 yesterday.

The scan reads SKILL.md. This mod also ships 6 executable files (scripts/constraint_check.py, scripts/fit_score.py, scripts/input_guard.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

submissions/engagement-staffing-bench-match/skills/constraint-check/SKILL.md · 67 lines

How it starts

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

Constraint Check (Govern)

Purpose

Apply references/independence-eligibility-rules.md deterministically and fail closed. This is the explicit Govern step: each candidate-role pair receives an eligibility verdict, every conflict record considered, blocking rule, citations and refusal rationale where applicable.

When to use

After fit-score in every run, and on any question about independence, conflicts, ethical walls, prior roles or availability clearance for an engagement staffing slate.

When NOT to Use

  • Board, audit-committee or proxy-statement director independence — that is corporate governance, not staffing.
  • Scoring or ranking candidates — use fit-score instead.
  • Writing the partner recommendation — use slate-draft instead.

Inputs

roles.json + bench.json + ranked.json + constraints.json using contract ps.engagement-staffing-bench-match.v1. All four are required: the engine re-derives ranked.json from roles.json and bench.json and refuses with no output if it differs (#9.8).

Steps

  1. Merge engagement context from ranked and constraints input, union declared affiliates, preserve role-intake provenance and stop if the client cannot be resolved. The role-intake engagement is authoritative: a different client, engagement ID or role start date in constraints.json is refused with no output (#9.10).
  2. Validate the ranked payload and normalized constraints[] extract, including one conflicts-register row per candidate, normalized candidate IDs and complete conflict fields. A missing, blank or null status holds the candidate for review (#9.1); a candidate value that names another client in the register is withheld and the candidate is held for review (#9.11).
  3. Run the Govern engine.
  4. Quote eligibility verdicts, blocking rules, availability calculations and gap statements verbatim. Preserve constraints_considered[] for every candidate.
  5. If the top provisional candidate is ineligible, lead with the refusal and cite the rule. It is not overrideable by prose, schedule pressure or partner preference.
  6. Hand off governed.json to slate-draft.

Read the full file on GitHub · 67 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. yesterday First seen · 67 lines · 169 tokens per session scan A f565004c0a4b

Subscribe to this mod's changes

constraint-check is a skill published in the GitHub repository microsoft/cat-agent-skills (101 stars, last pushed yesterday), licensed MIT. It adds 169 tokens to every session and 1,674 once invoked, about $0.0007 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-07.

Related

constraint-check compared with skills from other repositories

constraint-check next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
constraint-checkmicrosoft/cat-agent-skillsSkill101yesterdayMITA169Claude Code, Codex
fto-triageanthropics/claude-for-legalSkill9.9kyesterdayApache-2.0A81Claude Code
legal-holdanthropics/claude-for-legalSkill9.9kyesterdayApache-2.0A68Claude Code
specification-writingwanshuiyin/Auto-claude-code-research-in-sleepSkill19ktodayMITA49Claude Code
regulatory-research-fallbackHKUDS/OpenSpaceSkill7.9k2d agoMITA20Claude Code, Codex
terms-of-servicegenspark-ai/genofficeSkill12ktodayApache-2.0A32Claude Code, Codex
x-scorecardx-cmd/x-cmdSkill4.7k8d agoApache-2.0A57Claude Code, Codex