Agent Skills
Sarvam Skills is a set of Agent Skills that teach AI coding assistants the parts of Sarvam’s SDKs they’re most likely to get wrong: method names that break convention, parameters that silently fail instead of erroring, and response fields that behave unexpectedly. Install them once and any assistant that supports the Agent Skills spec (Claude Code, Cursor, Windsurf) reads them automatically before writing Sarvam-related code.
Why skills exist
An assistant’s training data goes stale, and Sarvam’s SDK has a few patterns that don’t match what a model expects from an OpenAI-shaped client:
- Method names that differ from convention: chat completions are
client.chat.completions(...), notclient.chat.completions.create(...). - Parameters that silently fail:
output_scriptis ignored onsarvam-translate, and the request still returns 200. - Response quirks:
contentcan beNonewhen reasoning consumes the token budget before generating output.
Each skill is a short SKILL.md covering only these corrections, with Python and JavaScript/TypeScript snippets. For everything else (full parameter tables, voice/language catalogs, rate limits), skills link out to llms.txt, which stays current automatically.
Available skills
Install
Then set up the SDK as usual:
Skills vs. the MCP server vs. llms.txt
All three get Sarvam knowledge in front of an assistant; pick based on when you want that to happen:
They’re complementary: a skill stops an assistant from writing client.chat.completions.create(...), while the MCP server or llms.txt supply the parameter tables and docs a skill deliberately leaves out.