/crowdin:crowdin-api-clientfrom Crowdin Skills
Guides implementation and debugging of @crowdin/crowdin-api-client calls: endpoint selection, request/response typing, pagination, uploads, retries, timeouts, and CrowdinError handling.
Ships in Crowdin Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill when touching Crowdin API integration code in any project that depends on @crowdin/crowdin-api-client.
Core principle: verify local client typings first, then implement with strict model types and correct response envelope handling.
@crowdin/crowdin-api-client.ResponseList vs ResponseObject.Do not use this skill for unrelated infra-only changes.
node_modules/@crowdin/crowdin-api-client/out/<module>/index.d.ts.ResponseList<T> or ResponseObject<T>.Do not code from memory when typings and docs disagree.
| Scenario | Preferred Pattern |
|---|---|
| Multi-module flow | new Client(credentials, options) and destructure needed APIs |
| Single narrow flow | Direct module API class is acceptable |
| Full collection reads | .withFetchAll() |
| Transient failures | retryConfig |
| Bounded request duration | { httpRequestTimeout: 60_000 } |
| Uploads | uploadStorageApi.addStorage -> sourceFilesApi.createFile |
| Long-running operations (builds, pre-translation, imports, exports, reports) | Poll the matching check...Status method with a delay; stop on finished, failed or canceled — recipes |
| Error branching | CrowdinValidationError before CrowdinError |
import { Client, Credentials } from '@crowdin/crowdin-api-client';
const credentials: Credentials = {
token: process.env.CROWDIN_PERSONAL_TOKEN!,
organization: process.env.CROWDIN_ORGANIZATION, // Crowdin Enterprise only
};
const client = new Client(credentials);
const listResponse = await client.tasksApi.withFetchAll().listTasks(projectId, options);
const tasks = listResponse.data.map((entry) => entry.data); // ResponseList<T>
const createResponse = await client.tasksApi.addTask(projectId, request);
const task = createResponse.data; // ResponseObject<T>
const request: TasksModel.CreateTaskRequest = {
title: 'My Task',
languageId: 'de',
type: 0,
fileIds: [12],
};
import { CrowdinError, CrowdinValidationError } from '@crowdin/crowdin-api-client';
try {
// API call
} catch (error) {
if (error instanceof CrowdinValidationError) throw error;
if (error instanceof CrowdinError) throw error;
throw error;
}
| Mistake | Fix |
|---|---|
| Guessing endpoint methods from memory | Validate in local index.d.ts first |
| Treating list response as object response | Check ResponseList<T> vs ResponseObject<T> and map accordingly |
| Weakening or bypassing model typing | Use client *Model types in service signatures and fixtures |
| Manual pagination loops by default | Prefer .withFetchAll() unless custom batching is required |
Uploading file directly to createFile | Create storage first, then pass storageId |
| Catching all errors as generic | Branch CrowdinValidationError and CrowdinError explicitly |
Polling a status endpoint in a tight loop, or only until finished | Sleep between checks and treat failed and canceled as terminal — see recipes |
| Composing a multi-step flow from memory | Start from the matching recipe in references/recipes.md |
After changing API-client usage:
Reference docs: Crowdin API Client modules · API recipes
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub crowdin/skills --plugin crowdin16 skills in this plugin
/context-extractionWrites translator context (`ai_context`) for Crowdin strings - downloads them with `crowdin context`, fills the JSONL file, uploads it back. Use when enriching a Crowdin project's strings context, when a Crowdin JSONL context file needs its ai_context filled, or when translators guess at ambiguous strings for lack of context./create-appBuild a Crowdin app end to end and leave the user with a published app they can click - scaffold it with @crowdin/serverless-apps-cli, write the UI with @crowdin/serverless-apps-sdk, publish it into their Crowdin or Crowdin Enterprise organization, and open it for them. Reach for this whenever someone wants something of their own inside the Crowdin UI - a panel in the translation editor, a tool or report in a project, a page in the organization menu, a dashboard over their projects - or something that runs by itself: an MT engine, an event, a schedule - and also when they describe a localization chore they are tired of doing by hand. Covers phrasings like "create a Crowdin app", "add a tool to my Crowdin project", a bare "/create-app", and cases where the word "app" is never said. Also use it when a serverless Crowdin app already exists in the working directory and needs another module, a manifest change, or a republish. Not for the separate Crowdin CLI that syncs sources and translations through crowdin.yml./croqlHelps write, fix, and optimize Crowdin CroQL expressions for strings, translations, TM segments, and glossary terms. Use whenever the user mentions CroQL, Crowdin filters, advanced editor filtering, "where" conditions for localization data, or API queries with a `croql` parameter, even if they do not explicitly ask for query syntax help./crowdin-cliGuides correct usage of Crowdin CLI - the `crowdin` command that syncs localization files between a local project and Crowdin. Use whenever the user runs, scripts, or debugs `crowdin` commands, authorizes the CLI, creates or edits a crowdin.yml configuration, uploads sources, downloads translations, checks translation status, auto-translates a project, wires localization into CI/CD, or migrates scripts from CLI v4 to v5 - even if they just say "sync translations" or "push strings to Crowdin" without naming the CLI./feedbackDrafts feedback about Crowdin for the Crowdin team - the skills in this plugin, the Crowdin MCP server, the Crowdin CLI, the Crowdin API or the product - and sends it as a GitHub issue in crowdin/skills only when the user explicitly asks. Use when the user asks to report or file something about Crowdin; after a Crowdin skill instruction, CLI command, MCP tool call or API call failed reproducibly and was just fixed or given up on; when the user is clearly frustrated with a Crowdin component; or when a Crowdin capability the user expected does not exist and blocked the task. Feedback about the agent itself belongs to the agent's own feedback mechanism./generate-screenshotsCaptures screenshots of a running app and uploads them to Crowdin as visual context tagged to the strings they show. Use when someone wants to add screenshots to a Crowdin project, show translators where a string appears in the UI, find which strings still have no screenshot, or update the screenshots after a release - including bare phrasings like "translators can't see where this string is used". Not for `crowdin screenshot` syntax alone (crowdin-cli), textual string context or `ai_context` (context-extraction), or the full internationalize-and-connect journey (i18n-setup, which delegates here).Other plugins' skills for the same job