Drop a plain figma-links.txt (one URL per line) instead of pairing every
image with a .figma.txt file — Claude Code pulls the screenshot/design
context per link directly via the Figma integration. Also notes this same
drop zone doubles as the intake for a future image-generation training set.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Replace the keyword-only "Describe this post" suggester with a real Claude
call, grounded in a curated featured-examples corpus.
- Add featured-examples corpus (lib/ai/examples.ts) as approved precedent, and
match against it first in the keyword suggester
- Add Claude suggester (lib/ai/claude.ts) + Node-runtime /api/suggest route:
claude-opus-4-8 reasons over the icon/template/pattern vocab + examples with
structured JSON output; every field is validated back into the allowed set;
falls back to the keyword matcher when ANTHROPIC_API_KEY is unset or on any
error, so the route always returns a valid suggestion
- Editor: Generate now calls the route (async + "Generating…" state), adds the
"ai" source with a "✨ AI suggestion" label; drop the client-side suggester
- Add "Save current as example" to grow the corpus
- Pin @anthropic-ai/sdk ^0.106.0; add .env.local.example + README AI section
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>