cyberneticlibrary

Generate DMN eligibility checks

new-dmn-checkcommandsetup L213
CodeForPhilly/benefit-decision-toolkit
What it does

Generate new DMN eligibility check with XML and Bruno test files

Best for

Rapid scaffold of new DMN-based business rules (eligibility checks) with corresponding API tests in library-api without manual XML/Bruno setup.

Inputs
  • · CheckName (e.g., "AgeVerification")
  • · Category (e.g., "identity")
  • · Repository context (library-api structure)
Outputs
  • · DMN XML file in library-api rules engine
  • · Bruno test request file with test cases
Requires
  • · DMN XML schema
  • · Bruno API testing framework
  • · library-api codebase
Preconditions
  • · library-api repository initialized
  • · DMN rules directory exists
  • · Bruno test directory structure ready
Failure modes
  • · CheckName already exists → collision detected
  • · Category not recognized → warns user
  • · Invalid DMN syntax → Bruno test fails to import
Trust signals
  • · Generates both DMN (declarative rules) and Bruno test (integration)
  • · Argument parsing: [CheckName] [category]
  • · Integrates with library-api project structure automatically