Borrowing it
Nothing to install: this file belongs to briandconnelly/codex-in-claude. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/briandconnelly/codex-in-claude/main/.agents/skills/separating-context-from-constraints/SKILL.mdgit clone --depth 1 https://github.com/briandconnelly/codex-in-claudeWrote 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.
[](https://agentmods.dev/skills/briandconnelly/codex-in-claude/separating-context-from-constraints)<a href="https://agentmods.dev/skills/briandconnelly/codex-in-claude/separating-context-from-constraints"><img src="https://agentmods.dev/badge/skills/briandconnelly/codex-in-claude/separating-context-from-constraints/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.
<a href="https://agentmods.dev/skills/briandconnelly/codex-in-claude/separating-context-from-constraints"><img src="https://agentmods.dev/badge/skills/briandconnelly/codex-in-claude/separating-context-from-constraints.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00157 | $0.01660 |
| Opus 5 | $0.00078 | $0.00830 |
| Sonnet 5 | $0.00031 | $0.00332 |
| Haiku 4.5 | $0.00016 | $0.00166 |
Grade A, and why
separating-context-from-constraints 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 10d 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.
How it starts
The opening of the file, as written. The whole thing — 118 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Separating Context from Constraints
Audit agent-consumed instruction documents — skills, system prompts, CLAUDE.md/AGENTS.md, MCP tool and resource descriptions, slash-command prompts — for separation of binding rules from context. This skill is audit-first: authoring workflows (skill-creator, superpowers:writing-skills) own document creation, and this skill composes with them as a quality lens. The product is a structural clarity audit; behavioral risk is the rationale for the rules, not the deliverable.
Core Concept
Every statement in an instruction document plays one of three roles:
- Binding rules — statements that direct behavior; if the agent ignores one, its behavior is wrong.
- Load-bearing facts — definitions, domain facts, tool semantics, and environment details that inform correctness; not rules, but their loss makes output wrong.
- Discretionary context — rationale, examples, background, and framing; degrades gracefully if lost.
Apply this two-question litmus test to each statement:
- Does this statement direct behavior or inform it? Direct means go to the binding-rules class; inform means go to question 2.
- If it were lost, would output be wrong (load-bearing fact) or just less informed (discretionary context)?
Mixing these roles fails for three reasons. Rules camouflaged as narration are lost under long-context pressure. Interleaved rules are not individually checkable. Readers cannot distinguish negotiable flavor from requirements.
Rules
Each rule below has an id and is checkable by an auditing agent.
- R1 Distinguishability. Make every binding rule structurally distinguishable from context. Treat a document with labeled sections or rules distributed across multiple paragraphs as long-form, and place its rules in a dedicated labeled section. Treat a single flat description without sections as compact, and mark its rules inline with imperative sentences, list items, or explicit mandatory wording. Keep rule sections free of discretionary context and load-bearing facts; place those statements in context, semantics, or similarly informative sections. A "rule" that cannot fail is context in disguise and belongs elsewhere. One finding per misplaced statement, even when both directions of the defect are present.
- R2 Explicit strength. Every rule signals whether it is mandatory (must/never) or a default with override conditions (prefer X unless Y). Defaults and defeasible guidance are legitimate rules, not failed constraints. Only ambiguous strength is a finding — a hedge ("generally", "try to") that leaves the reader unable to tell whether the statement binds.
- R3 Verifiability. Each rule is checkable against some observable evidence: output, tool calls, repository state, or process artifacts. When an unverifiable rule does not reveal the author's intended safeguard, request an author decision instead of inventing a definitive rewrite. "Be concise" fails. "Chat responses of four sentences or fewer unless asked" passes. "Never run destructive commands without confirmation" passes via tool traces.
- R4 Atomic obligations. Independently checkable obligations are stated separately. Condition–action–exception clauses sharing one trigger may stay together as a single unit.
- R5 Reachable precedence. Where two rules in the document can actually conflict on a realistic input, precedence is explicit. Two rules conflict only when they prescribe incompatible outcomes for the same decision; shared words or adjacent fields alone do not create a conflict. A restriction on the representation of one field does not restrict unrelated fields unless the document explicitly restricts the whole input object. When the document does not determine which rule wins, present every plausible precedence choice and mark the choice as an author decision. Speculative pairwise precedence for unreachable conflicts is not required and is not a finding.
What ships with it
24 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- agents/openai.yaml 278 B
- references/example-audit.md 7.7 KB
- tests/rescore-2026-08-06/preregistration.md 7.9 KB
- tests/rescore-2026-08-06/results.md 8.0 KB
- tests/runs/2026-07-11-scenario1-baseline.md 2.7 KB
- tests/runs/2026-07-11-scenario1-with-skill.md 3.5 KB
- tests/runs/2026-07-11-scenario2-baseline.md 2.5 KB
- tests/runs/2026-07-11-scenario2-with-skill.md 1.2 KB
- tests/runs/2026-07-11-scenario3-baseline.md 1.8 KB
- tests/runs/2026-07-11-scenario3-with-skill.md 2.1 KB
- tests/runs/2026-07-11-scenario4-baseline.md 1.6 KB
- tests/runs/2026-07-11-scenario4-with-skill.md 1.4 KB
- tests/runs/2026-07-11-scenario5-baseline.md 1.5 KB
- tests/runs/2026-07-11-scenario5-with-skill.md 1004 B
- tests/runs/2026-07-11-scenario6-baseline.md 1.6 KB
- tests/runs/2026-07-11-scenario6-with-skill.md 2.7 KB
- tests/runs/2026-07-11-scenario7-baseline.md 1.4 KB
- tests/runs/2026-07-11-scenario7-with-skill.md 1.7 KB
- tests/runs/2026-07-11-scenario8-baseline.md 1.0 KB
- tests/runs/2026-07-11-scenario8-with-skill.md 1.8 KB
- tests/runs/2026-07-11-scenario9-trigger.md 695 B
- tests/runs/2026-08-06-scenario1-with-skill.md 13 KB
- tests/runs/2026-08-06-scenario6-with-skill.md 6.8 KB
- tests/scenarios.md 22 KB
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.
- 10d ago First seen · 118 lines · 157 tokens per session scan A 03b199cec6ff
separating-context-from-constraints is a skill published in the GitHub repository briandconnelly/codex-in-claude (3 stars, last pushed yesterday), licensed MIT. It adds 157 tokens to every session and 1,660 once invoked, about $0.0008 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.
Other skills, from other repositories
writing-release-notes
Use when preparing, refreshing, backfilling, or redrafting a release-notes page under docs/releases/ before opening a normal review pull request.
skills
Generate a complete SVG file from a natural language description using SEP-1577 multi-step sampling.
researching-references
Use when a change depends on how something outside this repository actually behaves — a markdown dialect, a file format, git, a protocol, a vendor API — and docs/design/reference/ has no current reference for it, or the one it has is past its review date. Researches from primary sources and writes a dated, versioned…
repository-protection
Use when changing branch or tag rulesets, required checks, or the bootstrap workflow: how repository protection is applied and kept in sync.
vault-workflow
Use when the user asks you to search, read, or reason about notes in their markdown vault — guides when to use which vault tool and how to chain them for good results.
pr-alignment-loop
Iterate a PR to its final form by running two opposing reviewer droids (reviewer-robustness and reviewer-minimalist) in a bounded back-and-forth loop. The main orchestrator synthesizes their feedback, makes edits, runs tests, and stops when both approve, on stagnation, or after 3 rounds. Use when the user asks to…