anima-rate-limits
Skill by jeremylongshore
Guides developers through rate limit handling for Anima API code generation from Figma designs. It covers Figma rate limit callbacks, bounded retries and batch generation for large design systems.
Install anima-rate-limits
Built from the published package, never by AI.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/anima-rate-limits ~/.claude/skills/anima-rate-limitsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/anima-rate-limits ~/.gemini/antigravity-cli/skills/anima-rate-limitsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a set of instructions and code examples for handling rate limits when generating code with the Anima API. It shows how to configure the Anima SDK's FigmaRestApi with an onRateLimited callback that receives retryAfter, figmaPlanTier and figmaRateLimitType. It also shows how to set a per-request figmaRateLimitMaxWait for each generateCode call. The source says not to invent a requests-per-minute or concurrency limit for Anima, and to follow the account's current contract instead.
The workflow covers batching component generation, retrying only transient 5xx and network failures within bounded attempt and time budgets, and resuming only failed node IDs. It also covers atomic output writes, redacted receipts and alerts on failure ratios. It is aimed at developers who have approved Anima API access and work in Node.js 20 or later.
Written from the project's SKILL.md and checked against it.
What it can do
- FigmaRestApi onRateLimitedReceives retryAfter, figmaPlanTier and figmaRateLimitType to decide whether to retry Figma calls.
- figmaRateLimitMaxWaitSets a per-request maximum wait between 1 and 180 seconds, default 60, on generateCode calls.
- Bounded retriesRetries only transient 5xx and network failures, with caps on attempts and total elapsed time.
- Resumable batchesResumes only failed node IDs using a persisted redacted request fingerprint.
- Redacted batch receiptsRecords counts and status classes for a batch without tokens or design content.
- Atomic output writesWrites generated files atomically and quarantines incomplete files after failures or restarts.
What you need
- Approved Anima API access
- ANIMA_TOKEN for the Anima API
- FIGMA_TOKEN and FIGMA_FILE_KEY for the Figma file
- Node.js 20 or later
- @animaapp/anima-sdk
Try asking
- Add Figma rate limit handling to my Anima generateCode client
- Set a 5 second max wait on my Anima component generation calls
- Retry only failed node IDs from my last Anima batch run
Good to know
- The source publishes no Anima quota, so concurrency must follow the account contract.
- Figma max wait is limited to 1 to 180 seconds.
- 401 and 403 errors are not retried and need credential or scope repair.
- Changes to concurrency or quota settings need human approval.
Security check
B- Allowed to use Write, Edit without limitsIn
SKILL.md
Checked automatically: skills/.curated/anima-rate-limits/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadWriteEditBash(npm:*)
-
SKILL.md6 KB -
references/official-docs.md793 B
Alternatives to anima-rate-limits
All alternatives →PaperBanana generates publication-quality academic diagrams from a paper's methodology text and figure caption. It is aimed at researchers preparing figures for venues such as NeurIPS, ICML, and ACL.
Creates a monochrome technical wireframe design system for dark diagnostic interfaces. It covers layout, typography, info labels, widgets and an exploded wireframe centerpiece. It is for designers and developers building teardown, systems dashboard or specification-style screens.
Guides an AI assistant through embedding interactive Spline.design 3D scenes in web projects. It covers vanilla, React, Next.js, Vue and iframe setups, for developers adding 3D to websites.
Code Slice Hero is a HyperFrames headline block. A tiled surface flips cell by cell to reveal a second headline behind the first, at 1920×1080 and 8 seconds.
Generates patent-office-compliant figures and converts drawings through the PatentFig AI API. Built for patent filers who need USPTO or EPO line art, CAD-ready vectors, or filing-ready TIFF, PDF, or PNG files.
Creates a framed dark technical design system for AI assistants, using border-gradient shells, asymmetrical grid panels, and mono labels. Suited to premium, instrument-like interfaces that need visible boundaries. Published by MengTo.
Compare with paperbanana, technical-wireframe-info-layout or spline-3d-integration
anima-rate-limits: common questions
Does this skill set a requests per minute limit for Anima?
No. The source says not to encode an invented requests-per-minute or concurrency allowance and to follow the account's current generation contract.
How does it handle Figma rate limits?
The FigmaRestApi onRateLimited callback receives retryAfter, plan tier and rate limit type, and the code decides whether to retry within a bounded wait.
Which errors should not be retried?
Authentication and permission failures (401 and 403), invalid node or file parameters, and policy rejections should stop the batch and be reported.
How do I install anima-rate-limits?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is anima-rate-limits free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is anima-rate-limits safe to use?
It scores 80 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.
What are alternatives to anima-rate-limits?
Similar skills: paperbanana, technical-wireframe-info-layout, spline-3d-integration, code-slice-hero.
