expert-hook

expert-hook is an agent for Claude Code from gobing-ai/superskill. It costs 110 tokens per session (3,346 once invoked), scanned B, original, Apache-2.0.

A specialist for creating and checking hooks, which are automatic actions triggered by events in coding agents, across multiple platforms.

In plain words
What is it for?
Use it to validate hook configuration and plan or review hooks for agents such as Claude Code, Pi, Codex, and Gemini.
Why use it?
It helps reveal differences between platforms so hook configurations can be checked consistently.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: model in frontmatter; reads .claude/ paths; mentions subagents.

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 validate hook configuration and plan or review hooks for agents such as Claude Code, Pi, Codex, and Gemini.

Compare 6 agents 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.

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 expert-hook

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/gobing-ai/superskill/expert-hook"><img src="https://agentmods.dev/badge/agents/gobing-ai/superskill/expert-hook.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 110 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,346 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 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.00110 $0.03346
Opus 5.5 $0.00044 $0.01338
Sonnet 5.5 $0.00022 $0.00669
Haiku 4.5 $0.00011 $0.00335

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

Security

Grade B, and why

expert-hook 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 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.

Reads agent configuration directoriesmediumAgent snooping

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

- Config: `.claude/settings.json` (project) or `~/.claude/settings.json` (global)
plugins/cc/agents/expert-hook.md · 295 lines

How it starts

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

Expert Hook Agent

A thin specialist wrapper that delegates ALL multi-agent hook lifecycle operations to the cc:cc-hooks skill.

Role

You are an expert hook specialist that routes requests to the correct cc:cc-hooks operation.

Core principle: Delegate to cc:cc-hooks skill — do NOT implement hook logic directly.

The cc:cc-hooks skill provides hook authoring knowledge and patterns. Lifecycle operations (validate, evaluate) are executed via the superskill hook CLI. Hooks are authored by hand in hooks.json (there is no scaffold operation — task 0066 decision B). Read plugins/cc/skills/cc-hooks/references/cross-platform.md for the full event crosswalk and tool name mapping. Read plugins/cc/skills/cc-hooks/references/platform-limits.md for per-platform feature support.

Personas

Quality operations drive four Spur agent personas via the two-call seam. The CLI emits envelopes; personas score or rewrite offline; the CLI ingests results. The CLI never scores or generates inline.

Persona Role Input Output
Scorer Rubric judge — scores each dimension against its criterion Envelope JSON from evaluate --rubric --json { rubric_version, dimensions: { name: { score, note } } }
Author Rewriter — rewrites hook content per dimension from generation briefs Envelope JSON from evolve --propose-only --json ProposedChange[] with real proposed text + anchor_hash
Skeptic Refuter — checks proposal against the verbatim goal anchor for violations or omissions Proposal + verbatim original frontmatter + negative constraints { ok, violations[] }
Judge Tournament selector — pairwise comparison when multiple candidates exist Multiple candidate proposals + verbatim goal anchor Winning proposal ID

Goal-Anchor Verbatim Discipline

Pass the original frontmatter and negative constraints verbatim to the Skeptic and Judge — do not summarize, compact, or paraphrase. The CLI double-loop gate enforces via anchor_hash: if the anchor is stripped or altered, the hash won't match and the gate rejects the proposal. A paraphrased anchor defeats the gate; this is non-negotiable.

Read the full file on GitHub · 295 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 70b45c36d498
  2. 16d ago Changed b3f7700934c8
  3. 1mo ago Changed f0633c0d0fe2
  4. 1mo ago First seen · 295 lines · 110 tokens per session scan B 92e65d14d04f

Subscribe to this mod's changes

expert-hook is an agent published in the GitHub repository gobing-ai/superskill (5 stars, last pushed 8d ago), licensed Apache-2.0. It adds 110 tokens to every session and 3,346 once invoked, about $0.0004 per session on Opus 5.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 agents, from other repositories

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

Context7-Expert

Expert in latest library versions, best practices, and correct syntax using up-to-date documentation.

github/awesome-copilot · 22 tokens