Skip to content
Back to skills

Text Find

ASecurity

Find a substring or pattern in a text document. Returns position with surrounding context. Deterministic — use this instead of asking the LLM to find substrings.

  • 10 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 6, 2026
businesspython

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned June 6, 2026

npx -y skills add bdambrosio/Cognitive_workbench --skill text-find --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Text Find?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Text Find
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bdambrosio-text-find/badge)](https://www.skillsdirectory.com/skills/bdambrosio-text-find)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: text-find
description: Find a substring or pattern in a text document. Returns position with surrounding context. Deterministic — use this instead of asking the LLM to find substrings.
args:
  source: required string — text to search (a `$stepN` binding or a literal)
  pattern: required string — substring or regex pattern to find
  context_lines: optional int (default 1) — lines of surrounding context per match
---

# text-find

Locate patterns or substrings in text and return all matches with context.

## Behavior

- Case-sensitive by default.
- Supports standard Python regex syntax in `pattern`.
- Returns every match (not just the first), with line/character position and the surrounding lines.
- Returns an empty result if no matches — not an error.

## When to use vs `assess` / `process_text`

- `text-find` — exact substring or regex match. Deterministic. No LLM cost.
- `assess` — natural-language predicate (semantic match). LLM-backed.
- `process_text` — open-ended transformation with an instruction.

If you want "does this contain the literal string X?" → `text-find`. If you want "does this contain mention of X?" (paraphrases count) → `assess`.

## Examples

```json
{"thought": "find every TODO in the document", "tool": "text-find", "source": "$step1", "pattern": "TODO"}
```

```json
{"thought": "locate error lines mentioning a timeout", "tool": "text-find", "source": "$step1", "pattern": "ERROR.*timeout", "context_lines": 3}
```

Files in this skill

  • Skill.md1.5 KB
  • tool.py3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.