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
In this repository2 other files it gives its agents.
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
- Distinctive: line 12
When searching for specific strings or regex patterns across many files.
- Very specific: line 13
When grep is too slow or includes too much "noise" (like .git folders or build artifacts).
- Distinctive: line 14
When you need to exclude specific paths or patterns from the search results.
≈ “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.
Files
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
grepis too slow or includes too much "noise" (like.gitfolders or build artifacts). - When you need to exclude specific paths or patterns from the search results.
Prerequisites
python-ackmust 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"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
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.

