llm-integration
Guide for using LLM utilities in speedy_utils, including memoized OpenAI clients and chat format transformations.
npx skills add majiayu000/claude-skill-registry --skill llm-integration --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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
- When to Use This Skill
- Prerequisites
- Core Capabilities
- Memoized OpenAI Clients (MOpenAI, MAsyncOpenAI)
- Chat Format Transformation (transformmessages)
- Usage Examples
- Example 1: Memoized OpenAI Call
- Example 2: Async Memoized Call
- Example 3: Transforming Chat Formats
- Guidelines
- Limitations
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.
