Agent skill

Together SDK Patterns

by jeremylongshore in jeremylongshore/tons-of-skills-marketplace

Encapsulate Together AI SDK v2 behind a typed adapter with catalog-resolved models, bounded retries, streaming normalization, usage capture, and OpenAI-compatible migration seams.

MITAuto-check passedDatabases

Install Together SDK Patterns

skills CLI
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill together-sdk-patterns -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace together-sdk-patterns --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.curated/together-sdk-patterns .claude/skills/together-sdk-patterns && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
together-sdk-patterns
GitHub stars
2.8k
Token cost
~1k tokens
SKILL.md length
382 words
Files
2 (incl. references)
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

Encapsulate Together AI SDK v2 behind a typed adapter with catalog-resolved models, bounded retries, streaming normalization, usage capture, and OpenAI-compatible migration seams.

  • Works in 6 steps: Inventory direct Together and… → Define typed request/result/error… → Centralize base URL, timeouts, model… → …
  • Building a reusable Together client layer
  • SKILL.md covers Overview, Prerequisites, Tool Discipline and Current Contract, plus 7 more sections
  • Reaches api.together.ai; needs TOGETHER_API_KEY

What it does

Together SDK Patterns is an agent skill from jeremylongshore/tons-of-skills-marketplace. Encapsulate Together AI SDK v2 behind a typed adapter with catalog-resolved models, bounded retries, streaming normalization, usage capture, and OpenAI-compatible migration seams. Use when building a reusable Together client layer. Trigger with "Together SDK pattern", "Together client wrapper", or "OpenAI compatibility on Together".

Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/official-docs.md`). Compatibility notes: Designed for Claude Code; live calls require network access and a Together AI project key

It sits in Databases, covering Database schema design. It works with OpenAI and Together AI. The repository describes itself as: Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com. The licence is MIT.

When your agent uses it

  • Building a reusable Together client layer
  • With Together SDK pattern
  • Together client wrapper
  • OpenAI compatibility on Together

Example prompts

  • “Together SDK pattern”
  • “Together client wrapper”
  • “OpenAI compatibility on Together”
  • “/together-sdk-patterns”

Requirements

  • Python 3
  • A credential in TOGETHER_API_KEY
  • Compatibility (from SKILL.md): Designed for Claude Code; live calls require network access and a Together AI project key
  • Pre-approved tools (allowed-tools): Read, Glob, Grep, WebFetch, Write, Edit

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Inventory direct Together and OpenAI-compatible calls, consumed fields, and retry behavior.
  2. Define typed request/result/error interfaces owned by the application.
  3. Centralize base URL, timeouts, model policy, request bounds, and credential injection.
  4. Normalize full and streaming responses without discarding finish reason, usage, warnings, or request metadata.
  5. Retry only bounded transient classes with jitter; surface auth, billing, validation, and model errors immediately.
  6. Add fake-transport contract tests and one opt-in live compatibility probe.

What it can do on your machine

Read from SKILL.md and the folder at commit cfae287. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Glob
    • Grep
    • WebFetch
    • Write
    • Edit

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.together.ai

    Also links to:

    • docs.together.ai
    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • TOGETHER_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Designed for Claude Code; live calls require network access and a Together AI project key

    From compatibility in the SKILL.md frontmatter.

Context cost

Together SDK Patterns loads about 1k tokens when it runs, and up to ~1.8k if it reads all its reference files. Until then it costs about 89 tokens; SKILL.md has 382 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~89
When it runs · the whole SKILL.md, loaded when a task matches
~1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from jeremylongshore/tons-of-skills-marketplace at commit cfae287, republished under its MIT licence (© jeremylongshore). 382 words, ~1,005 tokens.

Download SKILL.mdSave it as .claude/skills/together-sdk-patterns/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
together-sdk-patterns
description
Encapsulate Together AI SDK v2 behind a typed adapter with catalog-resolved models, bounded retries, streaming normalization, usage capture, and OpenAI-compatible migration seams. Use when building a reusable Together client layer. Trigger with "Together SDK pattern", "Together client wrapper", or "OpenAI compatibility on Together".
allowed-tools
Read, Glob, Grep, WebFetch, Write, Edit
compatibility
Designed for Claude Code; live calls require network access and a Together AI project key
argument-hint
[repository-path] [python|typescript]
version
1.9.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
license
MIT
tags
saas, together-ai, sdk
model
inherit
effort
high

Together AI SDK Patterns

Overview

This skill creates an application-owned boundary around Together's native v2 client or OpenAI-compatible surface so provider changes do not leak through every caller.

Prerequisites

  • The repository's language, dependency manager, and existing client abstractions
  • Required capabilities such as chat, streaming, embeddings, batch, or fine-tuning
  • Latency, retry, token, and spend budgets
  • A policy for model selection and deprecation response

Tool Discipline

Use Read, Glob, and Grep to map existing provider calls and error handling. Use WebFetch for current SDK and API contracts. Use Write or Edit only to implement the approved adapter and focused tests.

Current Contract

  • Prefer the Together Python v2 client for Together-native features; v1 is maintenance-only.
  • OpenAI clients require both the Together project key and base_url="https://api.together.ai/v1".
  • Together model IDs use provider/model names; OpenAI-native model strings return 404.
  • Normalize streaming chunks defensively and capture both ordinary usage and nested reasoning/cached-token fields when present.

Authentication

Construct clients from runtime-injected TOGETHER_API_KEY. Keep the key out of adapter configuration objects that may be logged or serialized. REST and OpenAI-compatible clients send it as a Bearer token.

Instructions

  1. Inventory direct Together and OpenAI-compatible calls, consumed fields, and retry behavior.
  2. Define typed request/result/error interfaces owned by the application.
  3. Centralize base URL, timeouts, model policy, request bounds, and credential injection.
  4. Normalize full and streaming responses without discarding finish reason, usage, warnings, or request metadata.
  5. Retry only bounded transient classes with jitter; surface auth, billing, validation, and model errors immediately.
  6. Add fake-transport contract tests and one opt-in live compatibility probe.
Show full SKILL.md (128 more words)Show less

Approval Boundaries

Do not change the default model, retry amplification, or OpenAI-to-Together routing globally without latency, quality, and cost evidence plus a rollback.

Output

Return the adapter interface, runtime configuration contract, normalized result/error shapes, retry policy, model policy, and test evidence.

Error Handling

ConditionResponse
OpenAI model ID returns 404Resolve a Together model ID; do not rewrite the error as transient.
Stream chunk has no choicesSkip safely and continue until terminal evidence.
SDK major mismatchStop and apply the v2 migration contract before feature work.
Retry budget exhaustedReturn the last redacted status and retry metadata.

Examples

The example below shows the minimum redacted evidence expected from a successful invocation of this operator workflow.

text
adapter=typed; sdk=together-v2; model=catalog-resolved; retries=bounded; usage=normalized

Resources

© jeremylongshore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in skills/.curated/together-sdk-patterns of jeremylongshore/tons-of-skills-marketplace.

  • SKILL.md
  • references/official-docs.md

Open the folder on GitHubat commit cfae287

Compare with similar skills

Together SDK Patterns next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Together SDK Patterns compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Together SDK Patterns this skilljeremylongshore/tons-of-skills-marketplace2.8k—~1kAutomated safety check: PassMIT
Codebase Explorationgiancarloerra/SocratiCode3.3k1 repos~1.5kAutomated safety check: PassAGPL-3.0
Kiln Check Finetune DeprecationKiln-AI/Kiln5.2k—~1.9kAutomated safety check: NotesCustom licence
Extracting Structured DataGAIK-project/gaik-toolkit100—~3.2kAutomated safety check: PassMIT
Using Vector Databasesancoleman/ai-design-components525—~3.5kAutomated safety check: PassMIT
Together Fireworksericrisco/rsc-harness180—~3.3kAutomated safety check: PassMIT

Similar skills

  • Codebase Exploration

    giancarloerra/SocratiCode

    Explore and understand codebases using SocratiCode semantic search, dependency graphs, and context artifacts.

    3.3k GitHub starsUsed in 1 repo~1.5k tokens
    DatabasesAuto-check passed
  • Check Kiln's fine-tunable model list for deprecated or unsupported base models.

    5.2k GitHub stars~1.9k tokensUpdated today
    AI & LLM EngineeringAuto-check: notes
  • Extracting Structured Data

    GAIK-project/gaik-toolkit

    Extracts structured data — fields, tables, line items — out of documents into a validated schema using the gaik toolkit, and designs schemas that stay inside provider limits and produce checkable…

    100 GitHub stars~3.2k tokensUpdated yesterday
    Documents & OfficeAuto-check passed
  • Using Vector Databases

    ancoleman/ai-design-components

    Vector database implementation for AI/ML applications, semantic search, and RAG systems.

    525 GitHub stars~3.5k tokensUpdated 10 mo ago
    DatabasesAuto-check passed
  • Together Fireworks

    ericrisco/rsc-harness

    A skill your agent uses when calling open-weight LLMs on Together AI or Fireworks AI's OpenAI-compatible endpoints — baseurl plus namespaced model id, the cheapest model that clears the bar…

    180 GitHub stars~3.3k tokensUpdated today
    Backend & APIsAuto-check passed
  • Chroma Vector Database

    Orchestra-Research/AI-Research-SKILLs

    Shows how to store documents and embeddings in Chroma, query them by similarity with metadata filters, and persist them to disk for RAG and semantic search projects.

    13k GitHub starsUsed in 7 repos~2.3k tokens
    AI & LLM EngineeringAuto-check passed

More from jeremylongshore/tons-of-skills-marketplace

All 3,342 skills in this repo
  • Performing Security Code Review

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin.

    2.8k GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check: notes
  • Adapting Transfer Learning Models

    jeremylongshore/tons-of-skills-marketplace

    Build this skill automates the adaptation of pre-trained machine learning models using transfer learning techniques.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Agent Context Loader

    jeremylongshore/tons-of-skills-marketplace

    Execute proactive auto-loading: automatically detects and loads agents.md files.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Aggregating Performance Metrics

    jeremylongshore/tons-of-skills-marketplace

    Aggregate and centralize performance metrics from applications, systems, databases, caches, and services.

    2.8k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Analyzing Capacity Planning

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to analyze capacity requirements and plan for future growth.

    2.8k GitHub stars~947 tokensUpdated today
    Auto-check passed
  • Analyzing Database Indexes

    jeremylongshore/tons-of-skills-marketplace

    Process use when you need to work with database indexing. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~2k tokensUpdated today
    Auto-check passed

Questions about Together SDK Patterns

What does Together SDK Patterns do?

Encapsulate Together AI SDK v2 behind a typed adapter with catalog-resolved models, bounded retries, streaming normalization, usage capture, and OpenAI-compatible migration seams. Together SDK Patterns is an agent skill from jeremylongshore/tons-of-skills-marketplace. Encapsulate Together AI SDK v2 behind a typed adapter with catalog-resolved models, bounded retries, streaming normalization, usage capture, and OpenAI-compatible migration seams.

When should I use Together SDK Patterns?

Together SDK Patterns fits situations like: building a reusable Together client layer; with Together SDK pattern; together client wrapper; openAI compatibility on Together.

How do I install Together SDK Patterns in Claude Code?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill together-sdk-patterns -a claude-code`. Or copy the skill folder (skills/.curated/together-sdk-patterns in jeremylongshore/tons-of-skills-marketplace) into .claude/skills/together-sdk-patterns in your project. Claude Code loads it when a task matches its description.

How do I install Together SDK Patterns in Codex?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill together-sdk-patterns -a codex`. Or copy the skill folder (skills/.curated/together-sdk-patterns in jeremylongshore/tons-of-skills-marketplace) into .agents/skills/together-sdk-patterns in your project. Codex loads it when a task matches its description.

Can I use Together SDK Patterns in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill together-sdk-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/together-sdk-patterns, .gemini/skills/together-sdk-patterns, .github/skills/together-sdk-patterns and .opencode/skills/together-sdk-patterns in your project.

What does Together SDK Patterns need to run?

Going by SKILL.md and its folder, Together SDK Patterns needs credentials named TOGETHER_API_KEY. Our summary lists: Python 3; A credential in TOGETHER_API_KEY. Its frontmatter pre-approves these tools: Read, Glob, Grep, WebFetch, Write, Edit. Compatibility (from SKILL.md): Designed for Claude Code; live calls require network access and a Together AI project key.

Does Together SDK Patterns access the network?

SKILL.md names 3 domains. In commands or code: api.together.ai; the agent is likely to contact it when it follows the instructions. As links in the text: docs.together.ai and github.com. This is read from the text; nothing was executed.

Is Together SDK Patterns safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Together SDK Patterns use?

Together SDK Patterns is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Together SDK Patterns use?

About 1k tokens (SKILL.md is roughly 4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 758 tokens, read only when the agent opens those files.

What are the alternatives to Together SDK Patterns?

Skills that share tags, products or a category with Together SDK Patterns: Codebase Exploration (giancarloerra/SocratiCode, 3.3k stars), Kiln Check Finetune Deprecation (Kiln-AI/Kiln, 5.2k stars), Extracting Structured Data (GAIK-project/gaik-toolkit, 100 stars) and Using Vector Databases (ancoleman/ai-design-components, 525 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Together SDK Patterns?

jeremylongshore (a GitHub user) maintains it in jeremylongshore/tons-of-skills-marketplace, which has 2,827 GitHub stars. The repository holds 3,342 skills in this directory. The repository was last updated on October 10, 2026.

Source: jeremylongshore/tons-of-skills-marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.