tsentials/predicate

Community

Compose reusable boolean conditions in TS

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.from and combine them using Predicate.and, Predicate.or, and Predicate.not for clear, reusable logic.
  • Bulk composition: create complex rules with Predicate.all (all must match) and Predicate.any (any may match).
  • Refinements (type guards): narrow unknown values safely using Predicate.refinement, including intersection narrowing with Predicate.andRefinement.
  • Rule engine integration: convert a predicate into a rule-compatible function via Predicate.toRule to 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 required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.