agentleFS
klich3klich3/skill-search-in-files-ack/.agents/skills/skill-search-in-files-ack/SKILL.md

skill-search-in-files-ack

Skill1 starsChanged 8 months agoMITView on GitHub

High-performance file search using python-ack. Use when asked to search for text in files, find code patterns in large directories, or perform multi-process grep with path exclusions. Optimized for programmers searching source code trees.

  • Installs packages

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When searching for specific strings or regex patterns across many files.

    line 12
  2. Very specific:

    When grep is too slow or includes too much "noise" (like .git folders or build artifacts).

    line 13
  3. Distinctive:

    When you need to exclude specific paths or patterns from the search results.

    line 14

≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill Search In Files Ack

This skill provides a powerful and fast way to search through codebases using python-ack. It supports multi-process searching and advanced exclusions to keep results clean and relevant.

When to Use This Skill

  • When searching for specific strings or regex patterns across many files.
  • When grep is too slow or includes too much "noise" (like .git folders or build artifacts).
  • When you need to exclude specific paths or patterns from the search results.

Prerequisites

  • python-ack must be installed (pip install python-ack).
  • Python 3.x.

Usage

The skill provides a helper script that you can call to perform searches.

Search for text in a directory

python3 .agents/skills/skill-search-in-files-ack/scripts/search_ack.py "pattern" [directory]

Options

  • -x, --exclude-path: Exclude paths matching this pattern.
  • -s, --exclude-search: Exclude search results matching this pattern.
  • -n, --num-processes: Number of processes to use (default 4).

Examples

Search for "TODO" excluding the "node_modules" folder

python3 .agents/skills/skill-search-in-files-ack/scripts/search_ack.py "TODO" . -x "node_modules/*"

Search for usage of a function while ignoring test files

python3 .agents/skills/skill-search-in-files-ack/scripts/search_ack.py "calculate_total" . -s "*_test.py"

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.