/anima-pack:anima-deploy-integration [deployment-target]from anima-pack
Deploys the Anima SDK as a backend API endpoint for generating code from Figma designs. Supports Express and Vercel serverless deployments.
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.
Deploy the Anima SDK as a backend service. The SDK is server-side only, so deploy it behind an API endpoint that accepts Figma file/node references and returns generated code.
fileKey and nodesId generation to the
public internet.// src/server.ts
import express from 'express';
import { Anima } from '@animaapp/anima-sdk';
const app = express();
app.use(express.json());
const anima = new Anima({ auth: { token: process.env.ANIMA_TOKEN! } });
app.post('/api/generate', async (req, res) => {
const { fileKey, nodesId, settings } = req.body;
if (!fileKey || !nodesId?.length) {
return res.status(400).json({ error: 'fileKey and nodesId required' });
}
try {
const { files } = await anima.generateCode({
fileKey,
figmaToken: process.env.FIGMA_TOKEN!,
nodesId,
settings: settings || { language: 'typescript', framework: 'react', styling: 'tailwind' },
});
res.json({ files, count: Object.keys(files).length });
} catch (err: any) {
res.status(502).json({ error: 'Generation failed', requestId: req.id });
}
});
app.get('/health', (_req, res) => res.json({ status: 'ok' }));
app.listen(3000, () => console.log('Anima service on :3000'));
// api/generate.ts
import { Anima } from '@animaapp/anima-sdk';
const anima = new Anima({ auth: { token: process.env.ANIMA_TOKEN! } });
export default async function handler(req: any, res: any) {
if (req.method !== 'POST') return res.status(405).end();
const { fileKey, nodesId, settings } = req.body;
const { files } = await anima.generateCode({
fileKey, figmaToken: process.env.FIGMA_TOKEN!, nodesId,
settings: settings || { language: 'typescript', framework: 'react', styling: 'tailwind' },
});
res.json({ files });
}
# Vercel
vercel secrets add anima_token "$ANIMA_TOKEN"
vercel secrets add figma_token "$FIGMA_TOKEN"
vercel --prod
# Cloud Run
gcloud run deploy anima-service \
--source . \
--set-secrets=ANIMA_TOKEN=anima-token:latest,FIGMA_TOKEN=figma-token:latest \
--region us-central1 --no-allow-unauthenticated
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.
Deploy the service to a staging environment behind the organization’s existing
identity proxy and invoke /api/generate with one allowlisted file/node pair.
Verify the request is authorized, output remains in the approved generated-code
location, logs contain only request metadata, and generated files pass the
downstream formatter and test gate before a human reviews them. If an unauthenticated
caller, unknown node, or secret-binding error reaches the service, reject the
request, alert the operator, and keep the prior revision active rather than
opening broad access or embedding credentials in the client.
| Failure | Response |
|---|---|
| Caller is not authenticated or file/node is not allowlisted | Reject before contacting Anima or Figma. |
| Managed secret is unavailable | Fail closed and repair the deployment binding; never use a plaintext fallback. |
| Generation or validation fails | Return a sanitized failure, preserve the prior revision, and quarantine the output. |
| Rate limit or repeated bad requests occur | Apply bounded throttling and alert the owning service team. |
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