radin-setup-hooks

radin-setup-hooks is a skill for Claude Code, Codex from shortcuts/radin. It costs 59 tokens per session (512 once invoked), scanned A, original, MIT.

A per-project setup routine for connecting the code-review-graph companion tool to a repository. It previews changes to the project’s MCP configuration and instruction files before asking for confirmation.

In plain words
What is it for?
Use it after installation to verify the tool, identify the current repository, preview changes, and—with approval—add the needed MCP and project instructions.
Why use it?
Installing command-line tools globally does not automatically configure each repository that needs them.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Part of the radin plugin — 8 skills, 1 agent shipped together

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.

agentmods
npx agentmods add skills/shortcuts/radin/radin-setup-hooks
Any agent
npx skills add shortcuts/radin --skill radin-setup-hooks
Clone the repo
git clone --depth 1 https://github.com/shortcuts/radin

Made for: Claude Code, Codex.

Or install radin, the plugin that ships this one along with the rest of its 8 skills, 1 agent.

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 radin-setup-hooks

README.md
[![agentmods](https://agentmods.dev/badge/skills/shortcuts/radin/radin-setup-hooks.svg)](https://agentmods.dev/skills/shortcuts/radin/radin-setup-hooks)
Your own site
<a href="https://agentmods.dev/skills/shortcuts/radin/radin-setup-hooks"><img src="https://agentmods.dev/badge/skills/shortcuts/radin/radin-setup-hooks.svg" alt="Measured on agentmods" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 512 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00059 $0.00512
Opus 5 $0.00030 $0.00256
Sonnet 5 $0.00012 $0.00102
Haiku 4.5 $0.00006 $0.00051

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

Security

Grade A, and why

radin-setup-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 6d 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.

skills/radin-setup-hooks/SKILL.md · 28 lines

What it actually says

radin: Set Up Companion-Tool Hooks

install.sh installs companion tool binaries globally (rtk, code-review-graph, caveman). No per-repo config wiring. That config — MCP server registration, hooks, CLAUDE.md instructions — repo-scoped, needs setup once per project. Skill does that setup, for repo user currently in.

Scope

Only code-review-graph needs this step today. caveman = Claude Code plugin — hooks register globally at plugin-install time, nothing repo-scoped to do. rtk = CLI, no hook/MCP wiring. Radin adds more per-repo-wired companion tools later, extend this skill rather than write new one.

Steps

  1. Confirm code-review-graph installed: command -v code-review-graph. Missing: tell user run radin's install.sh first (or install themselves), stop — don't install it from this skill.
  2. Confirm user in repo they want wired (check git rev-parse --show-toplevel, show path). Doesn't look right: ask.
  3. Preview first: run code-review-graph install --platform claude-code --dry-run, show user exactly which files it will write/edit (typically .mcp.json and append to CLAUDE.md/AGENTS.md).
  4. Ask explicit y/n confirmation before writing anything — edits files in user's repo. State plainly: "This will write .mcp.json and append graph-tool instructions to CLAUDE.md in <repo path>. Proceed?"
  5. Yes: run code-review-graph install --platform claude-code -y.
  6. No: stop. Don't run any variant of install command.

Never pass --no-hooks or --no-instructions unless user specifically asks skip one — skill's whole point full wiring.

code-review-graph install idempotent per own contract, so existing config no problem — step 4's confirmation still applies. Touch no global ~/.claude/ state: install.sh owns that.

Files

What ships with it

1 file 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.

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. 6d ago First seen · 28 lines · 59 tokens per session scan A 79e07503e756

Subscribe to this mod's changes

radin-setup-hooks is a skill published in the GitHub repository shortcuts/radin (5 stars, last pushed 5d ago), licensed MIT. It adds 59 tokens to every session and 512 once invoked, about $0.0003 per session on Opus 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.