Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 80
  • 3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-inference

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install clade-model-inference in Claude Code

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 →

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.

clade-model-inference Install

Add to stack

Loading.