📜
AI EngineeringTypeScript

Codex Rules

by code-yeongyu

Codex Rules is an AI Engineering skill for Claude Code, published by code-yeongyu in lazycodex.

3.2K stars201 forkson code-yeongyu/lazycodexAdded 2026/08/17+1% in starsRepository updated 2026/08/09
aiai-agentsclaudeclaude-codeclicodexdeveloper-toolslazylazycodexoh-my-openagentomoopenaiorchestrationtypescript
Install in seconds
Install Codex Rules
Copy Codex Rules into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/code-yeongyu/lazycodex/tree/main/plugins/omo/skills/rules ~/.claude/skills/rules

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/code-yeongyu/lazycodex.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
plugins/omo/skills/rules/SKILL.md in code-yeongyu/lazycodex
Installs to
~/.claude/skills/rules
Collection
One of 25 skills cataloged from this repository
Category
AI Engineering2451 skills

What Codex Rules does

Codex Rules injects static project instructions and file-specific rules into Codex sessions automatically. Use it to configure supported rule file locations, matching behavior, and environment variables for Codex.

Codex Rules is cataloged under AI Engineering on DirSkills. Codex Rules comes from a repository tagged ai, ai-agents, claude, claude-code and cli.

Documentation

README

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

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Codex Rules

  • What else does code-yeongyu publish alongside Codex Rules?

    Codex Rules is one of 25 skills that DirSkills catalogs from code-yeongyu/lazycodex, the repository it ships in. Its siblings there include Ast-Grep, Bug Fix Contribution and Coding Agent Sessions. Each one is a separate skill with its own page in this directory, installs the same way Codex Rules does, and is maintained by code-yeongyu in that same repository. The rest of the collection is listed on the code-yeongyu/lazycodex page.

  • How does Codex Rules compare to other AI Engineering skills?

    Codex Rules ranks #635 by stars among the 2451 AI Engineering skills in this catalog. The most-starred ones next to it are Architecture Decision Records, AI-First Engineering and Agentic OS. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Codex Rules against them. Open each page to compare what they document and how they install.

More from code-yeongyu/lazycodex

Codex Rules is one of 25 skills cataloged on DirSkills from code-yeongyu/lazycodex.

See all 25 skills
🔍
2w ago

Ast-Grep

Ast-Grep performs AST-aware code search and rewrite, letting you match code by structure rather than text. Use it for deterministic codemods like rewriting console.log to logger.info, stripping `as any`, or migrating require to import across a codebase.
Quality
3.2K201
🐛
2w ago

Bug Fix Contribution

Bug Fix Contribution debugs a concrete LazyCodex or Codex defect, implements the smallest tested fix in a fresh temporary workspace, and delivers it as a verified-fix issue for LazyCodex-owned repos or a fork PR for upstream openai/codex.
Quality
3.2K201
🔍
2w ago

Coding Agent Sessions

Coding Agent Sessions locates, reads, and reconstructs coding-agent sessions across products such as Codex, Claude, OpenCode, Senpi, and others. Use it when asked to find, search, or export local agent transcripts, session IDs, token usage, or subagent histories.
AI Engineering
3.2K201
💬
2w ago

Comment Checker

Comment Checker helps Codex understand and respond to automatic comment-checker feedback emitted after successful edit-like PostToolUse hooks. Use it when a patch triggers a warning and Codex must fix or explain the flagged comment before moving on.
AI Engineering
3.2K201
📊
2w ago

Data Scientist

Data Scientist processes and analyzes data files using DuckDB and Polars for high-performance workloads. Use it when you need to query, filter, join, aggregate, visualize, or clean CSV, Parquet, JSON, or DuckDB datasets.
Data
3.2K201
🐞
2w ago

Debugging

Debugging applies a hypothesis-driven workflow to find root causes of crashes, silent failures, wrong responses, memory leaks, and async misbehavior in any language or binary, using runtime evidence and locking fixes with failing tests. Use it when attaching debuggers, reverse engineering binaries, or reproducing flaky or CI-only failures.
Quality
3.2K201