policyengine-testing-patterns

Enforce YAML structures and naming conventions for PolicyEngine test suites.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill codifies comprehensive testing patterns and quality standards for PolicyEngine tests, ensuring robust, maintainable test suites.

Core Features & Use Cases

  • File structure guidelines: Clear unit vs integration test separation.
  • Period handling rules: Enforce supported period formats in tests.
  • Naming conventions: Standardized test case names and people identifiers.

Quick Start

Create a unit test YAML named after the variable and place it under the proper period directory.

Frequently Asked Questions about policyengine-testing-patterns

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

FAQPage Schema
How do I structure PolicyEngine tests with consistent naming and YAML conventions?

PolicyEngine testing patterns enforce standardized YAML structures organized under gov/states/[state]/[agency]/[program] directories with consistent naming for test cases, variables, and files. Follow the period directory hierarchy and case-naming scheme to ensure quality and repeatable test outcomes across unit and integration test suites.

What are the period handling rules for PolicyEngine tests?

Period handling rules in PolicyEngine tests enforce supported period formats to maintain consistency across test cases. These rules apply to both variable tests and integration tests, ensuring that policy-change handling and period specifications follow standardized patterns throughout your test suite.

How do I organize unit versus integration tests in PolicyEngine?

Unit and integration tests must be separated by file structure guidelines within the gov/states/[state]/[agency]/[program] hierarchy. Unit tests are named after variables and placed under proper period directories, while integration tests follow the same directory structure but serve different validation purposes.

What naming conventions should I use for PolicyEngine test cases and people identifiers?

Standardized naming conventions require consistent test case names and people identifiers throughout your PolicyEngine test suites. These conventions enforce case naming, output formatting, and variable naming schemes to maintain readability and enable automated validation of test structure.

Does PolicyEngine testing validation work across different state and agency programs?

Yes, PolicyEngine testing patterns standardize validation across all state and agency program structures. The patterns apply universally to the gov/states/[state]/[agency]/[program] directory organization, ensuring consistent quality standards regardless of which program or agency you're testing.