Skip to content

Conversation

@MaxGhenis
Copy link
Contributor

Summary

This PR adds policyengine-claude plugin configuration to enable automated installation of skills for PolicyEngine analysis workflows.

Changes

  • ✅ Add plugin auto-install configuration in .claude/settings.json
  • ✅ Configure auto-install of analysis-tools plugin from PolicyEngine/policyengine-claude

What's Included

The analysis-tools plugin provides 3 skills (reference documentation):

1. policyengine-us-skill

  • Situation creation patterns (single, married, families)
  • Common variables reference (income, deductions, benefits, taxes)
  • Using axes for parameter sweeps
  • Policy reform definitions
  • Helper functions and examples

2. policyengine-analysis-skill

  • Impact analysis patterns (distributional, case studies)
  • Plotly visualizations with PolicyEngine branding (teal #39C6C0)
  • Streamlit dashboard templates
  • Jupyter notebook best practices
  • Reform analysis code templates

3. policyengine-standards-skill

  • Python standards (Black, 79-char, uv run)
  • React standards (Prettier + ESLint)
  • Changelog management (changelog_entry.yaml)
  • Git workflow best practices
  • Common AI pitfalls

Benefits

For Analysis Work

  • Reference documentation - Claude automatically knows PolicyEngine patterns
  • Best practices - Consistent code quality and visualization standards
  • Faster development - Templates and examples for common analysis tasks
  • Team standardization - Everyone uses the same patterns

How It Works

Skills are automatically loaded by Claude when relevant. For example:

You: "Create a Streamlit dashboard analyzing CTC reform impacts"

Claude: [Uses policyengine-analysis-skill for dashboard patterns]
        [Uses policyengine-us-skill for simulation setup]
        [Uses policyengine-standards-skill for code quality]

Installation

Automatic (Recommended)

When you trust this repo in Claude Code, the plugin auto-installs!

Manual (Optional)

/plugin marketplace add PolicyEngine/policyengine-claude
/plugin install analysis-tools@policyengine-claude

Testing

After merging:

  1. Team members trust the repo in Claude Code
  2. Plugin auto-installs from marketplace
  3. Skills are automatically available when working on analysis
  4. Try asking Claude to create analysis code and observe it using the skill patterns

Related


🤖 Generated with Claude Code

Co-Authored-By: Claude [email protected]

- Add plugin auto-install configuration in .claude/settings.json
- Configure auto-install of analysis-tools plugin from PolicyEngine/policyengine-claude
- Provides 3 skills for PolicyEngine analysis workflows

Included skills:
- policyengine-us-skill: Simulation patterns, situation creation, variable reference
- policyengine-analysis-skill: Impact analysis, visualizations, Streamlit/Plotly patterns
- policyengine-standards-skill: Code quality, formatting, CI requirements

Benefits:
- Automated reference documentation for PolicyEngine patterns
- Best practices for analysis repositories
- Consistent code quality across team
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants