Codex Rules Reference
A reference skill that explains which rule files Codex Rules reads and which environment variables control it.
Dev & CodingIntermediate★ 67,531⑂ 5,507AI score 6/10Last updated: Aug 9, 2026
What it does
- Explains when Codex Rules injects context: static project instructions on
SessionStartandUserPromptSubmit, plus file-matched rules after Codexapply_patch, with per-session deduplication. - Lists every supported rule source:
CONTEXT.md,.omo/rules/**/*.md,.claude/rules/**/*.md,.cursor/rules/**/*.md,.github/instructions/**/*.md,.github/copilot-instructions.md. - Documents the environment knobs (
CODEX_RULES_DISABLED,CODEX_RULES_MODE,CODEX_RULES_MAX_RULE_CHARS,CODEX_RULES_MAX_RESULT_CHARS,CODEX_RULES_ENABLED_SOURCES) and the legacyPI_RULES_*fallbacks.
Who it's for
- Developers running the oh-my-openagent / omo-codex plugin who need fine control over rule injection.
- Repo maintainers mixing multiple rule conventions such as
.cursor/rulesand.github/instructions. - Anyone migrating from
pi-ruleswho needs to know whether old variables still work.
Examples
- "Why aren't my project rules showing up?" — the skill checks your file path against the supported source list and
CODEX_RULES_ENABLED_SOURCES. - "Temporarily disable rule injection" — it points you to
CODEX_RULES_DISABLED=1orCODEX_RULES_MODE=off. - "Injected rules are too long" — it explains capping output with
CODEX_RULES_MAX_RULE_CHARS/CODEX_RULES_MAX_RESULT_CHARS.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/HEAD/packages/omo-codex/plugin/components/rules/skills/rules/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the packages/omo-codex/plugin/components/rules/skills/rules folder from the GitHub repo code-yeongyu/oh-my-openagent into my ~/.claude/skills/rules/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/code-yeongyu/oh-my-openagent.git && mkdir -p ~/.claude/skills/rules && cp -r oh-my-openagent/packages/omo-codex/plugin/components/rules/skills/rules/* ~/.claude/skills/rules/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and go to your working directory.
- Clone the repository:
git clone https://github.com/code-yeongyu/oh-my-openagent.git - Create the skill folder:
mkdir -p ~/.claude/skills/rules - Copy the skill files:
cp -r oh-my-openagent/packages/omo-codex/plugin/components/rules/skills/rules/* ~/.claude/skills/rules/ - Restart Claude Code, then ask something like "How do I configure Codex Rules?" to trigger the skill.
- (Optional) To use the actual rule-injection feature, install and enable the omo-codex plugin itself as described in the repo README.
View source on GitHub ↗License: NOASSERTION