Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of token-reduce?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/chimera-defi-token-reduce)
---
name: token-reduce
license: MIT
description: "Find where code lives in an unfamiliar repo with one ranked path list before reading files."
triggers:
- token-reduce
- find where code lives
---
# token-reduce
When you don't know which file holds something, ask for a short ranked list first, then read only those files.
```bash
token-reduce-paths session send timers # up to 20 paths, best first
token-reduce-snippet send_message # top 10 paths + up to 40 file:line hits
```
- Run it from inside the repo. A file whose path matches more of your words ranks first; files whose content matches fill the remaining slots.
- From `$HOME` or `~/workspace` it refuses (exit 2); `cd` into a repo or set `TOKEN_REDUCE_REPO_ROOT`.
- `No results found.` means nothing matched. Try different words or a symbol name.
- Exit 1 with a `token-reduce:` line on stderr means the search timed out (20 s) or `rg` failed. That is not "nothing matched".
- In Claude Code the built-in Grep and Glob tools are fine for a known name. This helper is for vague, multi-word lookups.
- Repo-relative form: `./scripts/token-reduce-paths.sh <words>`.