anima
将想法转化为具有可编辑代码、内置数据库、用户身份验证和托管的实时全栈 Web 应用程序。 Anima 是 AI 群体中的设计代理,在构建界面时为代理提供设计意识和品牌一致性。三种输入路径:描述您想要的内容(提示编码)、克隆任何网站(链接到代码)或实现 Figma 设计(Figma 到代码)。还可以从 Figma 直接生成设计感知代码到现有代码库中。当用户提供 Figma URL、网站 URL、Anima Playground URL、要求设计、创建、构建或原型化某些东西,或者想要发布或部署时触发。
安装 / 下载方式
TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~dannyshmueli-anima-design-agentcURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~dannyshmueli-anima-design-agent/file -o dannyshmueli-anima-design-agent.md## 概述(中文) 将想法转化为具有可编辑代码、内置数据库、用户身份验证和托管的实时全栈 Web 应用程序。 Anima 是 AI 群体中的设计代理,在构建界面时为代理提供设计意识和品牌一致性。三种输入路径:描述您想要的内容(提示编码)、克隆任何网站(链接到代码)或实现 Figma 设计(Figma 到代码)。还可以从 Figma 直接生成设计感知代码到现有代码库中。当用户提供 Figma URL、网站 URL、Anima Playground URL、要求设计、创建、构建或原型化某些东西,或者想要发布或部署时触发。 ## 原文 # Design and Build with Anima ## Overview Anima is the design agent in your AI coding swarm. This skill gives agents design awareness and the ability to turn visual ideas into production-ready code. There are **two distinct paths** depending on what you're trying to do: ### Path A: Create & Publish (Full App Creation) Build complete applications from scratch. No local codebase needed. Anima handles everything: design, code generation, scalable database, and hosting. You go from idea to live URL in minutes. This path is powerful for **parallel variant creation**. Generate multiple versions of the same idea with different prompts, all at the same time. Pick the best one, then open the playground URL to keep refining. All without writing a line of code or managing infrastructure. **Create Anima Playgrounds by:** Prompt, Clone URL, Figma URL **What you get:** - A fully working application in an Anima Playground - The ability to generate multiple variants in parallel and compare them - No tokens wasted on file scanning, dependency resolution, or build tooling - Scalable database already connected - Scalable hosting when you publish ### Path B: Integrate into Codebase (Design-Aware Code Generation) Pull design elements and experiences from Anima into your existing project. Use this when you have a codebase and want to implement specific components or pages from a Figma design url or an existing Anima Playground. **Flows:** Figma URL to Code (codegen), Anima Playground to Code **What you get:** - Generated code from Anima playgrounds designs adapted to your stack - Precise design tokens, assets, and implementation guidelines --- ## Prerequisites - Anima MCP server must be connected and accessible — or use the Anima CLI as an alternative - User must have an Anima account (free tier available) - For Figma flows: Figma account connected during Anima authentication ## Important: Timeouts Anima's `playground-create` tool generates full applications from scratch. This takes time: - **p2c (prompt to code):** Typically 3-7 minutes - **l2c (link to code):** Typically 3-7 minutes - **f2c (Figma to code):** Typically 2-5 minutes - **playground-publish:** Typically 1-3 minutes **Always use a 10-minute timeout** (600000ms) for `playground-create`, `playground-publish`, and CLI calls. Default timeouts will fail. ## Setup Use the Anima CLI (`npx @animaapp/cli`) for all operations. CLI examples are shown throughout this guide. See the [CLI documentation](https://github.com/AnimaApp/anima-cli) for authentication setup. If the Anima MCP server is connected, MCP tools can also be used. See the [MCP setup guide](https://github.com/AnimaApp/mcp-server-guide/blob/main/anima-skill-references/setup.md) for details. --- ## Choosing the Right Path Before diving into tools and parameters, decide which path fits the user's goal. ### When to use Path A (Create & Publish) - User wants to **build something new** from a description, reference site, or Figma design - User wants a **live URL** they can share immediately - No existing codebase to integrate into - Goal is prototyping, exploring visual directions, or shipping a standalone app ### When to use Path B (Integrate into Codebase) - User has an **existing project** and wants to add a component or page from Figma - User wants **generated code files** to drop into their repo, not a hosted app - User already built something in an Anima Playground and wants to pull the code locally ### Ambiguous cases | User says | Likely path | Why | |---|---|---| | "Implement this Figma design" | **Path B** | "Implement" implies code in their project | | "Turn this Figma into a live site" | **Path A** (f2c) | "Live site" means they want hosting | | "Build me an app like this" + URL | **Path A** (l2c) | Clone and rebuild from scratch | | "Add this Figma component to my project" | **Path B** | "Add to my project" = codebase integration | | "Clone this website" | **Path A** (l2c) | Clone = capture and rebuild from scratch | | "Download the playground code" | **Path B** | Wants files locally | When still unclear, ask: "Do you want a live hosted app, or code files to add to your project?" --- ## From Request to Prompt Before calling any tool, the agent needs to decide: is this request ready to build, or does it need clarification? And if it's ready, how do you write a prompt that lets Anima shine? ### When to ask vs when to build **Threshold rule:** Can you write a prompt that includes **purpose**, **audience**, and **3-5 key features**? Yes = build. No = ask. **Signals to just build:** - "Build a recipe sharing app where users can upload photos and rate each other's dishes" (clear purpose, audience implied, features named) - "Clone stripe.com" (unambiguous) - "Turn this into a live site" + Figma URL (clear intent and input) **Signals to ask:** - "Build me a website" (what kind? for whom?) - "Make something for my business" (what does the business do?) - "Create an app" (what should it do?) When you ask, ask everything in **one message**. Don't drip-feed questions. If the user is vague and doesn't want to answer, skip clarification and use [Explore Mode](#explore-mode-parallel-variants) to generate 3 variants instead. Showing beats asking. ### Crafting the prompt Anima is a design-aware AI. Treat it like a creative collaborator, not a code compiler. Describe the *feel* of what you want, not the pixel-level implementation. Over-specifying with code and hex values **overrides Anima's design intelligence** and produces generic results. **Include in prompts:** purpose, audience, mood/style, 3-5 key features, content tone. **Leave out of prompts:** code snippets, CSS values, hex colors, pixel dimensions, font sizes, component library names (use the `uiLibrary` parameter instead), implementation details, file structure. **Bad (over-specified):** ``` Create a dashboard. Use #1a1a2e background, #16213e sidebar at 280px width, #0f3460 cards with 16px padding, border-radius 12px. Header height 64px with a flex row, justify-between. Font: Inter 14px for body, 24px bold for headings. ``` **Good (descriptive):** ``` SaaS analytics dashboard for a B2B product team. Clean, minimal feel. Sidebar navigation, KPI cards for key metrics, a usage trend chart, and a recent activity feed. Professional but approachable. Think Linear meets Stripe. ``` ## Path A: Create & Publish ### Step A1: Identify the Flow Determine which flow to use based on what the user provides and what they want. **User has a text description or idea → p2c** The most flexible path. Anima designs everything from your description. Best for new apps, prototypes, and creative exploration. **User has a website URL → l2c** Use l2c to clone the site. Anima recreates the full site into an editable playground. **User has a Figma URL → f2c (Path A) or codegen (Path B)** Two sub-cases: - **"Turn this into a live app"** or **"Make this a working site"** → f2c (Path A). Creates a full playground from the Figma design - **"Implement this in my project"** or **"Add this component to my codebase"** → codegen (Path B). Generates code files for integration **Quick reference:** | User provides | Intent | Flow | Tool | |---|---|---|---| | Text description | Build something new | p2c | `playground-create` type="p2c" | | Website URL | Clone it | l2c | `playground-create` type="l2c" | | Figma URL | Make it a live app | f2c | `playground-create` type="f2c" | | Figma URL | Implement in my project | codegen | `codegen-figma_to_code` (Path B) | ### Step A2: Create #### Prompt to Code (p2c) Describe what you want in plain language. Anima designs and generates a complete playground with brand-aware visuals.