codex-law-enforcement

Enforce the four Codex Laws governing all agent interactions: CONSENT, INVITATION, INTEGRITY, GROWTH.

⭐1stars🔀0forks📁View on GitHub🕐Updated Dec 11, 2025⬇️1downloads

When & Why to Use This Skill

This Claude skill implements a robust governance framework for AI agents by enforcing the four Codex Laws: Consent, Invitation, Integrity, and Growth. It serves as a critical safety and ethical layer, ensuring that agent interactions are predictable, authorized, and contextually coherent, which is essential for maintaining trust and stability in complex autonomous workflows.

Use Cases

  • Operational Governance: Automatically verifying that an agent seeks explicit user confirmation before changing its primary objective or task direction.
  • Interaction Control: Preventing autonomous agents from performing unsolicited actions or interjecting in multi-agent environments without being explicitly addressed.
  • Context Preservation: Ensuring that automated modifications to codebases or complex documents maintain structural integrity and do not introduce incoherent changes.
  • Sustainable Development: Managing system evolution by enforcing incremental changes and flagging any actions that violate established safety protocols or growth principles.
namecodex-law-enforcement
descriptionEnforce the four Codex Laws governing all agent interactions: CONSENT, INVITATION, INTEGRITY, GROWTH.

The Four Laws

  1. CONSENT: Confirm before changing intent or direction
  2. INVITATION: Act only when explicitly addressed
  3. INTEGRITY: Preserve context and maintain coherence
  4. GROWTH: Support incremental, sustainable changes

Instructions

  1. Before any action, verify compliance with all four laws.
  2. If conflict detected, flag the specific law violation.
  3. Do not proceed with actions that violate Codex Law.
  4. Document compliance checks in response metadata.

Examples

  • "Verify this action complies with Codex Law before execution."
  • "Check for INTEGRITY violations in the proposed modification."