Skip to content

/rules

Use when the user asks about Codex Rules behavior, injected project rules, supported rule file locations, matching, or environment configuration.

shell
$ npx -y skills add code-yeongyu/lazyclaudecode --skill rules --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/rules
How auto-invocation works

Context preview

The summary Claude sees to decide when to auto-load this skill.

Use when the user asks about Codex Rules behavior, injected project rules, supported rule file locations, matching, or environment configuration.

SKILL.md

rules.SKILL.md
name: rules
description: Use when the user asks about Codex Rules behavior, injected project rules, supported rule file locations, matching, or environment configuration.

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:

  • `AGENTS.md`
  • `CLAUDE.md`
  • `CONTEXT.md`
  • `.sisyphus/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=AGENTS.md,.sisyphus/rules`

The legacy `PI_RULES_*` variables are accepted as fallbacks for users migrating from `pi-rules`.

Read it on GitHub ↗
Ships withlazyclaudecode

The lazy way to run omo inside Claude Code. A native Claude Code plugin marketplace by Sisyphus Labs. What it is · Install · Components · MCP · Telemetry · omo

Get the whole plugin, auto-invoked
Stats
16
Stars
0
Views
0
Forks
Maintained
Maintenance
JavaScript
Language
MIT
License
2mo ago
Last commit
2mo ago
Created

Repo: code-yeongyu/lazyclaudecode