/anima-pack:anima-rate-limits [figma-workload]from anima-pack
Implements rate limiting for Anima API code generation requests, handling Figma rate limit signals and generation quotas for batch component generation.
Ships in anima-pack. 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.
Handle Figma rate limits from the current SDK's structured callback and treat any Anima generation quota as account-specific until the provider or agreement says otherwise. Never encode an invented requests-per-minute or concurrency allowance.
| Surface | Signal | Required action |
|---|---|---|
FigmaRestApi.onRateLimited | retryAfter, figmaPlanTier, figmaRateLimitType | Retry only inside a bounded elapsed-time budget |
figmaRateLimitMaxWait | 1–180 seconds; default 60 | Set explicitly for the request's latency budget |
| Anima generation | Returned error/progress state and account contract | Stop or queue; do not infer a numeric quota |
ANIMA_TOKEN, FIGMA_TOKEN, and FIGMA_FILE_KEY in the runtime secret manager or injected environment, and verify that the token has only the scopes required for the selected file. Never put tokens in source, fixtures, logs, generated receipts, or retry payloads.// src/anima/client.ts
import { Anima, FigmaRestApi } from '@animaapp/anima-sdk';
const figmaRestApi = new FigmaRestApi({
defaultOptions: {
token: process.env.FIGMA_TOKEN!,
onRateLimited: async ({ retryAfter, figmaPlanTier, figmaRateLimitType }) => {
console.warn({ retryAfter, figmaPlanTier, figmaRateLimitType });
return retryAfter > 0 && retryAfter <= 5; // Repository latency budget.
},
},
});
export const anima = new Anima({
auth: { token: process.env.ANIMA_TOKEN! },
figmaRestApi,
});
const result = await anima.generateCode({
fileKey: process.env.FIGMA_FILE_KEY!,
nodesId: ['1:2'],
figmaRateLimitMaxWait: 5,
settings: { framework: 'react', language: 'typescript', styling: 'tailwind' },
});
console.log({ fileCount: Object.keys(result.files).length, sessionId: result.sessionId });
FigmaRestApi own Figma retry decisions. Do not add a second uncoordinated retry loop around the same request.For a sandbox batch, keep the work bounded and make the outcome auditable without exposing design data:
const nodeIds = ['synthetic-card', 'synthetic-button'];
const receipt = {
batchId: 'sandbox-2026-01-15-a',
requested: nodeIds.length,
succeeded: 0,
failed: 0,
contactsExported: 0,
};
for (const nodeId of nodeIds) {
try {
await anima.generateCode({ fileKey: process.env.FIGMA_FILE_KEY!, nodesId: [nodeId], figmaRateLimitMaxWait: 5, settings });
receipt.succeeded++;
} catch (error) {
receipt.failed++;
// Store only a redacted status and node fingerprint; never serialize `error` or source.
}
}
console.log(JSON.stringify({ ...receipt, tokenPresent: Boolean(process.env.ANIMA_TOKEN) }));
An acceptable completion receipt is requested=2; succeeded=2; failed=0; contacts_exported=0 with the sandbox ID and limiter settings recorded separately. A production batch should use the same controls, a reviewed allowlist, and an owner-approved change record before increasing concurrency.
Use Read and Grep to inspect the existing integration and generated diff before changing anything. Use Write or Edit only inside the approved generated-code, test, or configuration paths. Use the declared Bash commands only for the explicit install, validation, or diagnostic steps in this workflow; never print tokens, source designs, generated source, or private website captures.
What SKILL.md sets; muted values are Claude Code's defaults
inherithighThree short reads, in order
18 skills in this plugin
/anima-ci-integrationConfigure CI/CD pipeline for automated Figma-to-code generation with Anima.
Use when automating design-to-code in GitHub Actions, setting up PR-based
component generation, or integrating Anima into design handoff workflows.
Trigger with: "anima CI", "anima GitHub Actions", "anima automated generation".
/anima-common-errorsDiagnose and fix common Anima SDK design-to-code errors.
Use when encountering Figma token errors, code generation failures,
node not found issues, or output quality problems.
Trigger with: "anima error", "anima not working", "anima debug", "figma to code error".
/anima-core-workflow-aBuild automated Figma-to-React pipeline with the Anima SDK.
Use when automating design handoff, building CI/CD design-to-code workflows,
or creating a design system code generator from Figma components.
Trigger with: "anima design pipeline", "figma to react pipeline",
"automated design handoff", "anima component generator".
/anima-core-workflow-bClone websites to React/HTML code and customize Anima output with AI.
Use when converting live websites to code, customizing generated components,
or building design-system-aware code from URL screenshots.
Trigger with: "anima website to code", "anima URL clone", "anima AI customization",
"website to react", "clone website to code".
/anima-cost-tuningOptimize Anima API costs through caching, incremental generation, and tier selection.
Use when managing Anima API usage, reducing unnecessary code generations,
or right-sizing your Anima plan for team size.
Trigger with: "anima cost", "anima pricing", "anima budget", "anima API usage".
/anima-debug-bundleCollect Anima SDK debug evidence for support tickets and troubleshooting.
Use when filing Anima support requests, debugging code generation issues,
or collecting diagnostic data for the Anima team.
Trigger with: "anima debug bundle", "anima support ticket", "anima diagnostics".
npx claudepluginhub jeremylongshore/tons-of-skills-marketplace --plugin anima-packOther plugins' skills for the same job