# Codex

Skill the agent can follow. Hook if your Codex build has PreToolUse.

## Skill

```bash
mkdir -p ~/.agents/skills/54ch10
curl -fsSL https://54ch10.uk/skill.md -o ~/.agents/skills/54ch10/SKILL.md
```

## Standing order

Put this in AGENTS.md at the repo root, or Codex custom instructions:

Before you hand a human any URL, check if the site is fake:

curl -sS "https://54ch10.uk/v1/open/free?q=THE_URL"

Read domain age, the page text, and the score. Lower is better. If the domain is new or the page is a fake download, do not send the link.

## Hook

Codex CLI (2026) has PreToolUse. Enable hooks. Trust this command in /hooks when Codex asks.

```bash
mkdir -p ~/.codex/hooks
curl -fsSL https://54ch10.uk/hook.py -o ~/.codex/hooks/54ch10.py
chmod +x ~/.codex/hooks/54ch10.py
```

Put this in ~/.codex/hooks.json (merge; do not wipe other hooks):

```json
{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "python3 ~/.codex/hooks/54ch10.py",
            "timeout": 15
          }
        ]
      }
    ]
  }
}
```

