Create and control a standing Codex project rule such as rebuilding after source changes or testing before a commit. Use for $always and recurring obligations tied to observable tool actions.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Always?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/mohammedatya-always-guardrail-forge)
---
name: always
description: Create and control a standing Codex project rule such as rebuilding after source changes or testing before a commit. Use for $always and recurring obligations tied to observable tool actions.
---
# Always for Codex
Use the sibling [Forge engine and setup workflow](../forge/SKILL.md) for installation, backtesting, preview, confirmation and adding a rule. Paths in that workflow are relative to the forge skill.
- For creation, identify what makes the task due, what command performs it, how to check completion and when to enforce it. Inspect the project's existing build or test commands. Use the [always-rule schema and fixtures](../forge/reference/rules.md#always-rules). Watch source inputs and exclude generated outputs. Use `Edit|Write|Bash` for file changes.
- Use `Stop` to keep the turn open while work is due, `PreToolUse` for an ordering requirement, or `PostToolUse` for a reminder. Prefer `done_when.newer` for build artifacts. With only `ran`, describe the evidence as observing the command. Codex runs the task through its normal tools. Hook-launched shell checks and conversation triggers using `replying_to` are unsupported.
- Show a short preview with the trigger, task, completion check, deadline, a triggering example, and a near miss before installing it. Explain any weak evidence from the backtest.
- For `$always list`, run `python3 .codex/guardrails/codex_forge.py list --always` in the project. For `$always skip [id]`, `pause [id]`, or `resume [id]`, the UserPromptSubmit hook reads the user's own command. Acknowledge it without writing a synthetic event. Skip clears the current batch, pause lasts for the session, and resume reactivates the rule. For removal, give the user the terminal command in the Forge skill.