manage-hooks

manage-hooks is a skill for Claude Code, Codex from khef-labs/khef-mac. It costs 57 tokens per session (1,458 once invoked), scanned B, original, no licence file.

A tool for creating, editing, and installing Claude Code hooks in the khef system. Hooks are actions that run when specified coding-agent events occur.

In plain words
What is it for?
Use it to add, create, update, or install hooks, including PreToolUse hooks.
Why use it?
It helps manage hook changes in one place instead of handling each hook manually.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Use it to add, create, update, or install hooks, including PreToolUse hooks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/khef-labs/khef-mac/manage-hooks
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add khef-labs/khef-mac --skill manage-hooks
Clone the repo
git clone --depth 1 https://github.com/khef-labs/khef-mac

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for manage-hooks

README.md
[![agentmods](https://agentmods.dev/badge/skills/khef-labs/khef-mac/manage-hooks/github.svg)](https://agentmods.dev/skills/khef-labs/khef-mac/manage-hooks)
Your own site
<a href="https://agentmods.dev/skills/khef-labs/khef-mac/manage-hooks"><img src="https://agentmods.dev/badge/skills/khef-labs/khef-mac/manage-hooks/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for manage-hooks

Your own site · 80×15
<a href="https://agentmods.dev/skills/khef-labs/khef-mac/manage-hooks"><img src="https://agentmods.dev/badge/skills/khef-labs/khef-mac/manage-hooks.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,458 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.01458
Opus 5 $0.00028 $0.00729
Sonnet 5 $0.00011 $0.00292
Haiku 4.5 $0.00006 $0.00146

Measured 9d ago against content hash f13628e7e233, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade B, and why

manage-hooks scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

All hooks live in `lib/utils/hooks/hooks.reference.json`. Never edit `~/.claude/settings.json` directly for hooks — always edit the reference file and install.
apps/api/lib/skills/manage-hooks/SKILL.md · 169 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 169 lines · 57 tokens per session scan B f13628e7e233

Subscribe to this mod's changes

manage-hooks is a skill published in the GitHub repository khef-labs/khef-mac (2 stars, last pushed 20d ago), with no licence file. It adds 57 tokens to every session and 1,458 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

foundry-hosted-agent-validation

Step-by-step process for validating a Python Foundry hosted agent sample (under python/samples/04-hosting/foundry-hosted-agents/) end to end — running it locally (native runtime and azd ai agent run) and after deploying it to an Azure AI Foundry project with azd. Use this when asked to validate a hosted agent sample.

microsoft/agent-framework · 82 tokens

python-feature-lifecycle

Guidance for package and feature lifecycle in the Agent Framework Python codebase, including stage meanings, feature-stage decorators, feature enums, and how to move APIs from one stage to the next.

microsoft/agent-framework · 43 tokens

python-development

Coding standards, conventions, and patterns for developing Python code in the Agent Framework repository. Use this when writing or modifying Python source files in the python/ directory.

microsoft/agent-framework · 35 tokens

foundry-config-setup

Resolve missing setup caused by a hardcoded Foundry project endpoint or model in a sample. Use when a sample fails because it uses a placeholder/hardcoded projectendpoint (for example "https://your-project.services.ai.azure.com") or a hardcoded model instead of reading them from the environment.

microsoft/agent-framework · 65 tokens

trigger-authoring-tasks

Covers writing backend Trigger.dev tasks with @trigger.dev/sdk: defining task() and schemaTask(), the run function and its ctx, retries, waits, queues and concurrency, idempotency keys, run metadata, logging, triggering other tasks (and the Result shape), scheduled/cron tasks, and the essentials of trigger.config.ts.…

triggerdotdev/trigger.dev · 115 tokens

memory

Retrieve relevant durable BB memories or save verified knowledge useful to future threads.

get-bb/bb · 16 tokens