policyengine-app

Compute household tax and benefit outcomes with an interactive React UI.

31|6|Updated Oct 19, 2025
One-click install
npx skills add https://github.com/PolicyEngine/policyengine-claude --skill policyengine-app
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: policyengine-app
Source: https://github.com/PolicyEngine/policyengine-claude/tree/main/skills/policyengine-app-skill
Command: npx skills add https://github.com/PolicyEngine/policyengine-claude --skill policyengine-app

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires react, react-router-dom, plotly.js, axios.

What problem does it solve?

Developing and maintaining the PolicyEngine web application requires adherence to specific React patterns, state management, API integration, and design principles for a consistent user experience. This Skill provides the essential guidance to build and contribute to the app effectively.

Core Features & Use Cases

  • React Best Practices: Guides on using functional components, lifting state up, and efficient API integration.
  • Routing & Navigation: Covers React Router v6 for managing app navigation and URL parameters.
  • Data Visualization: Integrates Plotly for creating interactive and branded charts within the application.
  • Blog & Content Management: Explains the structure for adding and managing blog posts and research articles.
  • Use Case: Add a new interactive chart to the PolicyEngine web app's policy page, ensuring it uses Plotly, adheres to PolicyEngine's branding, and fetches data via the standard API integration pattern.

Quick Start

Use the policyengine-app skill to create a new React functional component that displays a user's income.

Frequently Asked Questions about policyengine-app

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build an interactive web interface for policy analysis using React?

Build an interactive web interface using React functional components with React Router v6 for navigation, Plotly.js for data visualization, and axios for API integration. This approach enables users to input household details, compute tax and benefit outcomes, visualize marginal rates, and compare reform scenarios while maintaining URL-encoded parameters for reproducible sharing.

How do I integrate Plotly charts into a React application for policy visualization?

Integrate Plotly.js into your React app by creating functional components that fetch data via axios and render interactive charts with PolicyEngine branding. Plotly provides responsive, interactive visualizations suitable for displaying marginal tax rates and reform comparisons within your application's UI.

Can I use React Router v6 with functional components to manage policy reform parameters?

Yes. React Router v6 works with functional components to manage URL-encoded reform parameters, enabling reproducible policy scenarios and shareable links. This pattern allows users to bookmark, share, and embed specific reform comparisons across different parts of the application.

What's the best way to structure API calls for household tax and benefit calculations in React?

Use axios for API integration following a standard pattern: lift state up to manage household inputs, fetch calculations through axios calls, and pass results to child components for rendering. This ensures consistent data flow across your application and supports efficient re-renders with React 18.

How do I embed PolicyEngine policy panels in other websites?

Create self-contained React functional components with URL-encoded reform parameters that can be embedded externally. Use axios to fetch data independently, Plotly for visualization, and React Router patterns to manage internal navigation while maintaining isolation from the host site.

What are the limitations of URL-encoded reform parameters for sharing policy scenarios?

URL-encoded parameters work well for reproducible sharing and embedding but have practical length limits for complex scenarios. For very detailed reforms with many parameters, consider supplementary approaches like unique scenario identifiers or API-persisted configurations alongside URL sharing.