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.
/plugin marketplace add gobing-ai/superskill/plugin install ccWrote 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.
[](https://agentmods.dev/skills/gobing-ai/superskill/cc-hooks)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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: whentrue, a hook failure (crash, timeout, invalid JSON) blocks the action instead of allowing it through. DefaultfailOpenwhere unsupported.loop_limit: cap on prompt re-injections;nullmeans unlimited.
What ships with it
10 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- agents/openai.yaml 104 B
- examples/load-context.sh 2.0 KB runs code
- examples/validate-bash.sh 1.8 KB runs code
- examples/validate-write.sh 3.1 KB runs code
- metadata.openclaw 286 B
- references/advanced.md 12 KB
- references/cross-platform.md 7.4 KB
- references/migration.md 6.9 KB
- references/patterns.md 9.7 KB
- references/platform-limits.md 7.9 KB
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.
- 14d ago Changed c378ba99a9cb
- 16d ago Changed db6242b42ca2
- 1mo ago First seen · 278 lines · 71 tokens per session scan A 8135a7b190fc
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.
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.
cmux-architecture
Skill "cmux-architecture" from manaflow-ai/cmux, covering cmux architecture, package architecture, layers, file organization and documentation.
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.
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…
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…
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.