/railgun:railgunfrom railgun
Manage Railgun security policies - lint config, test tool inputs, view policy
Ships in railgun. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Railgun protects your Claude Code sessions by intercepting tool calls and blocking:
rm -rf /, fork bombs, disk writes.env, .ssh/, *.pem, credentials filesValidate your railgun.toml configuration file:
# Find and run the appropriate binary
BINARY="${CLAUDE_PLUGIN_ROOT}/bin/rg-$(uname -s | tr '[:upper:]' '[:lower:]')-$(uname -m | sed 's/x86_64/x64/' | sed 's/aarch64/arm64/')"
"$BINARY" lint --config ./railgun.toml
Test how a specific tool input would be evaluated by the policy:
# Test a Bash command
echo '{"tool_name":"Bash","tool_input":{"command":"ls -la"}}' | "$BINARY" hook --config ./railgun.toml
# Test a file read
echo '{"tool_name":"Read","tool_input":{"file_path":"./src/main.rs"}}' | "$BINARY" hook --config ./railgun.toml
Exit code 0 = allowed, exit code 2 = blocked.
Copy the example configuration to customize:
cp "${CLAUDE_PLUGIN_ROOT}/railgun.example.toml" ./railgun.toml
Railgun looks for configuration in this order:
./railgun.toml (project-level)~/.config/railgun/railgun.toml (user-level)If Railgun blocks something you need:
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (douglance/railgun) — no native marketplace selected
npx claudepluginhub p/douglance-railgun