nddev-archive/nddev-codex-app/codex-hook-creator

Claude Code and agent skill by nddev-archive/nddev-codex-app

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Create or revise native Codex hooks.json events and command handlers with strict inputs, timeouts, portability, and failure behavior. Use when automating lifecycle checks around Codex sessions or tool calls.

Install

npx vskill@latest install nddev-archive/nddev-codex-app/codex-hook-creator

SKILL.md

The same SKILL.md was published earlier as nddev-archive/nddev-codex-app/codex-hook-creator.

Codex Hook Creator

Resolve every ../../scripts and ../../references path relative to this SKILL.md directory, never the caller working directory.

Create the smallest hook that enforces a real lifecycle invariant without competing with another owner.

Workflow

  1. Define the event, matcher, input contract, intended side effect, timeout, and failure policy.
  2. Read ../../references/codex-artifact-contracts.md for supported hook events and schema.
  3. Choose the active-config or plugin-default surface. For a plugin, create the handler first, then generate the interoperable default with a stable PLUGIN_ROOT reference:

python3 ../../scripts/create_codex_artifact.py hook --help python3 ../../scripts/create_codex_artifact.py hook --output hooks --name lifecycle-hooks --description "Run bounded lifecycle checks" --command 'sh ${PLUGIN_ROOT}/hooks/session-start.sh'

  1. Implement handlers as separate deterministic scripts when logic exceeds a simple command.
  2. Resolve plugin-local files through PLUGIN_ROOT. For project hooks, resolve from the Git root because commands execute from the session CWD. Quote arguments, bound execution time, and write diagnostics to stderr.
  3. Never embed secrets or silently swallow failures. Ensure only one hook owns an ordered lifecycle such as Stop.
  4. Validate:

python3 ../../scripts/check_codex_artifact.py hook hooks/hooks.json

  1. Exercise valid input, malformed input, handler failure, and timeout in an isolated environment.

Quality bar

  • Events and matchers are supported and as narrow as possible.
  • Commands use portable entry points and referenced files exist.
  • Hook output is machine-readable where required and does not corrupt protocol streams.
  • Side effects are documented, idempotent where possible, and never touch unrelated live state.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/nddev-archive/nddev-codex-app/codex-hook-creator/badge)](https://verified-skill.com/skills/nddev-archive/nddev-codex-app/codex-hook-creator)

Something wrong with this skill or its page? Tell us.