What problem does it solve?
This Skill helps you add Prolog-style logic, unification, and backtracking to JavaScript or TypeScript projects when ordinary branching and filtering become hard to maintain.
Core Features & Use Cases
- Declarative rule solving: Define facts and rules, then query them to find all matching solutions.
- Pattern matching with extraction: Match nested JavaScript structures while binding out the values you need.
- Constraint and search workflows: Model planning, authorization, dependency resolution, type inference, and expert-system style reasoning.
- Multiple execution styles: Choose callback, generator, async callback, or async generator drivers depending on whether your logic is synchronous or awaits external work.
Quick Start
Use the use-yopl skill to add a small rule database, solve a query, and extract the bound results with the appropriate yopl driver.