# Practice Notes 按工具 / 主题分节。跨工具的工作流放在前面(如 `## Locate workflow`),单工具的具体实践放各自 `## ` 节下。 ## Locate workflow (for mature/unfamiliar repos) - `repomix -o /tmp/x.xml` (or `repomix `) — full-repo LLM pack; slice by subdir if > 100k tokens - `eza --tree --git-ignore --level=3 .` for layout (path arg required) - `fd ` for files; `rg ` for call sites - `git ls-files` when tokens are tight ## lightpanda - 关掉遥测:`export LIGHTPANDA_DISABLE_TELEMETRY=true` - 快速抓 markdown(A 模式):`lightpanda fetch --dump markdown --obey-robots `;`--wait-until` / `--wait-ms` / `--wait-selector` 调节等待 - 作 web-access skill 的 CDP 后端(B 模式): 1. `lightpanda serve --host 127.0.0.1 --port 9222` 后台跑 2. `node ~/.claude/skills/web-access/scripts/cdp-proxy.mjs` 后台跑(自动扫 9222) 3. 用 `curl http://localhost:3456/new?url=...` 等 API;`/targets` 列 tab,`/eval?target=ID` 执行 JS,`/info?target=ID` 查标题/URL - 区分 A vs B:公开静态页用 A(快、无状态);需要点击/上传/多 tab/交互取 DOM 用 B - 不具备登录态(对比 web-access 连用户日常 Chrome);需要登录的站点仍走用户 Chrome 模式