content-generation
Generate marketing content from PolicyEngine blog posts - social media images, social post copy, and branded assets
What this skill does
# Content generation skill Use this skill when generating marketing content from PolicyEngine blog posts, research, or announcements. This includes social media images and social post copy. ## Overview This skill provides templates and patterns for generating consistent, branded PolicyEngine content across multiple channels and audiences (UK, US, global). ## Content types ### Social media images 1200x630 PNG images for LinkedIn, X (Twitter), and Facebook with: - PolicyEngine brand colors from design tokens (teal primary, dark background) - Inter font family - Headline with teal highlight - Optional headshot with quote - PolicyEngine logo - Audience-appropriate flags ### Newsletters (future) Newsletter generation is planned for a future release. The agent can generate newsletter HTML ad-hoc following brand guidelines, but there is no template file yet. ### Social post copy Platform-optimized text for: - LinkedIn (professional tone, can be longer) - X/Twitter (concise, hashtags) - Threads/Bluesky (conversational) ## Audience localization Content is localized for different audiences: | Aspect | UK | US | |--------|----|----| | Spelling | modelling, centre | modeling, center | | References | 10 Downing Street | UK Prime Minister's office | | Context | Direct announcement | "Same tech that powers PolicyEngine US" | | Flags | π¬π§ | πΊπΈ π¬π§ | | Sections | No NSF mention | Include NSF/POSE if relevant | ## Template variables ### Social image template ``` headline: Main headline text headline_highlight: Text to highlight in teal (optional) subtext: Supporting description flags: Emoji flags to display (e.g., "π¬π§" or "πΊπΈ π¬π§") headshot_url: URL or path to headshot image quote: Pull quote text attribution_name: Quote attribution name attribution_title: Quote attribution title/role logo_path: Path to PolicyEngine logo ``` ## Workflow 1. **Parse source** - Extract key information from blog post/announcement 2. **Generate variants** - Create UK and US versions with appropriate localization 3. **Render assets** - Generate images via Chrome headless 4. **Generate social copy** - Create platform-optimized posts for LinkedIn/X 5. **Output summary** - Provide paths to all generated content ## Brand guidelines ### Colors Source of truth: `policyengine-design-skill` and `@policyengine/design-system` CSS tokens. Social image generation runs in headless Chrome with design tokens loaded, so use CSS vars where possible. Fallback hex values for non-browser contexts: | Token | CSS var | Hex | |-------|---------|-----| | Primary teal | `--pe-color-primary-500` | #319795 | | Light teal | `--pe-color-primary-200` | #81E6D9 | | Dark background | (custom) | #1a2332 | | Text gray | `--pe-color-gray-400` | #9CA3AF | | White | `--pe-color-bg-primary` | #FFFFFF | ### Typography - Font family: Inter (Google Fonts) - Headlines: 800 weight, -0.02em letter-spacing - Body: 400 weight - Labels: 700 weight, 0.1em letter-spacing, uppercase ### Logo - White version for dark backgrounds - Teal version for light backgrounds - Minimum height: 28px ## Dependencies - Google Chrome (for headless screenshot)
Related in Writing & Docs
jax-development
IncludedUse this skill when the user is writing, debugging, profiling, refactoring, reviewing, benchmarking, parallelising, exporting, or explaining JAX code, or when they mention JAX, jax.numpy, jit, grad, value_and_grad, vmap, scan, lax, random keys, pytrees, jax.Array, sharding, Mesh, PartitionSpec, NamedSharding, pmap, shard_map, Pallas, XLA, StableHLO, checkify, profiler, or the JAX repo. It helps turn NumPy or PyTorch-style code into pure functional JAX, fix tracer/control-flow/shape/PRNG bugs, remove recompiles and host-device syncs, choose transforms and sharding strategies, inspect jaxpr/lowering/IR, and benchmark compiled code correctly.
nature-article-writer
IncludedDrafts, rewrites, diagnostically critiques, and style-calibrates primary research manuscripts for Nature and Nature Portfolio journals. Use when the user wants a Nature-style title, summary paragraph or abstract, introduction, results, discussion, methods, figure legends, presubmission enquiry, cover letter, reviewer response, or when a scientific draft sounds generic, jargon-heavy, structurally weak, or AI-ish and needs precise, broad-reader-friendly prose without inventing data, analyses, or references. Best for primary research articles and letters rather than reviews or press releases unless explicitly adapting one.
deckrd
IncludedDocument-driven framework that derives requirements, specifications, implementation plans, and executable tasks from goals through structured AI dialogue. Use when user says "write requirements", "create spec", "plan implementation", "derive tasks", "structure this feature", "break down into tasks", or "document this module". Also use for reverse engineering existing code into docs (/deckrd rev). Do NOT use for direct code writing β use /deckrd-coder after tasks are generated. Do NOT use when the user only wants to run or fix existing code without planning.
clinical-decision-support
IncludedGenerate professional clinical decision support (CDS) documents for pharmaceutical and clinical research settings, including patient cohort analyses (biomarker-stratified with outcomes) and treatment recommendation reports (evidence-based guidelines with decision algorithms). Supports GRADE evidence grading, statistical analysis (hazard ratios, survival curves, waterfall plots), biomarker integration, and regulatory compliance. Outputs publication-ready LaTeX/PDF format optimized for drug development, clinical research, and evidence synthesis.
handling-sf-data
IncludedSalesforce data operations with 130-point scoring. Use this skill to create, update, delete, bulk import/export, generate test data, and clean up org records using sf CLI and anonymous Apex. TRIGGER when: user creates test data, performs bulk import/export, uses sf data CLI commands, needs data factory patterns for Apex tests, or needs to seed/clean records in a Salesforce org. DO NOT TRIGGER when: SOQL query writing only (use querying-soql), Apex test execution (use running-apex-tests), or metadata deployment (use deploying-metadata).
accelint-ac-to-playwright
IncludedConvert and validate acceptance criteria for Playwright test automation. Use when user asks to (1) review/evaluate/check if AC are ready for automation, (2) assess if AC can be converted as-is, (3) validate AC quality for Playwright, (4) turn AC into tests, (5) generate tests from acceptance criteria, (6) convert .md bullets or .feature Gherkin files to Playwright specs, (7) create test automation from requirements. Handles both bullet-style markdown and Gherkin syntax with JSON test plan generation and validation.