Skip to content
Back to skills

Agent Hook Engineering

ASecurity

Author deterministic PreToolUse, UserPromptSubmit, PostToolUse, and Stop lifecycle hooks for Claude Code, Codex, Cursor, and Antigravity without clobbering existing hooks.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 30, 2026
ai-agentsshellrailsapi

Works with

  • claude code
  • cursor
  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned November 30, 2026

npx -y skills add RitvikChunamari/velomesh --skill agent-hook-engineering --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Agent Hook Engineering?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Agent Hook Engineering
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ritvikchunamari-agent-hook-engineering/badge)](https://www.skillsdirectory.com/skills/ritvikchunamari-agent-hook-engineering)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: agent-hook-engineering
description: Author deterministic PreToolUse, UserPromptSubmit, PostToolUse, and Stop lifecycle hooks for Claude Code, Codex, Cursor, and Antigravity without clobbering existing hooks.
---

# Agent Hook Engineering

Design deterministic guardrails across agentic harnesses (`PreToolUse`, `UserPromptSubmit`, `PostToolUse`, `Stop`).

## Standards
1. Parse stdin JSON defensively with bounded buffer size; emit valid harness-specific JSON even on edge inputs.
2. Merge hooks additively into `~/.claude/settings.json`, `~/.codex/hooks.json`, and `~/.cursor/hooks.json` without removing user hooks like `rtk hook` or `impeccable`.
3. Fail-closed for catastrophic shell/secret-exfiltration guards; advise non-destructively for optimization/lint hints.
4. Never log raw secrets, API keys, or OAuth tokens into telemetry or `additionalContext`.

Files in this skill

  • SKILL.md871 B
  • agents/openai.yaml327 B
  • assets/logo.svg489 B
  • assets/velomesh-icon-256.png10.9 KB
  • assets/velomesh-icon-64.png2.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.