What problem does it solve?
This Skill prevents inconsistent policy enforcement by standardizing how new legal/eligibility/budget/cost-cap rules are added to PolicyAgent, including stable flag codes and audit-ready rationale strings.
Core Features & Use Cases
- Uniform rule structure: Ensures new PolicyAgent predicates, flags, and rationale formatting follow the existing conventions.
- Safe extensibility with guardrails: Guides hard vs soft flag behavior, trigger conditions, and side-effect-free predicate methods.
- Quality through required testing and documentation: Requires positive/negative tests and a PRD row update to keep staff console rendering consistent.
- Real example use cases: Add a CONTU-style copyright rule, block patrons based on eligibility, warn on an ISBN denylist, or flag ISO 18626 cost-cap violations.
Quick Start
Ask the AI to generate the exact code, test, and documentation diffs needed to add your new PolicyAgent rule using the conventions in this Skill.