Answers from the documentation; checking which model is on duty
Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
anima-common-errors - Skill - OpenSmartRoute
Skillv1.0.0
anima-common-errors
Diagnose 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.
Imported from jeremylongshore/tons-of-skills-marketplace (skills/.curated/anima-common-errors/SKILL.md). Install upstream with npx skills add jeremylongshore/tons-of-skills-marketplace --skill anima-common-errors. Copyright stays with the author (MIT).
Anima Common Errors
Overview
Use this guide to diagnose design-to-code failures without widening design-file
access or leaking tokens. Start from a reproducible file/node/settings tuple
and use a least-privilege development credential for all verification.
Prerequisites
A sanitized error record with the design file identifier, node identifier,
selected generation settings, timestamp, and request ID where available.
Scoped Anima and Figma credentials held in a secret store; never paste a
personal access token into a ticket, source file, or shared diagnostic log.
A staging or disposable design fixture so fixes can be reproduced without
mutating a production design file.
Instructions
Classify the failure as authentication, file/node resolution, generator
configuration, timeout/rate limit, or rendered-output quality.
Reproduce it with the smallest approved frame/component and the diagnostic
commands, capturing only sanitized results.
Correct the matching design input, entitlement, or generation configuration
and rerun only that fixture.
Validate the generated file location, lint/build result, and visual review
before updating a broader component set.
Error Reference
Authentication Errors
Error
Root Cause
Fix
Invalid Anima token
Token not provisioned or expired
Request new token from Anima team
Invalid Figma token
PAT expired or revoked
Generate new PAT: Figma > Settings > Access Tokens
Unauthorized
Token lacks file access
Ensure Figma PAT has file read permission
File & Node Errors
Error
Root Cause
Fix
File not found
Wrong file key
Extract from Figma URL: figma.com/file/{KEY}/...
Node not found
Invalid node ID
Copy node link from Figma: right-click > Copy link
No renderable content
Selected a page or group
Select a frame, component, or component set
Empty files record
Node is empty or hidden
Unhide layers; ensure node has visible content
Code Generation Errors
// Classify without printing provider messages, which can contain source details.async function safeGenerate(anima: Anima, params: Parameters<Anima['generateCode']>[0]) { try { return await anima.generateCode(params); } catch (error: unknown) { const status = typeof error === 'object' && error !== null && 'status' in error ? Number(error.status) : undefined; const failureClass = status === 401 || status === 403 ? 'authentication-or-permission' : status === 429 ? 'rate-limited' : status !== undefined && status >= 500 ? 'provider-transient' : 'generation-failed'; console.error({ failureClass, status }); return null; }}
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.
Output
Error classified and root cause identified
Valid settings matrix for reference
Diagnostic commands for token and file verification
Examples
When a staging generation returns Node not found, compare the copied node ID
with the approved Figma link, then run the file-access diagnostic using a scoped
development token. Regenerate only that small frame after correcting the ID and
confirm files are emitted to the expected generated-code directory. If access
is denied, the node remains hidden, or output is empty, stop the run and ask
the file owner to correct permissions or visibility; do not expand the token’s
scope or substitute a personal token to get past the error.
Error Handling
Failure
Response
Token is invalid, expired, or over-scoped
Stop the diagnostic, replace it through managed secret rotation, and avoid logging the value.
File or node cannot be resolved
Verify the approved link and visibility with the design owner before retrying.
Generator times out or rate-limits
Use bounded backoff or simplify the fixture; do not fan out uncontrolled retries.
Generated output is unsafe or wrong
Keep it out of the main branch, correct source design/settings, and rerun targeted validation.
Install anima-common-errors and it becomes one more candidate the router can pick - when it fits.
A listing is a routing target with a manifest: what it does, which domains it covers, what it costs and who publishes it. Once installed it sits beside your own models and tools, is scored like any other candidate for each request, and shows up in the trace when it wins. Ratings come from workspaces that installed it, one per account.
When a provider is down or over quota the request moves on; the trace says it did.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slotcurl-s-X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.
{
"ocm": "1",
"id": "jeremylongshore-tons-of-skills-marketplace-anima-common-errors",
"kind": "skill",
"name": "anima-common-errors",
"description": "Diagnose 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\".",
"publisher": "jeremylongshore",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding",
"customer_support"
],
"tags": [
"skill-md",
"saas",
"design",
"figma",
"anima",
"troubleshooting",
"skills-sh"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Diagnose 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\"."
],
"primary": false,
"metadata": {
"source": {
"provider": "skills.sh",
"repository": "https://github.com/jeremylongshore/tons-of-skills-marketplace",
"path": "skills/.curated/anima-common-errors/SKILL.md",
"ref": "HEAD",
"url": "https://github.com/jeremylongshore/tons-of-skills-marketplace/blob/HEAD/skills/.curated/anima-common-errors/SKILL.md",
"key": "jeremylongshore/tons-of-skills-marketplace/skills/.curated/anima-common-errors/SKILL.md"
},
"compatibility": "Requires Node.js 20+, approved Anima API access, current Anima SDK documentation, and authorized Figma or website source access",
"allowed_tools": [
"Read,",
"Write,",
"Edit,",
"Bash(curl:*),",
"Grep"
],
"model": "inherit",
"license": "MIT"
},
"instructions": "# Anima Common Errors\n\n## Overview\n\nUse this guide to diagnose design-to-code failures without widening design-file\naccess or leaking tokens. Start from a reproducible file/node/settings tuple\nand use a least-privilege development credential for all verification.\n\n## Prerequisites\n\n- A sanitized error record with the design file identifier, node identifier,\n selected generation settings, timestamp, and request ID where available.\n- Scoped Anima and Figma credentials held in a secret store; never paste a\n personal access token into a ticket, source file, or shared diagnostic log.\n- A staging or disposable design fixture so fixes can be reproduced without\n mutating a production design file.\n\n## Instructions\n\n1. Classify the failure as authentication, file/node resolution, generator\n configuration, timeout/rate limit, or rendered-output quality.\n2. Reproduce it with the smallest approved frame/component and the diagnostic\n commands, capturing only sanitized results.\n3. Correct the matching design input, entitlement, or generation configuration\n and rerun only that fixture.\n4. Validate the generated file location, lint/build result, and visual review\n before updating a broader component set.\n\n## Error Reference\n\n### Authentication Errors\n\n| Error | Root Cause | Fix |\n|-------|-----------|-----|\n| `Invalid Anima token` | Token not provisioned or expired | Request new token from Anima team |\n| `Invalid Figma token` | PAT expired or revoked | Generate new PAT: Figma > Settings > Access Tokens |\n| `Unauthorized` | Token lacks file access | Ensure Figma PAT has file read permission |\n\n### File & Node Errors\n\n| Error | Root Cause | Fix |\n|-------|-----------|-----|\n| `File not found` | Wrong file key | Extract from Figma URL: `figma.com/file/{KEY}/...` |\n| `Node not found` | Invalid node ID | Copy node link from Figma: right-click > Copy link |\n| `No renderable content` | Selected a page or group | Select a frame, component, or component set |\n| Empty `files` record | Node is empty or hidden | Unhide layers; ensure node has visible content |\n\n### Code Generation Errors\n\n```typescript\n// Classify without printing provider messages, which can contain source details.\nasync function safeGenerate(anima: Anima, params: Parameters<Anima['generateCode']>[0]) {\n try {\n return await anima.generateCode(params);\n } catch (error: unknown) {\n const status = typeof error === 'object' && error !== null && 'status' in error\n ? Number(error.status)\n : undefined;\n const failureClass = status === 401 || status === 403\n ? 'authentication-or-permission'\n : status === 429\n ? 'rate-limited'\n : status !== undefined && status >= 500\n ? 'provider-transient'\n : 'generation-failed';\n console.error({ failureClass, status });\n return null;\n }\n}\n```\n\n### Output Quality Issues\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| Messy layout | No auto-layout in Figma | Convert frames to auto-layout |\n| Wrong colors | Hardcoded hex instead of Figma variables | Use Figma color variables/styles |\n| Missing text | Text is inside masked groups | Flatten masks before generating |\n| Extra wrappers | Deeply nested groups | Flatten group hierarchy |\n| Wrong component names | Unnamed Figma layers | Name layers descriptively |\n\n### Valid Settings Combinations\n\n| Framework | Language | Styling | UI Library |\n|-----------|----------|---------|------------|\n| `react` | `typescript`, `javascript` | `plain_css`, `tailwind`, `inline_styles` | omit, `mui`, `antd`, `radix`, `shadcn`, `clean_react`, `custom_design_system` |\n| `html` | `typescript`, `javascript` | `plain_css`, `tailwind`, `inline_styles` | omit |\n\n## Diagnostic Script\n\n```bash\n# Verify Figma token\ncurl -s \"https://api.figma.com/v1/me\" \\\n -H \"X-Figma-Token: ${FIGMA_TOKEN}\" | jq '.handle // .err'\n\n# Verify file access\ncurl -s \"https://api.figma.com/v1/files/${FIGMA_FILE_KEY}\" \\\n -H \"X-Figma-Token: ${FIGMA_TOKEN}\" | jq '.name // .err'\n```\n\n## Tool Discipline\n\nUse 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.\n\n## Output\n\n- Error classified and root cause identified\n- Valid settings matrix for reference\n- Diagnostic commands for token and file verification\n\n## Examples\n\nWhen a staging generation returns `Node not found`, compare the copied node ID\nwith the approved Figma link, then run the file-access diagnostic using a scoped\ndevelopment token. Regenerate only that small frame after correcting the ID and\nconfirm files are emitted to the expected generated-code directory. If access\nis denied, the node remains hidden, or output is empty, stop the run and ask\nthe file owner to correct permissions or visibility; do not expand the token’s\nscope or substitute a personal token to get past the error.\n\n## Error Handling\n\n| Failure | Response |\n|---------|----------|\n| Token is invalid, expired, or over-scoped | Stop the diagnostic, replace it through managed secret rotation, and avoid logging the value. |\n| File or node cannot be resolved | Verify the approved link and visibility with the design owner before retrying. |\n| Generator times out or rate-limits | Use bounded backoff or simplify the fixture; do not fan out uncontrolled retries. |\n| Generated output is unsafe or wrong | Keep it out of the main branch, correct source design/settings, and rerun targeted validation. |\n\n## Resources\n\n- [Anima API Docs](https://docs.animaapp.com/docs/anima-api)\n- [Figma API Reference](https://www.figma.com/developers/api)",
"cost": {
"context_tokens": 1455
}
}
Fetch it by URL: GET /api/v1/registry/jeremylongshore-tons-of-skills-marketplace-anima-common-errors/manifest?version=1.0.0
Reviews
Star ratings from people who tried it. One review per account; edit yours any time.
No reviews yet. Install it, try it, and be the first to rate it.