Anima reference architecture
π§ The right skill, one API call. AI agent skills registry with token-efficient skill resolution. 5,000+ skills from 500+ top repos.
npx -y skills add ComeOnOliver/skillshub --skill anima-reference-architectureAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
What its author says it does
Copied from the file, not written here
Implement reference architecture for Anima design-to-code automation. Use when designing a design system automation pipeline, structuring a Figma-to-React project, or planning team-scale design handoff. Trigger: "anima architecture", "design-to-code architecture", "anima project structure", "figma automation architecture".
The file declares its own license as MIT. That is the authorβs claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
4.7 KB, 799 tokens by cl100k_base, as published. Nobody here has run it
Anima Reference Architecture
System Architecture
ββββββββββββββββββ ββββββββββββββββ βββββββββββββββββββ
β Figma Design ββββββΆβ Figma API ββββββΆβ Anima SDK β
β (Components) β β (Webhooks) β β (Code Gen) β
ββββββββββββββββββ ββββββββββββββββ ββββββββββ¬βββββββββ
β
βββββββββββΌβββββββββ
β Post-Processing β
β - Token mapping β
β - Normalization β
β - Lint/format β
βββββββββββ¬βββββββββ
β
βββββββββββΌβββββββββ
β Output β
β - React/Vue/HTML β
β - PR creation β
β - Storybook sync β
ββββββββββββββββββββ
Project Structure
design-to-code/
βββ src/
β βββ anima/
β β βββ client.ts # Singleton SDK client
β β βββ cache.ts # Generation cache
β β βββ retry.ts # Error recovery
β β βββ presets.ts # Framework/styling presets
β βββ pipeline/
β β βββ scanner.ts # Figma component discovery
β β βββ generator.ts # Batch code generation
β β βββ change-detector.ts # Figma version tracking
β β βββ runner.ts # Pipeline orchestrator
β βββ post-process/
β β βββ normalizer.ts # Output normalization
β β βββ token-mapper.ts # Design token mapping
β β βββ organizer.ts # File organization + barrel exports
β βββ webhooks/
β β βββ figma-handler.ts # Figma webhook receiver
β βββ server.ts # Express API (optional)
βββ scripts/
β βββ generate-components.ts # CLI generation script
β βββ compare-presets.ts # Side-by-side preset comparison
βββ fixtures/
β βββ component-map.json # Figma node ID β component name mapping
βββ generated/ # Output directory (gitignored or committed)
βββ .anima-cache/ # Generation cache (gitignored)
βββ package.json
Key Design Decisions
| Decision | Choice | Rationale |
|---|---|---|
| SDK | @animaapp/anima-sdk | Official, server-side, typed |
| Change detection | Figma Webhooks v2 | Event-driven, no polling waste |
| Caching | File-based with MD5 keys | Simple, no external dependencies |
| Post-processing | Custom normalizer | Match project conventions |
| CI integration | GitHub Actions scheduled | Avoid real-time generation costs |
| Output framework | React + Tailwind + shadcn | Most production-ready output |
Output
- Complete design-to-code pipeline architecture
- Project structure with all components
- Design decision rationale documented
Resources
Next Steps
Start with anima-install-auth, then follow skills through production deployment.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.