text-find

Locate substrings or regex patterns and return match positions with contextual lines.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you quickly find specific text patterns or substrings within large documents, providing their exact location and surrounding context.

Core Features & Use Cases

  • Substring Search: Find exact text matches within a given text.
  • Pattern Matching: Utilize regular expressions to find complex patterns like email addresses or error codes.
  • Contextual Results: View lines before and after the match for better understanding.
  • Use Case: Debugging logs by searching for all occurrences of "ERROR: Connection timed out" and the lines around them.

Quick Start

Use the text-find skill to find all occurrences of the word 'TODO' in the document stored in the variable 'document'.

Frequently Asked Questions about text-find

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

FAQPage Schema
How do I search for a specific substring or regex pattern within a large document?

To search for a substring or regex pattern within a large document, you can locate specific text matches and retrieve their exact positions alongside surrounding contextual lines for better understanding.

Can I use regular expressions to find complex patterns like email addresses in log files?

Yes, you can use regular expressions to find complex patterns like email addresses or error codes in log files, returning precise match positions and contextual surrounding lines for efficient inspection.

What is the best way to debug log files by finding error messages and their surrounding context?

The best way to debug log files is by searching for specific error messages like "ERROR: Connection timed out" to instantly locate all occurrences and view the contextual lines before and after each match.

Does text search return the exact line positions for matched patterns in code analysis?

Yes, text search returns the exact match positions and surrounding contextual lines for matched regex patterns or substrings, which is highly applicable for detailed code analysis and document review tasks.

How do I locate all occurrences of a specific word in a text document for review?

To locate all occurrences of a specific word in a text document for review, perform a substring search to instantly find exact text matches and retrieve their surrounding context.