claude-agent-ruby
Installation
SKILL.md
Claude Agent Ruby SDK
Overview
Use this skill to build or refactor Ruby integrations with Claude Code via claude-agent-sdk, favoring the gem's README and types for exact APIs.
Decision Guide
- Choose
ClaudeAgentSDK.queryfor one-shot queries or streaming input. Internally uses the control protocol (streaming mode) since v0.7.0. - Choose
ClaudeAgentSDK::Clientfor multi-turn sessions, hooks, permission callbacks, or dynamic model switching; wrap inAsync do ... end.wait. - Choose SDK MCP servers (
create_tool,create_sdk_mcp_server) for in-process tools; choose external MCP configs for subprocess/HTTP servers.