rules
SolidUse when the user asks about Codex Rules behavior, injected project rules, supported rule file locations, matching, or environment configuration.
AI & Automation 66,650 stars
5430 forks Updated today NOASSERTION
Install
Quality Score: 81/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# Codex Rules
Codex Rules is automatic once the plugin is enabled. It injects:
- static project instructions on `SessionStart` and `UserPromptSubmit`
- matching file-specific rules after Codex `apply_patch` by default
Dynamic `PostToolUse` output is injected as additional context and is deduplicated per plugin data session. Codex Rules does not rewrite tool output.
Supported project sources:
- `CONTEXT.md`
- `.omo/rules/**/*.md`
- `.claude/rules/**/*.md`
- `.cursor/rules/**/*.md`
- `.github/instructions/**/*.md`
- `.github/copilot-instructions.md`
Supported environment knobs:
- `CODEX_RULES_DISABLED=1`
- `CODEX_RULES_MODE=both|static|dynamic|off`
- `CODEX_RULES_MAX_RULE_CHARS=<number>`
- `CODEX_RULES_MAX_RESULT_CHARS=<number>`
- `CODEX_RULES_ENABLED_SOURCES=CONTEXT.md,.omo/rules`
The legacy `PI_RULES_*` variables are accepted as fallbacks for users migrating from `pi-rules`.
Details
- Author
- code-yeongyu
- Repository
- code-yeongyu/oh-my-openagent
- Created
- 7 months ago
- Last Updated
- today
- Language
- TypeScript
- License
- NOASSERTION
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Listed
rules
Maintains project .codex/rules and the AGENTS.md rule index. Explicit user invocation only.
29 Updated 3 days ago
kochetkov-ma AI & Automation Listed
brewcoderules
Syncs KNOWLEDGE.jsonl or session learnings to project rules. Triggers: rules, knowledge sync, extract rules.
29 Updated 3 days ago
kochetkov-ma AI & Automation Solid
rules
Écrit les règles projet dans `.claude/rules/` — instructions paths-scopées, chargées seulement quand Claude ouvre un fichier de la zone — et retire du CLAUDE.md ce qui part en règle. Modes Création, Enrichir, Éditer.
3 Updated today
gabrielmustiere