Skip to content

Commit ef25564

Browse files
authored
Prefer ripgrep in wiki retrieval guidance (#129)
1 parent e3ead02 commit ef25564

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.skills/llm-wiki/SKILL.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,8 @@ Reading the vault is the dominant cost of every read-side skill. Use the cheapes
460460
| Whole-page content | `Read <file>` | **Expensive** — last resort |
461461
| Relationships across pages | `Grep "\[\[.*?\]\]"` across the vault, or walk wikilinks from a known page | Case-by-case |
462462
463+
**Search command preference:** for shell/file searches, use ripgrep (`rg`, `rg --files`) when available; if not, fall back to `grep`/`find`. Capitalized `Grep`/`Glob` names in these skills are tool-generic primitives for agents that expose those tools.
464+
463465
**The rule:** escalate only when the cheaper primitive can't answer the question. If you can answer from `summary:` fields alone, don't read page bodies. If a grepped section with `-A 10 -B 2` gives you the claim, don't read the whole page. A 500-line page opened to read 15 lines is 485 lines of wasted tokens.
464466
465467
**Why this matters:** a 20-page vault lets you get away with full-vault scans. A 200-page vault does not. The primitives above are how the skills framework scales to large vaults without a database.

0 commit comments

Comments
 (0)