rulebox
OfficialEncapsulate and run business rules in ColdBox
AuthorColdBox
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Encapsulates complex conditional logic and policy evaluation outside of handlers and services so that eligibility, pricing, authorization, and workflow branching can be expressed as reusable, testable rules instead of sprawling if/elseif trees.
Core Features & Use Cases
- RuleEngine injection for seamless dependency access in ColdBox/BoxLang components.
- Define rules with when/then/otherwise closures, compose named rule sets, chain rules, and run sets against a mutable context struct.
- Production patterns such as loan eligibility evaluation, pricing adjustments, policy enforcement, and workflow branching that remain deterministic and testable.
- Testability: call .run(context) directly from TestBox specs and keep side effects out of rule closures.
Quick Start
Run a named rule set like loan_eligibility against an applicant struct to return approved and reasons fields.
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: rulebox Download link: https://github.com/ColdBox/skills/archive/main.zip#rulebox 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 471,000+ vetted skills library on demand.