# Radin Setup Hooks

> Wire up per-repo hooks/MCP config for radin's companion tools (code-review-graph). Use for "set up hooks", "wire up code-review-graph", "enable the knowledge graph here", or right after install.sh in a new project.

- **Type:** Skill
- **Install:** `agentstack add skill-shortcuts-radin-radin-setup-hooks`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [shortcuts](https://agentstack.voostack.com/s/shortcuts)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [shortcuts](https://github.com/shortcuts)
- **Source:** https://github.com/shortcuts/radin/tree/main/skills/radin-setup-hooks

## Install

```sh
agentstack add skill-shortcuts-radin-radin-setup-hooks
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# radin: Set Up Companion-Tool Hooks

`install.sh` installs companion tool *binaries* globally (rtk,
code-review-graph, caveman). It does not wire per-repo config. That config
(MCP server registration, hooks, CLAUDE.md instructions) is repo-scoped and
needs setup once per project. This skill does that setup, for the repo the
user is currently in.

## Scope

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

## Steps

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

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

## Non-goals

- Don't touch global `~/.claude/` state — that's `install.sh`'s job,
  already done.
- Don't run this against a repo the user didn't ask about.
- Don't silently re-run if config already exists. `code-review-graph
  install` is safe to re-run (idempotent, per its own contract), but still
  confirm with the user first, per step 4.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [shortcuts](https://github.com/shortcuts)
- **Source:** [shortcuts/radin](https://github.com/shortcuts/radin)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-shortcuts-radin-radin-setup-hooks
- Seller: https://agentstack.voostack.com/s/shortcuts
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
