Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By christopherkaraniv0.2.22Apache-2.0
Lets Claude Code check commands against ryk policy, run red-team fixtures and replay sessions.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
ryk, safety-hooks, policy-enforcement, red-team, session-replay, audit-log, command-guard, ai-agents ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
ryk safety hooks and skills for Claude Code.
This plugin adds ryk-native skills and lifecycle hooks to Claude Code. It lets Claude Code call the ryk CLI for policy checks, red-team fixtures, session replay, and runtime safety decisions without duplicating policy logic.
The plugin is a thin integration layer. The ryk CLI remains the source of truth for all policy decisions.
./zig-out/bin/ryk from the repo)Build ryk:
./scripts/zig build
Install the plugin locally in Claude Code (method depends on Claude Code version; consult Claude Code docs for the latest plugin loading mechanism).
Verify the plugin is recognized:
ryk plugin doctor claude
If your Claude Code version supports repo-local marketplace files, see integrations/claude-marketplace/ for a documented example catalog. The exact marketplace schema depends on the Claude Code version you are using.
Run the ryk plugin doctor:
ryk plugin doctor claude
Expected output sections:
| Skill | Purpose |
|---|---|
doctor | Check ryk installation, policy, and plugin readiness |
init | Create or repair an ryk policy for the current repo |
protect | Explain how to run Claude Code under ryk protection |
redteam | Run deterministic red-team fixtures |
replay | Show and explain the latest ryk session replay |
Skills are invoked as /ryk:doctor, /ryk:init, /ryk:protect, /ryk:redteam, /ryk:replay depending on the Claude Code plugin namespace configuration.
The plugin registers lifecycle hooks that call ryk hook claude <event>:
| Event | When it fires |
|---|---|
SessionStart | At the start of a Claude Code session |
UserPromptSubmit | When a user submits a prompt |
PreToolUse | Before Claude Code invokes a tool |
PermissionRequest | When Claude Code requests user permission |
PostToolUse | After Claude Code finishes using a tool |
SessionEnd | When the session ends |
Each hook sends a JSON payload to ryk hook claude <event> via stdin and reads a JSON decision from stdout. The hook stdout remains valid for Claude Code parsing. Human-readable logs go to stderr.
Example:
echo '{"version":1,"host":"claude","event":"PreToolUse","payload":{"tool":"shell","command":"git status"}}' \
| ryk hook claude PreToolUse
ryk redteam --ci
ryk replay --session last --verify
Remove the plugin from Claude Code using your Claude Code plugin management commands. This plugin does not mutate host configuration, so uninstalling is safe.
ryk run -- <claude-code-command>.ryk run -- <claude-code-command> wrapper may record only the fixed anonymous CLI metadata described in ../../docs/telemetry.md.This plugin does not add MCP server behavior.
ryk returns host-actionable decisions on hook stdout. Claude Code interprets them:
| ryk | Expected host behavior |
|---|---|
allow | Proceed |
block | Deny the tool / permission |
leftover unused policy ask | allow from ryk hook when attended; deny when unattended / --ci. A leaked ask after rewrite is fail-closed deny. Explicit block stays deny. |
warn | Advisory; do not silently equate to hard deny unless policy/CI requires it |
Unattended (ryk hook ... --ci, RYK_UNATTENDED, CI) hardens leftover unused policy ask → block. Attended leftover is rewritten to allow by ryk hook.
7-day copy clicks
Claude Code installs this plugin but refuses to load it
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
Checked against Claude Code 2.1.332. The listing below is what the repository ships; Claude Code doesn't load it as published.
Plugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.