matches

Check text strings against substring, regex, or exact match patterns.

10|Updated Jul 22, 2025
One-click install
npx skills add https://github.com/bdambrosio/Cognitive_workbench --skill matches
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: matches
Source: https://github.com/bdambrosio/Cognitive_workbench/tree/main/src/tools_out/matches
Command: npx skills add https://github.com/bdambrosio/Cognitive_workbench --skill matches

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables conditional logic within agent workflows by checking if a given text string matches a specified pattern, whether it's a simple substring, a regular expression, or an exact match.

Core Features & Use Cases

  • Conditional Flow Control: Direct the agent's actions based on the content of text data.
  • Data Validation: Ensure input data conforms to expected formats or contains specific keywords.
  • Filtering: Selectively process information based on pattern matching criteria.
  • Use Case: In an email processing agent, use this Skill to check if an incoming email's subject line contains the word "Urgent" before escalating it.

Quick Start

Use the matches skill to check if the variable $email matches the regex pattern for a valid email address.

Frequently Asked Questions about matches

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check if a text string matches a specific pattern in an agent workflow?

Pattern matching validates text data by checking if a string conforms to a specified substring, regex, or exact match type. This returns a boolean output to enable conditional logic and direct subsequent agent actions.

Can I use regex to validate text input format within my automated workflow?

Yes, regex validates text input format within automated workflows by evaluating a string against a specified regular expression pattern. This returns a boolean output to enable conditional flow control and data validation.

What is the best way to filter text data based on keyword matching criteria?

Filtering text data based on keyword matching criteria is done by checking if a string contains a specified substring. This returns a boolean output that selectively processes information based on the pattern matching results.

Does this text matching approach support exact match types for strict data validation?

Exact match types support strict data validation by verifying if an input string perfectly matches a specified pattern. This returns a boolean output that ensures input data conforms precisely to expected formats.

How do I set up conditional flow control based on the content of an email subject line?

To set up conditional flow control based on email subject line content, use a text matching skill with a substring pattern. For example, check if the subject contains keywords like Urgent to return a boolean and trigger workflow escalation.

What pattern and match type parameters are required for flexible text analysis?

Flexible text analysis requires a pattern parameter defining the text to find and a match type parameter specifying substring, regex, or exact matching. These parameters evaluate the input string and return a boolean output for data validation.