Commit Graph
2 Commits
Author SHA1 Message Date
ShaneandClaude Opus 4.8 a15601fe9c docs(og-generator): simplify reference-examples intake to a single links file
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>
2026-07-01 15:34:54 -05:00
ShaneandClaude Opus 4.8 6e807b4ab7 feat(og-generator): Claude-backed AI art direction + featured examples
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>
2026-07-01 13:47:25 -05:00