codex-in-claude: Skill for Claude Code

.agents/skills/separating-context-from-constraints/SKILL.md

separating-context-from-constraints is a skill for Claude Code, Codex from briandconnelly/codex-in-claude. It costs 157 tokens per session (1,660 once invoked), scanned A, original, MIT.

An auditing guide for instructions consumed by AI agents, such as skills, prompts, and project guidance files. It separates rules the agent must follow from facts and optional background information.

In plain words
What is it for?
Use it to review skills, system prompts, CLAUDE.md or AGENTS.md files, MCP descriptions, slash-command prompts, and similar agent-facing documents.
Why use it?
It makes important instructions easier to find and reduces the risk that mandatory rules are hidden inside explanatory text.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: mentions CLAUDE.md; installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is briandconnelly/codex-in-claude's own configuration. It tells Claude Code and Codex how to work on codex-in-claude itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything codex-in-claude configures →

Part of the codex-in-claude plugin — 8 skills, 1 MCP server shipped together

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/briandconnelly/codex-in-claude/main/.agents/skills/separating-context-from-constraints/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/briandconnelly/codex-in-claude

Made for: Claude Code, Codex.

Or install codex-in-claude, the plugin that ships this one along with the rest of its 8 skills, 1 MCP server.

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 separating-context-from-constraints

README.md
[![agentmods](https://agentmods.dev/badge/skills/briandconnelly/codex-in-claude/separating-context-from-constraints/github.svg)](https://agentmods.dev/skills/briandconnelly/codex-in-claude/separating-context-from-constraints)
Your own site
<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.

agentmods 80×15 button for separating-context-from-constraints

Your own site · 80×15
<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>
Per session 157 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,660 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.00157 $0.01660
Opus 5 $0.00078 $0.00830
Sonnet 5 $0.00031 $0.00332
Haiku 4.5 $0.00016 $0.00166

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

Security

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.

.agents/skills/separating-context-from-constraints/SKILL.md · 118 lines

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:

  1. Binding rules — statements that direct behavior; if the agent ignores one, its behavior is wrong.
  2. Load-bearing facts — definitions, domain facts, tool semantics, and environment details that inform correctness; not rules, but their loss makes output wrong.
  3. Discretionary context — rationale, examples, background, and framing; degrades gracefully if lost.

Apply this two-question litmus test to each statement:

  1. Does this statement direct behavior or inform it? Direct means go to the binding-rules class; inform means go to question 2.
  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.

Read the full file on GitHub · 118 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. 10d ago First seen · 118 lines · 157 tokens per session scan A 03b199cec6ff

Subscribe to this mod's changes

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.

Related

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.

pvliesdonk/markdown-vault-mcp · 35 tokens

skills

Generate a complete SVG file from a natural language description using SEP-1577 multi-step sampling.

sandraschi/inkscape-mcp · 0 tokens

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…

pvliesdonk/markdown-vault-mcp · 99 tokens

repository-protection

Use when changing branch or tag rulesets, required checks, or the bootstrap workflow: how repository protection is applied and kept in sync.

pvliesdonk/markdown-vault-mcp · 31 tokens

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.

pvliesdonk/markdown-vault-mcp · 40 tokens

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…

nikships/skills-registry · 122 tokens