| name | anima-upgrade-migration |
| description | Upgrade @animaapp/anima-sdk versions and handle API changes.
Use when upgrading SDK versions, migrating from the Figma plugin workflow
to SDK-based automation, or adapting to new Anima API features.
Trigger: "anima upgrade", "anima migration", "anima SDK update".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Grep |
| version | 1.4.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","design","figma","anima","migration"] |
| compatibility | Designed for Claude Code |
Anima Upgrade & Migration
Migration Paths
| From | To | Complexity |
|---|
| Figma plugin (manual) | SDK automation | Medium |
| SDK v1 → v2 | SDK latest | Low |
| Anima Playground | SDK API | Low |
Instructions
Step 1: Upgrade SDK
npm list @animaapp/anima-sdk
npm install @animaapp/anima-sdk@latest
npm info @animaapp/anima-sdk changelog
Step 2: Migrate from Manual Plugin to SDK
import { Anima } from '@animaapp/anima-sdk';
const anima = new Anima({ auth: { token: process.env.ANIMA_TOKEN! } });
async function syncDesignToCode() {
const { files } = await anima.generateCode({
fileKey: process.env.FIGMA_FILE_KEY!,
figmaToken: process.env.FIGMA_TOKEN!,
: [, , ],
: { : , : , : },
});
( file files) {
().(, file.);
}
}