Help us improve
Share bugs, ideas, or general feedback.
From agent-guardrails
Enforces creating and validating production code before test or infrastructure code. Useful for teams wanting to prevent test-first or infrastructure-first patterns.
npx claudepluginhub thearchitectit/agent-guardrails-templateHow this skill is triggered — by the user, by Claude, or both
Slash command
/agent-guardrails:production-firstThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Production code MUST be created, validated, and committed before test code or infrastructure code.
Enforces strict separation between test and production environments. Halts operations and prompts user verification when separation cannot be confirmed, preventing data leaks and credential exposure.
Enforces TDD Iron Law: write minimal failing test first, verify red failure, add minimal code to pass green. Rejects code without prior failing test.
Share bugs, ideas, or general feedback.
Production code MUST be created, validated, and committed before test code or infrastructure code.
Order of creation:
Why this order:
Before creating ANY test or infrastructure file:
test_foo.py exists but foo.py is empty or missingWhen asked to create tests or infrastructure:
When running in pi, the Production-First Rule is supported by the @architectit/pi-guardrails extension:
guardrail_mcp with action validate_production_first for explicit verificationSee [[guardrails-core]] for the full enforcement coverage map.
Evaluate the current task against the Production-First Rule. Ensure production code exists and is validated before any test or infrastructure code is created. If production code is missing or incomplete, prioritize creating it first.
docs/standards/TEST_PRODUCTION_SEPARATION.md — Full environment separation rulesdocs/workflows/TESTING_VALIDATION.md — Testing workflow and validation gates