policyengine-period-patterns
OfficialYear-to-month period conversions and testing
AuthorPolicyEngine
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill bundles essential patterns for handling different definition periods (YEAR, MONTH) in PolicyEngine and how to convert between them.
Core Features & Use Cases
- Period access rules: Access YEAR variables from MONTH formulas using period.this_year.
- Stock vs. flow handling: Correctly handle assets and counts with proper periods.
- Use Case: Implement monthly eligibility checks that depend on annual demographics.
Quick Start
Use period.this_year to read YEAR variables in a MONTH formula, and convert monthly values back to YEAR when needed.
Dependency Matrix
Required Modules
None requiredComponents
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-period-patterns Download link: https://github.com/PolicyEngine/policyengine-claude/archive/main.zip#policyengine-period-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.