From Skill & Agent Dev
Provides Python functions to run Claude models via the `claude` CLI binary, using Claude Code's built-in authentication without API keys. Supports sync, async, streaming, and JSON output.
How this skill is triggered — by the user, by Claude, or both
Slash command
/skill-dev:claude-cli-runnerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill when the user needs to run Claude models from Python code WITHOUT API keys — via the `claude` CLI binary that uses Claude Code's built-in authentication.
Use this skill when the user needs to run Claude models from Python code WITHOUT API keys — via the claude CLI binary that uses Claude Code's built-in authentication.
${WORKSPACE}/tools/claude_cli.py
import sys
sys.path.insert(0, "${WORKSPACE}/tools")
from claude_cli import claude, claude_async, claude_json, claude_stream, validate_response
# Simple call
result = claude("Fix spelling: Привет мр")
# With system prompt and model
result = claude(
"Review this code for bugs",
system="You are a senior developer",
model="claude-opus-4-6",
)
# Async
result = await claude_async("Translate to English: ...")
# JSON output
data = claude_json("List 3 colors as JSON array")
# Streaming
for chunk in claude_stream("Write a story"):
print(chunk, end="")
# Validate LLM response
ok, cleaned = validate_response(original_text, llm_response)
claude-opus-4-6 — most capableclaude-sonnet-4-5 — balanced (default)claude-haiku-4-5 — fastest, cheapestClaude CLI must be installed: npm install -g @anthropic-ai/claude-code
Or set CLAUDE_CLI_PATH env var to the binary path.
ssh your-server "which claude" # verify installation
ssh your-server "claude -p --model claude-sonnet-4-5 'Hello'" # test
npx claudepluginhub jhamidun/claude-code-config-pack --plugin skill-devProvides C# and .NET testing patterns using xUnit, FluentAssertions, NSubstitute, Testcontainers, and WebApplicationFactory for unit and integration tests.