skills/content/content-generation-skill/SKILL.md
Generate marketing content from PolicyEngine blog posts - social media images, social post copy, and branded assets
npx skillsauth add policyengine/policyengine-claude content-generationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when generating marketing content from PolicyEngine blog posts, research, or announcements. This includes social media images and social post copy.
This skill provides templates and patterns for generating consistent, branded PolicyEngine content across multiple channels and audiences (UK, US, global).
1200x630 PNG images for LinkedIn, X (Twitter), and Facebook with:
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.
Platform-optimized text for:
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 |
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
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 |
tools
ONLY use this skill when users explicitly ask about the PolicyEngine Python package installation, REST API endpoints, API authentication, rate limits, or policyengine.py client library. DO NOT use for household benefit/tax calculations — ALWAYS use policyengine-us or policyengine-uk instead. This skill is about the API/client tooling itself, not about calculating benefits or taxes.
development
ALWAYS USE THIS SKILL for PolicyEngine microsimulation, population-level analysis, winners/losers calculations. Triggers: microsimulation, share who would lose/gain, policy impact, national average, weighted analysis, cost, revenue impact, budgetary, estimate the cost, federal revenues, tax revenue, budget score, how much would it cost, how much would the policy cost, total cost of, aggregate impact, cost to the government, revenue loss, fiscal impact, poverty impact, child poverty, deep poverty, poverty rate, poverty reduction, how many people lifted out of poverty, SPM poverty, distributional impact, state tax, state-level, California, New York, UBI, universal basic income, flat tax, standard deduction, winners and losers, winners, losers, inequality, Gini, decile, SALT, marginal tax rate, effective tax rate. NOT for single-household calculations like "what would my benefit be" - use policyengine-us or policyengine-uk for those. Use this skill's code pattern; explore codebase for parameter paths if needed.
development
PolicyEngine API v2 - Next-generation microservices architecture with monorepo structure
development
ALWAYS LOAD THIS SKILL before setting up any Python environment or installing packages. Defines the standard: uv, Python 3.13, uv pip install, .venv at project root. Triggers: "set up python", "install python", "create a venv", "virtual environment", "pip install", "install packages", "uv pip", "uv venv", "python version", "VIRTUAL_ENV", "venv conflict", "which python", "activate", "deactivate", "run the script", "run with uv", "uv run", "pyproject.toml", "install dependencies", "install requirements", "install the package", "editable install", "pip install -e", "latest package", "latest version", "current version", "newest version".