clade-model-inference
Skill by jeremylongshore
Shows how to stream Claude responses, use system prompts, send images and get structured JSON output with the Anthropic Messages API. Written for developers building Claude features in Claude Code.
Install clade-model-inference
Built from the published package, never by AI.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/clade-model-inference ~/.claude/skills/clade-model-inferenceRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/clade-model-inference ~/.gemini/antigravity-cli/skills/clade-model-inferenceAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install clade-model-inference in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill is a guide to streaming and advanced patterns in the Anthropic Messages API. It covers streaming responses in TypeScript and Python, using the system parameter, sending base64 images for vision, and asking Claude for JSON output. It also lists common errors, such as overloaded and rate limit responses, and image limits.
Each step includes a code sample that uses client.messages.create or client.messages.stream. The skill lists the streaming event types and key request parameters, including model, max_tokens, temperature and stop_sequences. It is aimed at developers who have already completed the clade-install-auth setup and want to add Claude to their own code.
Written from the project's SKILL.md and checked against it.
What it can do
- Streaming responsesStreams Claude output with client.messages.stream and prints text deltas as they arrive.
- System promptsSets Claude's behavior or persona with the system parameter.
- VisionSends base64-encoded PNG, JPEG, GIF or WebP images with a text question.
- Structured JSON outputAsks Claude to reply with JSON only and parses the returned text.
- Python streamingStreams Claude responses in Python using the anthropic client.
- Streaming event referenceLists the event types, from message_start to message_stop.
- Error handling referenceMaps overloaded, rate limit and invalid request errors to fixes.
What you need
- Completed clade-install-auth setup
- Claude Code
- Node.js with npm
- Python for the Python example
Try asking
- Stream a Claude response to my terminal as it is generated.
- Send this screenshot to Claude and ask it to describe the image.
- Ask Claude to return a JSON sentiment summary for this review.
Good to know
- Images must be PNG, JPEG, GIF or WebP, up to 5MB each.
- No more than 20 images per request.
- The JSON output depends on a system prompt instruction, not a enforced schema.
- Overloaded and rate limit errors need retries or waiting, as described in the error table.
Security check
B- Allowed to use Write, Edit without limitsIn
SKILL.md
Checked automatically: skills/.curated/clade-model-inference/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadWriteEditBash(npm:*)Grep
-
SKILL.md5 KB -
references/one-pager.md2 KB
Alternatives to clade-model-inference
All alternatives →Explains how to set up and verify Zoom webhooks for event-driven workflows. Covers signature checks, event subscriptions, delivery handling, retries and event-type selection for developers.
Posts text, images and videos to Weibo, and publishes headline articles from Markdown files. It works through a real Chrome browser over CDP. The scripts only fill in the content, and the user reviews and publishes manually.
Adds another phone number to an existing Dial channel in NanoClaw, so one install can answer SMS and AI voice calls on several numbers. Intended for operators who already run Dial and want a second or third line.
Explains how to set up and use Zoom WebSockets for persistent, low-latency Zoom event streams. Intended for workflows where WebSockets are preferred over webhooks.
Adds personal WeChat support to NanoClaw through Tencent's official iLink Bot API. It uses long-polling and QR code login, so no public webhook URL is needed. It is for NanoClaw users who want a personal WeChat bot channel.
Guides AI assistants through the bundled Zoom MCP connectors for meetings, recordings, meeting assets and transcripts. Intended for planning or troubleshooting tool-based Zoom access after routing to an MCP workflow.
Compare with setup-zoom-webhooks, baoyu-post-to-weibo or add-dial-number
clade-model-inference: common questions
What API does this skill use?
The source says the Messages API is the only inference endpoint. Every Claude interaction goes through client.messages.create().
Which image formats does vision support?
The source lists PNG, JPEG, GIF and WebP. Each image must be no larger than 5MB, with a maximum of 20 images per request.
How does structured output work?
The example puts a JSON schema in the system prompt, asks for valid JSON only, and then parses the text of the first content block with JSON.parse.
How do I install clade-model-inference?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is clade-model-inference free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is clade-model-inference safe to use?
It scores 80 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.
What are alternatives to clade-model-inference?
Similar skills: setup-zoom-webhooks, baoyu-post-to-weibo, add-dial-number, setup-zoom-websockets.
