Agent skill · software engineering · jeremylongshore
anima-sdk-patterns
Apply production-ready patterns for the Anima SDK design-to-code pipeline.
Why this skill is useful
Adds production-ready patterns and executable scripts for Anima SDK that enhance design-to-code automation capabilities.
What it needs
Requires @animaapp/anima-sdk, crypto, fs, typescript installed locally. About 5k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.
What this skill does
Anima SDK Patterns Overview Build a backend @animaapp/anima-sdk wrapper with a pinned client, supported settings, source-bound caching, contained output normalization, and bounded error recovery. Reject unsupported framework values and ambiguous cache entries. Prerequisites Pin the Anima SDK and TypeScript runtime versions, define the supported framework presets, and provide a sandbox Figma file containing synthetic components for tests and examples. Inject ANIMATOKEN and any Figma credentials from a secret manager at runtime. Authentication failures must be distinguishable from generation failures; never hard-code, log, cache, or include credentials in generated output or receipts. Make .anima-cache private to the worker, exclude it from version control and artifact uploads, and define a retention/deletion policy. Cache keys may identify a request, but cached design source and generated content must not be sent to telemetry. Set an allowlist for input file/node IDs and output paths, a maximum cache size, a bounded retry count, and an owner-approved normalization configuration before enabling the wrapper in CI or production. Instructions Step 1: Singleton Client with Configuration Step 2: Generation Cache Step 3: Output Normalizer Step 4: Error Recovery Pattern Error Handling Fail fast with a redacted configuration error when ANIMATOKEN is missing or rejected, and do not retry 401/403 responses. Check Figma file/node permissions separately from Anima authentication so an operator can correct the smallest scope. Treat cache misses as normal, but treat malformed JSON, schema drift, a settings-hash mismatch, or a cache entry outside the approved directory as a cache failure: quarantine or delete that entry and regenerate from the sandbox-approved request rather than trusting it. Retry only bounded transient network, timeout, 429, and 5xx failures with exponential backoff and jitter. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills jeremylongshore/anima-sdk-patterns