Skip to main content
hook CX Codex

codex-seo — Claude Code hook: schema checks after edits

This hook runs a schema check when Claude Code edits or writes a file. It ships with codex-seo, a plugin bundle for SEO workflows.

MIT ★ 1,596 updated 2026-10-29

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/settings.json
Open on GitHub

What codex-seo does

After Claude Code uses Edit or Write, the hook runs python3 "./hooks/validate-schema.py" "$FILE_PATH". The script receives the path of the changed file, so schema validation follows file edits rather than requiring a separate audit request.

The configuration attaches the command to PostToolUse and matches Edit|Write. The wider codex-seo bundle covers SEO audits, Google API workflows, backlink analysis, and reporting; this hook configuration specifically shows schema validation. It needs python3 and ./hooks/validate-schema.py at that path. Without either, the command cannot run.

What it helps with

  • check a file's schema after editing it
  • run validation after writing changes
  • pass the changed file path to a validation script

Example prompts for the agent

  • Edit the page markup and check its schema.
  • Write the updated file, then run the schema check.

How to install codex-seo

Manually: put the files in place

.claude/settings.json

The hooks block: event (PreToolUse, PostToolUse, Stop…) → command. Personal ones go to ~/.claude/settings.json

Step by step, with commands for each platform: Claude Code hooks: what they are, where to configure them, how to block a risky command

Questions about codex-seo

How do I install codex-seo in Claude Code?

Add the hook configuration to .claude/settings.json, using the PostToolUse event and the schema-check command.

What does codex-seo do?

This hook runs schema validation after Edit or Write and passes the changed file's path to the script.

What does the hook need to run?

It needs python3 and the script ./hooks/validate-schema.py at the configured path.

Source text

hooks.json · MIT
Hooks bundle shipped with the codex-seo plugin for Claude Code.

Full-stack SEO audits, Google API workflows, backlinks analysis, reporting, and optional MCP extensions for Codex.

Triggers on: PostToolUse.

```json
{
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Edit|Write",
        "hooks": [
          {
            "type": "command",
            "command": "python3 \"./hooks/validate-schema.py\" \"$FILE_PATH\""
          }
        ]
      }
    ]
  }
}

```

© BestLemoon · MIT · hashgraph-online/awesome-codex-plugins

Similar hooks

Everything for SEO and GEO →

From the same set391

The whole set →
legends-seo-dungeon The legends-seo-dungeon hook frames local SEO audits as 16-bit dungeon battles. It runs after Claude Code edits or writes a file. CX Codex ★ 1,596repo stars deja-vu deja-vu pulls earlier coding sessions from disk into context at session start and before each terminal command. CX Codex ★ 1,596repo stars dataproduct-builder-dbt dataproduct-builder-dbt runs data contract linting right after file edits in dbt projects. Helps maintain ODCS, ODPS, and OpenLineage standards across your data product builds. CX Codex ★ 1,596repo stars carsxe carsxe is a Claude Code hook that loads the CarsXE API key at session start. The API provides vehicle data such as VIN details, market value, history, and OBD codes. CX Codex ★ 1,596repo stars wtfm wtfm generates illustrated end-user help articles from codebase files and renders screenshots locally from the actual interface code. CX Codex ★ 1,596repo stars vibestretch vibestretch is a Claude Code hook that prints a stretch or eye-rest prompt and plays a soft chime after the agent has kept you waiting. It runs on prompt submission, tool use, and agent stop. CX Codex ★ 1,596repo stars tree-ring-memory tree-ring-memory is a Claude Code hook that loads saved context when a session starts and checks memory when it ends. It also runs at subagent start and stop. CX Codex ★ 1,596repo stars tailtest tailtest detects files modified during an agent turn and triggers automated test writing and execution. Works across 8 languages with zero config. CX Codex ★ 1,596repo stars

More in the catalog

Project sponsors

Companies that keep this analytics open