算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
anima-prod-checklist【设计与创意】Production readiness checklist for Anima design-to-code pipelines. Use when deploying automated design-to-code services, preparing CI/CD Figma-to-code automation, or validating output quality before production. Trigger with: "anima production", "anima go-live", "anima prod checklist".
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: anima-prod-checklist description: 'Production readiness checklist for Anima design-to-code pipelines.
Use when deploying automated design-to-code services, preparing CI/CD
Figma-to-code automation, or validating output quality before production.
Trigger with: "anima production", "anima go-live", "anima prod checklist".
' allowed-tools: Read, Write, Edit, Bash(curl:*), Grep version: 2.0.0 argument-hint: "[environment]" model: inherit effort: high license: MIT author: Jeremy Longshore jeremy@intentsolutions.io tags:
Decide whether a React/HTML design-to-code pipeline is safe to launch by checking source authorization, backend isolation, output quality, review, observability, and rollback evidence.
ANIMA_TOKEN stored in the backend secret manager (never in source)FigmaRestApi signals and bounded wait; Anima quotas come from the account contractasync function checkAnimaReadiness(): Promise<void> {
const checks: { name: string; pass: boolean; detail: string }[] = [];
const sdkVersion = process.env.APPROVED_ANIMA_VERSION;
checks.push({
name: 'Managed bindings',
pass: Boolean(process.env.ANIMA_TOKEN && process.env.FIGMA_TOKEN && sdkVersion),
detail: sdkVersion ? `SDK ${sdkVersion}` : 'Pinned SDK version missing',
});
// Verify Figma access
try {
const res = await fetch('https://api.figma.com/v1/me', {
headers: { 'X-Figma-Token': process.env.FIGMA_TOKEN! },
});
checks.push({ name: 'Figma Access', pass: res.ok, detail: res.ok ? 'Authenticated' : `HTTP ${res.status}` });
} catch (e: any) { checks.push({ name: 'Figma Access', pass: false, detail: e?.name || 'Request failed' }); }
for (const c of checks) console.log(`[${c.pass ? 'PASS' : 'FAIL'}] ${c.name}: ${c.detail}`);
}
checkAnimaReadiness();
| Check | Risk if Skipped | Priority |
|---|---|---|
| API key rotation | Expired keys break entire pipeline | P1 |
| Figma token expiry | Silent sync failure, stale designs | P1 |
| Figma or generation rate limits | Unbounded retries or dropped updates | P2 |
| Component render validation | Broken UI shipped to production | P2 |
| Design token mapping | Visual inconsistencies across app | P3 |
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.
For a production rehearsal, generate one allowlisted staging component using the production-shaped secret binding, run the readiness script, and send the result through lint, type checking, visual review, and the release approval workflow. Record the Figma version, generated artifact digest, deploy revision, and rollback owner. If token safety fails, a quality gate is red, or the design source cannot be traced, declare a no-go, disable generation, and correct the failed control before rerunning the full checklist.