Home / vasilyu1983 / ai-agents-public · frameworks/shared-skills/skills/agents-hooks/SKILL.md · GitHub

agents-hooks skillA

agents-hooks is agent-read markdown (skill) from vasilyu1983/ai-agents-public: Configures Claude Code hooks and Codex hooks.json/notify callbacks. Use when adding guardrails, preflight, audit trails, worktree automation, or budget enforcement..

Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.

What the file says

# Claude Code Hooks + Codex Notifications

Use this skill when hook behavior is the main concern: Claude lifecycle hooks, runtime preflight, guardrails, async verification, worktree lifecycle checks, subagent coordination, or Codex notification callbacks.

Claude and Codex are not equivalent here. Claude has a broad, stable hook system (31 events, re-verified against official docs 2026-08-15). Codex has two surfaces: the long-stable notification surface (`notify` + `tui.notifications`), and a newer lifecycle-hooks system (`hooks.json` with events including `SessionStart`, `UserPromptSubmit`, `SubagentStop`, `Stop`, `PreCompact`/`PostCompact` — see [developers.openai.com/codex/hooks](https://developers.openai.com/codex/hooks)). The Codex hooks system is less mature than Claude's and has known firing-reliability gaps (e.g. [codex#17532](https://github.com/openai/codex/issues/17532): repo-local `.codex/config.toml` hooks may not fire in interactive sessions). Prefer `notify` for anything that must be dependable; treat Codex `hooks.json` as usable-but-verify and confirm it fires on your runtime before relying on it.

## Quick Reference

| Need | Event / Approach |
|------|---------|
…

Read the whole file at its exact version.

How to install

Latest version
mdr add vasilyu1983/ai-agents-public/agents-hooks@v1.5
Exact content
mdr add vasilyu1983/ai-agents-public/agents-hooks@sha256:b622ca115f3e2611

Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_4li4y52vdfq2xlou.svg)](https://markdownregistry.com/a/art_4li4y52vdfq2xlou)

1 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
v1.5 latest2026-09-23 8dc5de4 25,565 BA view · diff
v1.52026-08-21 53f6cb7 24,956 BA view · diff
v1.52026-08-09 da9d28f 24,897 BA view

Audit of the latest version

A  17 of 17 checks passed. Deterministic, no model, same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (25565 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

vasilyu1983/ai-agents-public · 88 stars · license MIT · pushed 2026-09-23 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_4li4y52vdfq2xlou
GET https://markdownregistry.com/api/v1/resolve?ref=vasilyu1983/ai-agents-public/agents-hooks
GET https://markdownregistry.com/api/v1/blob/b622ca115f3e2611c0d382df4bbefa65e007b87bc1665a23710484c82aeff303

Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

More from vasilyu1983/ai-agents-public

AGENTS.md@frameworks/shared-skills agents
vasilyu1983/ai-agents-public · frameworks/shared-skills/AGENTS.md
git:20260923.8dc5de4 · audit A · 88 stars
agents-mcp skill
vasilyu1983/ai-agents-public · frameworks/shared-skills/skills/agents-mcp/SKILL.md · Configures and hardens MCP servers for Claude Code and Codex agents. Use when connecting databases, APIs, files, or…
v1.5 · audit A · 88 stars
agents-memory skill
vasilyu1983/ai-agents-public · frameworks/shared-skills/skills/agents-memory/SKILL.md · Manages AGENTS.md, CLAUDE.md, and scoped repo rules for Claude Code and Codex. Use when fixing stale memory, ignored…
v1.4 · audit A · 88 stars
agents-skills-feedback-loop skill
vasilyu1983/ai-agents-public · frameworks/shared-skills/skills/agents-skills-feedback-loop/SKILL.md · Adds per-skill learnings loops for dated patterns, mistakes, and domain facts. Use when wiring skill memory…
v1.1 · audit A · 88 stars
agents-skills skill
vasilyu1983/ai-agents-public · frameworks/shared-skills/skills/agents-skills/SKILL.md · Creates and audits agent skills with SKILL.md, references, scripts, and platform-scoped metadata. Use when creating…
v1.2 · audit A · 88 stars
agents-swarm-orchestration skill
vasilyu1983/ai-agents-public · frameworks/shared-skills/skills/agents-swarm-orchestration/SKILL.md · Coordinates multi-agent execution across subagents, teams, and workflows. Use when planning dependency-aware fan-out…
v1.6 · audit A · 88 stars
ai-agents skill
vasilyu1983/ai-agents-public · frameworks/shared-skills/skills/ai-agents/SKILL.md · AI agent architecture, graph and loop composition, protocol choice, evaluation, and observability. Use when scoping or…
v1.1 · audit A · 88 stars
ai-architecture-advisor skill
vasilyu1983/ai-agents-public · frameworks/shared-skills/skills/ai-architecture-advisor/SKILL.md · Chooses among AI/ML approaches: classical ML, LLM, RAG, fine-tuning, agents, multimodal, embeddings/recsys…
v1.7 · audit A · 88 stars
ai-coding-agents-command-runtime skill
vasilyu1983/ai-agents-public · frameworks/shared-skills/skills/ai-coding-agents-command-runtime/SKILL.md · Designs slash-command runtimes for coding-agent CLIs. Use when modeling command registries, lazy loading, aliases…
v1.1 · audit A · 88 stars
ai-coding-agents-execution-sandbox skill
vasilyu1983/ai-agents-public · frameworks/shared-skills/skills/ai-coding-agents-execution-sandbox/SKILL.md · Designs execution sandboxes for coding agents. Use when modeling process isolation, filesystem policy, network…
v1.1 · audit B · 88 stars
ai-coding-agents-observability-evals skill
vasilyu1983/ai-agents-public · frameworks/shared-skills/skills/ai-coding-agents-observability-evals/SKILL.md · Designs coding-agent observability and evals. Use when measuring traces, replay, checkpoint lineage, quality…
v1.2 · audit A · 88 stars
ai-coding-agents-permissions skill
vasilyu1983/ai-agents-public · frameworks/shared-skills/skills/ai-coding-agents-permissions/SKILL.md · Designs approval and permission systems for coding-agent runtimes. Use when modeling tool approvals, plan-mode…
v1.1 · audit A · 88 stars

Every file in vasilyu1983/ai-agents-public

Browse by kind, by grade A, or by owner.