cc-hooks

cc-hooks is a skill for Claude Code, Codex from gobing-ai/superskill. It costs 71 tokens per session (3,770 once invoked), scanned A, original, Apache-2.0.

A system for defining coding-agent hooks once and deploying them to several agent tools. Hooks are actions that run when specified events occur during an agent session.

In plain words
What is it for?
Use it to create command, prompt, or web-request hooks for security checks, quality rules, loading context, or workflow automation across supported agents.
Why use it?
It avoids writing and maintaining separate event rules for each coding agent while preserving shared safety and workflow settings.

Skill for Claude CodeCodex

Written for Claude Code and Codex: ${CLAUDE_PLUGIN_ROOT} variable, but also agents/openai.yaml present. Also seen: mentions subagents; mentions Claude Code; mentions Codex.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the cc plugin — 8 skills, 17 commands, 5 agents, 1 hook shipped together , and of cc

Good fit Use it to create command, prompt, or web-request hooks for security checks, quality rules, loading context, or workflow automation across supported agents.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add gobing-ai/superskill
Claude Code
/plugin install cc

Made for: Claude Code, Codex.

Or install cc, the plugin that ships this one along with the rest of its 8 skills, 17 commands, 5 agents, 1 hook.

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 cc-hooks

README.md
[![agentmods](https://agentmods.dev/badge/skills/gobing-ai/superskill/cc-hooks/github.svg)](https://agentmods.dev/skills/gobing-ai/superskill/cc-hooks)
Your own site
<a href="https://agentmods.dev/skills/gobing-ai/superskill/cc-hooks"><img src="https://agentmods.dev/badge/skills/gobing-ai/superskill/cc-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 cc-hooks

Your own site · 80×15
<a href="https://agentmods.dev/skills/gobing-ai/superskill/cc-hooks"><img src="https://agentmods.dev/badge/skills/gobing-ai/superskill/cc-hooks.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,770 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original 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.00071 $0.03770
Opus 5.5 $0.00028 $0.01508
Sonnet 5.5 $0.00014 $0.00754
Haiku 4.5 $0.00007 $0.00377

Measured 14d ago against content hash c378ba99a9cb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cc-hooks scanned grade A with 0 findings 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 14d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (examples/load-context.sh, examples/validate-bash.sh, examples/validate-write.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/cc/skills/cc-hooks/SKILL.md · 278 lines

How it starts

The opening of the file, as written. The whole thing — 278 lines — stays where its author put it; the contents beside it link to each section on GitHub.

cc:cc-hooks — Multi-Agent Hook System

Author hooks once in the rulesync-canonical format, deploy to Claude Code, Codex, OpenCode, Pi, and Gemini CLI.

Overview

Hooks execute in response to specific events during a coding agent session. Use this skill when implementing hooks for security validation, quality enforcement, context loading, or workflow automation across multiple coding agents: author once in the canonical hooks.json (HookDefinitionSchema), deploy to 5+ agents.

Canonical Schema (HookDefinitionSchema)

Hooks are authored as a rulesync-canonical hooks.json in the .rulesync/ directory of a plugin. The canonical schema is rulesync's HookDefinitionSchema; this repo's parsed model of one entry lives in packages/core/src/quality/hook.ts:10:

{
  "hooks": {
    "<HookEvent>": [
      {
        "type": "command",            // "command" | "prompt" | "http"
        "command": "superskill hook run <plugin> <hook-id>", // portable PATH command (see below)
        "matcher": "Write|Edit",       // tool-name regex (control chars stripped)
        "timeout": 5000,               // ms; optional
        "failClosed": true,            // optional — block action on hook failure (Cursor)
        "loop_limit": 3,               // optional — prompt re-injection cap
        "name": "write-guard",         // optional
        "description": "Block dangerous writes" // optional
      }
    ]
  }
}

Field semantics:

  • type: "command" (deterministic, runs anywhere), "prompt" (Claude Code only — natural-language validation), "http" (webhook).
  • command / matcher / prompt: safeString — must not contain \n, \r, or \0 (they are embedded in generated code).
  • timeout: milliseconds before the hook is killed.
  • failClosed: when true, a hook failure (crash, timeout, invalid JSON) blocks the action instead of allowing it through. Default failOpen where unsupported.
  • loop_limit: cap on prompt re-injections; null means unlimited.

Read the full file on GitHub · 278 lines

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. 14d ago Changed c378ba99a9cb
  2. 16d ago Changed db6242b42ca2
  3. 1mo ago First seen · 278 lines · 71 tokens per session scan A 8135a7b190fc

Subscribe to this mod's changes

cc-hooks is a skill published in the GitHub repository gobing-ai/superskill (5 stars, last pushed 8d ago), licensed Apache-2.0. It adds 71 tokens to every session and 3,770 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. 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

agtx-review

Self-review completed work. Check for correctness, edge cases, and code quality. Write review to .agtx/review.md and stop.

fynnfluegge/agtx · 32 tokens

cmux-architecture

Skill "cmux-architecture" from manaflow-ai/cmux, covering cmux architecture, package architecture, layers, file organization and documentation.

manaflow-ai/cmux · 63 tokens

cmux-browser

End-user browser automation with cmux. Use when you need to open sites, inspect or interact with browser surfaces, wait for page state, and extract data without stealing focus.

manaflow-ai/cmux · 39 tokens

cmux-customization

Customize cmux for an end user, including terminal, browser, Markdown, diff, file preview, notes, HTML, and right-sidebar viewers. Use when changing cmux.json actions, custom commands, workspace layouts, plus-button behavior, surface tab bar buttons, Command Palette entries, Dock controls, sidebar and app settings…

manaflow-ai/cmux · 87 tokens

cmux-custom-sidebar

Build a custom cmux sidebar from a plain-language request. Use when the user asks for a custom sidebar, a sidebar that shows their workspaces/tabs/PRs/clock, a vibe-coded sidebar, or anything involving files in /.config/cmux/sidebars/. Covers authoring the interpreted SwiftUI-style file, enabling the beta flag…

manaflow-ai/cmux · 85 tokens

cmux-testing

Choose scoped cmux verification, add behavioral tests, and validate Swift test targets and wiring. Use when adding tests or deciding what local/CI evidence a change needs.

manaflow-ai/cmux · 37 tokens