Agent skill · AI & Agents

llm-integration

Guide for using LLM utilities in speedy_utils, including memoized OpenAI clients and chat format transformations.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill llm-integration --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 4 KB
Bundled scripts: none
Path: skills/ai-llm/llm-integration/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# LLM Integration Guide This skill provides comprehensive guidance for using the LLM utilities in `speedy_utils`. ## When to Use This Skill Use this skill when you need to: - Make OpenAI API calls with automatic caching (memoization) to save costs and time. - Transform chat messages between different formats (ChatML, ShareGPT, Text). - Prepare prompts for local LLM inference. ## Prerequisites - `speedy_utils` installed. - `openai` package installed for API clients. ## Core Capabilities ### Memoized OpenAI Clients (`MOpenAI`, `MAsyncOpenAI`) - Drop-in replacements for `OpenAI` and `AsyncOpenAI`. - Automatically caches `post` (chat completion) requests. - Uses `speedy_utils` caching backend (disk/memory). - Configurable per-instance caching. ### Chat Format Transformation (`transform_messages`) - Converts between: - `chatml`: List of `{"role": "...", "content": "..."}` dicts. - `sharegpt`: Dict with `{"conversations": [{"from": "...", "value": "..."}]}`. - `text`: String with `<|im_start|>` tokens. - `simulated_chat`: Human/AI transcript format. - Supports applying tokenizer templates. ## Usage Examples ### Example 1: Memoized OpenAI Call Make repeated calls without hitting the API t

What's inside
Steps it walks through
  1. When to Use This Skill
  2. Prerequisites
  3. Core Capabilities
  4. Memoized OpenAI Clients (MOpenAI, MAsyncOpenAI)
  5. Chat Format Transformation (transformmessages)
  6. Usage Examples
  7. Example 1: Memoized OpenAI Call
  8. Example 2: Async Memoized Call
  9. Example 3: Transforming Chat Formats
  10. Guidelines
  11. Limitations
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the llm-integration skill do?

Guide for using LLM utilities in speedy_utils, including memoized OpenAI clients and chat format transformations.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill llm-integration --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going