Skip to content
Back to skills

Radin Setup Hooks

ASecurity

Wire codebase-memory-mcp into this repo when install.sh could not do it globally. Use for "set up hooks", "wire up codebase-memory-mcp", "enable the knowledge graph here", or when the graph's MCP tools are missing in a project.

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added August 30, 2026
ai-agentsbashgit

Works with

  • claude code
  • cli
  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 24, 2026

npx -y skills add shortcuts/radin --skill radin-setup-hooks --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Radin Setup Hooks?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Radin Setup Hooks
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shortcuts-radin-setup-hooks/badge)](https://www.skillsdirectory.com/skills/shortcuts-radin-setup-hooks)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: radin-setup-hooks
description: Wire codebase-memory-mcp into this repo when install.sh could not do it globally. Use for "set up hooks", "wire up codebase-memory-mcp", "enable the knowledge graph here", or when the graph's MCP tools are missing in a project.
---
# radin: Set Up Companion-Tool Hooks

`install.sh` normally wires codebase-memory-mcp globally: it runs upstream's
own configuration and restores whatever that write dropped. When it did that, **there is nothing for
this skill to do** — the graph works in every repo with no per-project step.

This skill is the fallback for two cases:

- A C compiler was missing at install time, so `radin-cbm-json` was never built
  and `install.sh` installed the binary only.
- The user ran `codebase-memory-mcp uninstall` but kept radin.

Check first with `RADIN_CLI doctor` and read its
`codebase-memory-mcp wiring (informational)` section. Both lines `OK` means
upstream's configuration already landed: say so and stop, unless the user
wants a per-repo `.mcp.json` entry anyway.

## Scope

Only `codebase-memory-mcp` needs wiring. `caveman` and `ponytail` register
their hooks globally at plugin-install time, and `rtk` is a CLI with no hook
or MCP wiring.

**Never run `codebase-memory-mcp install` yourself.** Its write replaces whole
hook arrays in `~/.claude`, deleting other tools' hooks. Only
`bash ~/.claude/.radin/lib/radin-cbm-config.sh install` may run it, because it
snapshots first and restores after. When the user wants the full wiring, run
that and report its `RESTORED`/`INTACT` lines as-is; it exits non-zero naming
`RADIN_CLI hooks all` as the fallback when it cannot. Otherwise use the
merge-only path below.

## Steps

1. Confirm the user is in the repo they want wired: run `git rev-parse
   --show-toplevel` and show the path. If it does not look right, ask.
2. Ask for explicit y/n confirmation, naming the two writes: "This adds a
   codebase-memory-mcp section to `~/.claude/CLAUDE.md` and an MCP server
   entry to `.mcp.json` in `<repo path>`. Anything already defined is left
   alone. Proceed?"
3. On yes:

   ```bash
   RADIN_CLI hooks all
   ```

4. On no: stop, write nothing.

## Report

Print the script's output as-is: one `ADDED` or `PRESENT` line per write. A
non-zero exit writes nothing and prints its own cause and remedy -- relay that
line, add nothing to it.

Then tell the user to restart Claude Code so the MCP server loads. The graph
indexes itself on first connection (`install.sh` sets `auto_index`); if a query
reports no project, ask the agent to index the project.

Files in this skill

  • SKILL.md2 KB
  • agents/openai.yaml137 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.