算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
generate-newsletter-insurance【设计与创意】Generate an insurance-specific newsletter for Anchor Point Insurance Co. (brand=LIFEINSUR)
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Generates a branded newsletter for Anchor Point Insurance Co. (brand=LIFEINSUR). This is a specialization of the generate-newsletter skill, pre-configured for the insurance vertical — it fetches life insurance and financial planning news, uses the Anchor Point brand palette (warm charcoal #44403E, terracotta #AD7C59, warm beige #FCF9F6), and omits property listings (which are CRE-11TRUST only).
LIFEINSUR_NEWSAPI_QUERY env var or "life insurance financial planning south florida".lib/newsletter/generate-insurance.ts::generateInsuranceNewsletter(options?) to orchestratebrand-config in Strapi or hardcoded defaults), display name "Anchor Point Insurance Co."fetchNews(query) hits NewsAPI for 5 latest articles matching insurance/financial planning topicsgenerateAiContent(null, news) sends news to Groq (no properties for LIFEINSUR). Returns market overview and news summaries.buildHtml() assembles responsive email-safe HTML with Anchor Point brand colors and insurance-specific sectionsbuildStrapiPayload() with brand=LIFEINSUR, slug includes timestamp for uniquenessstrapiPost('/api/newsletters', data) creates a draft newsletter (skipped in dry-run mode)lib/board/index.ts::logActivity()Brand: LIFEINSUR (Anchor Point Insurance Co.)
News articles fetched: 5
AI content generated: market_overview (342 words), 5 news summaries
HTML length: 12,847 chars
Strapi draft created: documentId=abc123-def456
# Generate insurance newsletter for today
optimal generate-newsletter-insurance
# Specific date
optimal generate-newsletter-insurance --date 2026-03-01
# Preview without pushing to Strapi
optimal generate-newsletter-insurance --dry-run
# Custom news query
optimal generate-newsletter-insurance --news-query "florida insurance market rates"
Requires: GROQ_API_KEY, NEWSAPI_KEY, STRAPI_URL, STRAPI_API_TOKEN
Optional: GROQ_MODEL (default: llama-3.3-70b-versatile), LIFEINSUR_NEWSAPI_QUERY
--excel parameter is not available.Implementation status: Not yet implemented. Spec only. Lib function lib/newsletter/generate-insurance.ts to be ported from generate-newsletter-lifeinsur.py in the newsletter-automation repo.