policyengine-aggregation

Official

Declarative aggregation patterns for PolicyEngine

AuthorPolicyEngine
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill teaches how to sum variables across entities using declarative adds or the add() function, reducing boilerplate code and errors.

Core Features & Use Cases

  • Simple sums with adds: Define adds to sum across members without a formula.
  • Complex sums with add(): Use add() to incorporate conditions or transformations.
  • Use Case: Aggregate multiple income streams across a household with minimal code.

Quick Start

Define a final variable that uses adds = ["employment_income", "self_employment_income"] to compute total earned income.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: policyengine-aggregation
Download link: https://github.com/PolicyEngine/policyengine-claude/archive/main.zip#policyengine-aggregation

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository