fix(project-bootstrap): Search rule — расширенная формулировка по review-субагенту (запрет не-gitignore-aware обхода, rg --no-ignore, ag/ack/find-exec-grep)

v3.0.2 → v3.0.3 (review task:1234 findings).
This commit is contained in:
2026-08-26 11:53:52 +03:00
parent 90861fc197
commit 4b4339733c
3 changed files with 8 additions and 5 deletions

Binary file not shown.

View File

@@ -1,7 +1,7 @@
---
name: project-bootstrap
author: ours
version: 3.0.2
version: 3.0.3
description: >
Initializes or upgrades a project in the current folder: git, .gitignore, README.md,
.wiki/ using Karpathy's method, .tasks/ for task tracking, AGENTS.md (canon) with

View File

@@ -7,10 +7,13 @@ inbox monitor: raise on start
# Search rule
⛔ Never `grep -r`/`find`-walk trees containing node_modules/dist/build/.nuxt
(measured: 3701s vs rg 0s, 2026-08-26) — use `rg` (gitignore-aware) instead.
`grep --include` filters result file names, NOT directory traversal — it still
walks every node_modules entry.
⛔ Never walk `node_modules/`, `dist/`, `build/`, `.nuxt/` (or any parent tree
containing them) with non-gitignore-aware search tools — measured 3701s vs rg
0s (2026-08-26). Use `rg` and NEVER `rg --no-ignore`/`-u` (those bypass the
ignore protection and walk node_modules again). Also no `grep -r`/`-R`/
`--recursive`, `ag`, `ack`, `find … -exec grep`. `grep --include` filters
result file names, NOT directory traversal — it still walks every node_modules
entry; `| grep -v node_modules` filters after the walk, doesn't save you.
talk like a caveman
use project wiki