tsentials/predicate
CommunityCompose reusable boolean conditions in TS
Software Engineering#typescript#refinement#type guards#validation#rule engine#predicate#functional composition
Authorsenrecep
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps you stop scattering ad-hoc boolean checks throughout your TypeScript code by providing a composable way to define, combine, and reuse conditions.
Core Features & Use Cases
- Composable predicates: build conditions with
Predicate.fromand combine them usingPredicate.and,Predicate.or, andPredicate.notfor clear, reusable logic. - Bulk composition: create complex rules with
Predicate.all(all must match) andPredicate.any(any may match). - Refinements (type guards): narrow unknown values safely using
Predicate.refinement, including intersection narrowing withPredicate.andRefinement. - Rule engine integration: convert a predicate into a rule-compatible function via
Predicate.toRuleto standardize validation-style flows.
Quick Start
Use the tsentials/predicate Skill to define predicates like isAdult and isActive, combine them with Predicate.and, and then convert the result into a rule using Predicate.toRule.
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: tsentials/predicate Download link: https://github.com/senrecep/tsentials/archive/main.zip#tsentials-predicate 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.