claude

policyengine-policyengine-claude

Official plugin for tax and benefit microsimulation using PolicyEngine. Enables agents to model policy impacts and welfare analysis.

0 on GitHubupdated 6 months agodata_analytics
/

Plugin policyengine-policyengine-claude from marketplace cascade-data-analytics in joshuarweaver/cascade-data-analytics. Commands read from the repo's manifest — 1 month ago.

This plugin runs code on your machine — its hooks fire automatically on events like tool use. The exact commands are listed below; read them before installing.

What it installs

Skills (23)

  • encode-policy-v2

    Use when the user invokes $encode-policy-v2 or asks Codex or Claude Code to implement a new PolicyEngine-US state benefit program or a new structural program component from official rules. Covers existing-program routing, source collection and selective PDF inspection, user-approved scope, implement

  • fix-pr

    Use when the user invokes $fix-pr or asks Codex or Claude Code to apply fixes to a PolicyEngine PR based on $review-program findings, GitHub review comments, CI failures, or local review reports.

  • policyengine-api

    Load when consuming or developing the PolicyEngine REST APIs — the v1 Flask API at api.policyengine.org (production today) or the v2 alpha microservices in policyengine-api-v2. Covers the v1 endpoint surface (household calc, economy-over-baseline polling), the v2 architecture (three services, uv/Doc

  • policyengine-app

    Load when developing policyengine-app-v2 — the site served at policyengine.org. Covers the bun/turbo monorepo, the Next.js 15 App Router host in website/, the legacy Vite SPA in app/ being migrated, ui-kit + designTokens theming, multizone rewrites, and how the frontend calls the PolicyEngine API. T

  • policyengine-calibration-diagnostics

    Sensitivity registry for PolicyEngine microsim results — maps {program x deviation signature} to the calibration target or imputed variable most likely driving a mismatch, and reads the live per-target diagnostics for the current Microcosm release. The knowledge base behind the calibration-diagnosti

  • policyengine-canada

    How to compute Canadian household tax/benefit outcomes with PolicyEngine, and the hard limits. Load when a task involves Canadian taxes or benefits (CCB, GST/HST credit, CWB, OAS, provincial tax) at the household level. Key facts: pe.ca does NOT exist — Canada is not in the policyengine wrapper; use

  • policyengine-content

    Generate branded social assets from a PolicyEngine blog post or announcement — 1200x630 social images and platform-optimized post copy for LinkedIn/X, localized for UK/US audiences. Triggers: "make a social image", "social card for this post", "generate content", "LinkedIn post for", "X post for", "

  • policyengine-data

    Load for PolicyEngine's data layer — how the microdata behind population microsimulations is built, calibrated, versioned, and named. Covers the Microcosm stack (Frame kernel, microcosm-fit conditional models, microcosm-calibrate weights with L0 sparsity, build/release gates), the certified datasets

  • policyengine-design

    Load when styling any PolicyEngine frontend — choosing colors, fonts, spacing, chart colors, or consuming @policyengine/ui-kit. Covers the two-import globals.css, the three-layer theme.css (@theme vs @theme inline), verified 0.4.0 token values and component exports, the dark-mode contract, and the P

  • policyengine-github-agent

    Working with the PolicyEngine GitHub agent bot on issues and PRs — how it is invoked and the hard rule that keeps it from looping. Load before replying to, or posting as, the bot. Triggers: "@policyengine bot", "GitHub agent", "policyengine-github-agent", "bot doom loop", "bot mentioned itself", "wh

  • policyengine-healthcare

    US healthcare domain knowledge (Medicaid, ACA premium tax credit, CHIP, Medicare) for analysts using the policyengine package. Load for: why ACA PTC and Medicaid changes show $0 in household_net_income (the include_health_benefits_in_net_income gotcha) and how to measure health impact instead; the a

  • policyengine-model-development

    Load when editing a PolicyEngine country model repo (policyengine-us, policyengine-uk, policyengine-canada) — adding or changing variables, parameters, YAML tests, or contributed reforms. This is the engineering layer (how formulas, parameter YAML, and tests are written), distinct from running analy

  • policyengine-plugin-maintenance

    Maintaining the policyengine-skills source repo and its generated policyengine-claude wrapper — adding or editing skills, bundles, and the Claude/Codex targets, and keeping the verification harness green. For maintaining the catalog, not for using PolicyEngine. Triggers: "update plugin", "add a skil

  • policyengine-prior-scores

    Curated anchor list of PolicyEngine's previously-published scored reforms, plus the map of the real prior-scores infrastructure in this repo (presets, the scorekeepers registry, the /prior-scores command, and the prior-scores-finder agent). Use to find a benchmark magnitude to anchor a new analysis

  • policyengine-research-lookup

    Find and cite PolicyEngine's published blog posts and research articles as evidence or proof points — for talks, pitches, grant narratives, and "has PolicyEngine written about X?" Triggers: "find a blog post", "PolicyEngine research on", "published analysis", "proof point", "has PolicyEngine written

  • policyengine-standards

    PolicyEngine coding standards, environment setup, formatters, changelog, and CI requirements across every repo — what makes a PR pass and merge cleanly. Covers uv + .venv, ruff, bun, towncrier changelog fragments, the "wait for CI" PR pattern, and the repo-rename checklist. Triggers: "CI failing", "

  • policyengine-tools

    Load when building a standalone PolicyEngine interactive tool, calculator, or dashboard that deploys to Vercel and embeds into policyengine.org as a Next.js multizone. Covers the required stack (Next App Router + Tailwind v4 + @policyengine/ui-kit + bun), multizone zone config (basePath/assetPrefix,

  • policyengine-uk

    Load before writing PolicyEngine-UK code — UK household calculations, income tax (incl. Scottish and Welsh variations), National Insurance, Universal Credit and other benefits, poverty and reform analysis. Covers the person/benunit/household entity model (UK has NO tax_unit), pe.uk.calculate_househo

  • policyengine-us

    US tax-benefit domain knowledge for analysts computing household or population impacts with the policyengine package (pe.us). Load for: which entity a US program attaches to (tax_unit vs spm_unit vs person), tax-unit role flags and filing status, post-OBBBA current-law values (2026 CTC, standard ded

  • policyengine-user-guide

    Using the PolicyEngine web app (policyengine.org) to analyze how tax and benefit reforms affect a household or the whole population — the household calculator, the policy editor, and society-wide impact charts. For people using the site, not building it. Triggers: "how to use PolicyEngine", "househo

  • policyengine-writing

    PolicyEngine writing style for any public-facing prose — blog posts, research reports, documentation, PR descriptions, social copy, READMEs. Enforces active voice, quantitative precision, sentence-case headings, and the analytical neutrality a nonpartisan 501(c)(3) requires: no policy prescriptions

  • policyengine

    ALWAYS load this skill before writing any Python that computes taxes, benefits, or policy impacts with PolicyEngine — household calculations, microsimulation, reform scoring, poverty or distributional analysis, state/district/constituency breakdowns. Triggers: policyengine, microsimulation, calculat

  • review-program

    ALWAYS LOAD THIS SKILL for PolicyEngine PR reviews, including when the user invokes $review-program or Codex /review on a PolicyEngine PR. Performs read-only code validation, source-reference checks, regulatory review, optional PDF audit, summary reporting, and optional GitHub comment posting.

Slash commands (20)

  • /policyengine-policyengine-claude:analyze-policy
  • /policyengine-policyengine-claude:audit-multizone

    Audit a PolicyEngine Next.js zone app for multi-zone compliance — basePath, assetPrefix, vercel.json, host rewrites, cross-zone links

  • /policyengine-policyengine-claude:audit-seo

    Audit a web app's SEO in a single read-only pass — meta tags, Open Graph, canonical, crawlability, plus the PolicyEngine embed/canonical gotchas

  • /policyengine-policyengine-claude:audit-state-tax

    Audit a state income tax PR's parameter values against official PDF sources (read-only, no code changes)

  • /policyengine-policyengine-claude:backdate-program

    Orchestrates multi-agent workflow to backdate and quality-improve existing state program parameters

  • /policyengine-policyengine-claude:create-dashboard

    Multi-agent workflow that plans, scaffolds, and validates a multi-page policy analysis dashboard (map + reform sliders + charts). For a single-purpose calculator or embedded widget, use /new-tool instead.

  • /policyengine-policyengine-claude:create-new-component

    Build new UI components for @policyengine/ui-kit — with design token validation, tests, visual preview, and PR creation

  • /policyengine-policyengine-claude:create-pr

    Create PR as draft, wait for CI to pass, then mark ready for review (solves the "I'll check back later" problem)

  • /policyengine-policyengine-claude:deploy-dashboard

    Deploys a PolicyEngine dashboard to Vercel (and optionally Modal) and registers it in the app

  • /policyengine-policyengine-claude:encode-reform

    Orchestrates multi-agent workflow to implement contributed policy reforms (proposed bills, policy experiments)

  • /policyengine-policyengine-claude:generate-content

    Generate social images and posts from a blog post or announcement

  • /policyengine-policyengine-claude:household-calc

    Calculate benefits, taxes, and net income for a single household under baseline or a reform — the standalone entry for household-level questions

  • /policyengine-policyengine-claude:implement-structural

    Implements the model extension behind a STRUCTURAL /analyze-policy verdict — baseline change for enacted law, gov/contrib reform for proposals — opens the policyengine-{country} PR, and records the re-run that completes the original analysis.

  • /policyengine-policyengine-claude:new-tool

    Scaffold a single-purpose interactive PolicyEngine tool (calculator or widget) — Next.js 14 + Tailwind 4 + ui-kit + embedding boilerplate. For multi-page policy analysis dashboards, use /create-dashboard.

  • /policyengine-policyengine-claude:prior-analysis

    Search the local analyses archive for prior /analyze-policy runs — did we already score this? What did we conclude?

  • /policyengine-policyengine-claude:prior-scores

    Consult external scorekeepers (JCT, CBO, OBR, IFS, PBO, CRFB, TPC, etc.) for a reform without running the microsim

  • /policyengine-policyengine-claude:reform-pipeline

    End-to-end reform pipeline in one command — scan the news for a modelable reform in a topic area, score and verify it with /analyze-policy (incl. the data-calibration check), then publish to the bill tracker or a dashboard.

  • /policyengine-policyengine-claude:setup-verbs

    Install PolicyEngine-themed spinner verbs into your Claude Code settings

  • /policyengine-policyengine-claude:text-to-reform

    Convert a bill / URL / natural-language description into a validated reform-dict — Stage 1+2 of /analyze-policy without running the microsim

  • /policyengine-policyengine-claude:write-tests

    Write unit tests for source files, matching the target repo's observed test conventions

Subagents (12)

  • calibration-diagnostics

    Stage-6 agent. Given a deviation signature (where the microsim disagrees with the prior), identifies the most likely calibration targets / imputed variables driving the gap. Reads Microcosm calibration targets and known-issues to produce a ranked diagnostic checklist. The single highest-expertise st

  • microsim-runner

    Runs a PolicyEngine microsimulation given a reform-dict and jurisdiction. Returns budgetary, poverty, distributional, and geographic impacts. Stripped of any tracker-specific DB-write logic — pure computation. Generalizes the legislative-tracker impact-calculator.

  • model-corroborator

    Stage 5.5 of /analyze-policy. When the original reform has no exact-shape external comparator, runs the closest-shape externally-scored reforms through the PE model as "mirror-shape" validation runs. If the model reproduces the published external scores within ±25%, it corroborates the data calibrat

  • outcome-predictor

    Independent reviewer for reform analyses. Mode 1 (predict) reads ONLY the reform provisions and predicts expected outcomes from first principles — before any PolicyEngine numbers exist. Mode 2 (interrogate) compares those blind predictions against the actual microsim results and classifies every div

  • parameter-locator

    Given a reform provision, locates the corresponding PolicyEngine parameter YAML path(s), checks current values, and emits a reform-dict snippet ready for the PolicyEngine API. Federal + state coverage. Generalizes the legislative-tracker param-mapper.

  • policy-text-researcher

    Fetches and analyzes policy text (legislative bills, executive orders, agency rules, ARPA-style proposals, white papers) and extracts the specific numeric/structural changes to tax and benefit programs. Generalizes the legislative-tracker bill-researcher to handle federal + state, draft + enacted, U

  • prior-scores-finder

    Finds prior scored reforms to anchor a new analysis — PolicyEngine's own published scores first, then official fiscal notes (state legislative fiscal offices, JCT, CBO, CRFB), then think-tank analyses (Tax Foundation, ITEP, CBPP, TPC). Generalizes the legislative-tracker fiscal-finder by adding the

  • reference-validator

    Validates that all parameters have proper references that corroborate the values

  • reform-classifier

    Classifies a reform as PARAMETRIC (existing parameter edit), STRUCTURAL (needs new variable/formula logic), or NOT-POSSIBLE (out of model scope). The Stage-2 gate that decides whether to proceed with microsim or stop and write a "not modelable" note.

  • reform-comparator

    Stage-5 comparator. Takes the microsim output and the prior-scores anchor, returns PASS (within expected band, write up the result) or INVESTIGATE (mismatch, trigger calibration-diagnostics). Normalizes single-year vs 10-year scores and accounts for dataset-version drift.

  • reform-describer

    Generates a mechanical, neutral, non-advocacy description of a reform — both a 1-2 sentence summary and a structured provisions array grouped by program. Used for blog posts, dashboard descriptions, PR write-ups. Generalizes the legislative-tracker model-describer.

  • report-logger

    Routes a completed /analyze-policy report to the right destination — local archive, GitHub issue, tracker DB, or research draft PR — based on verdict + flags. Country-aware routing (INVESTIGATE → country data repo issue, us → PolicyEngine/microcosm; structural → policyengine-{country} issue; everyth

Hooks (3)

  • SessionStart

    python3 "${CLAUDE_PLUGIN_ROOT}/hooks/model-development-context.py"

  • PostToolUse
  • SubagentStart

    python3 "${CLAUDE_PLUGIN_ROOT}/hooks/model-development-context.py"

View source on GitHub

More from joshuarweaver/cascade-data-analytics

All 72 plugins →

Data analysis and business intelligence skill for dashboards, metrics, and strategic insights. Supports data-driven decision-making.

200 skills · 5 agents

0

Time series forecasting integrations with StatsForecast, MLForecast, and NeuralForecast for predictive analytics and data modeling.

200 skills

0

Tool for retrieving and analyzing biological or sequential data from ToolUniverse.

186 skills

0

Marketing skill for SEO insights, site performance analysis, and search optimization using Google Search Console data.

171 skills

0

Comprehensive spreadsheet manipulation with formula support, data analysis, and visualization. Handles XLSX, CSV, TSV for analysis, creation, and modification.

121 skills · 1 MCP server

0

Process and analyze mass spectrometry data (mzML, MGF, MSP formats) with spectral similarity metrics and metadata harmonization for metabolomics research.

118 skills

0

Similar plugins

Install the "AAS Data Analytics & Business Intelligence" editorial skill bundle for Claude Code.

16 skills

sickn33/agentic-awesome-skills 49,620

Xcode

claude

Work with Xcode projects from Claude Code: build, run, and test schemes, render SwiftUI previews, drive simulators and devices, read build logs and diagnostics, and search Apple developer documentation.

anthropics/claude-plugins-official 47,076

Per-deal-and-packaging Commercial domain. v2.8.0 ships 8 skills: orchestrator + pricing-strategist (model picker + Van Westendorp WTP + packaging) + deal-desk (deal scorer + discount approval routing + redline) + partnerships-architect (5-tier classifier + joint GTM + revshare modeler) + channel-economics (cost-to-serve + ROI + mix optimizer) + commercial-policy (data-backed discount matrix + exception flow + linter) + rfp-responder (Shipley structured RFP/RFI/RFQ + win-theme + winrate predictor, context: fork) + commercial-forecaster (4Q-weighted bookings + cohort NRR/GRR + funnel-confidence with mandatory assumption disclosure). Hard rules: pricing outputs model+range (never a single number), deal outputs route to named human approver (never auto-approve), forecast outputs surface conversion assumption, RFP never invents claims for GAP requirements. 21 stdlib Python tools, 28+ reference docs. Distinct from business-growth (sales execution), c-level-advisor/cro-advisor (strategic), finance (close+report).

8 skills · 9 commands · 1 agent

alirezarezvani/claude-skills 29,725

Data analytics skills for PMs: SQL query generation and cohort analysis. Analyze user data, generate queries, and identify retention patterns.

3 skills · 3 commands

phuryn/pm-skills 27,939

bigquery

claudecodex

Data Analytics skills for BigQuery.

1 skill · 1 MCP server

google/skills 24,091

由哈耶克、米塞斯与 Claude 从奥派经济学视角展开多角色讨论。用户要求进入奥派聊天室或用奥派分析问题时使用。

1 skill

dontbesilent2025/dbskill 11,416

Maintain policyengine-policyengine-claude?

This page updates itself from your repo. Add the badge to your README, or get it Featured to pin it above the organic results with a followed link to your site.

claude & codex plugins72 plugins