一键导入
recall-scout
Scout an unfamiliar codebase — memory-first repo map, key paths, tests, risks, and next steps, with a strict sensitive-data boundary
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scout an unfamiliar codebase — memory-first repo map, key paths, tests, risks, and next steps, with a strict sensitive-data boundary
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Add a structured memory record to Recall — breadcrumb, decision, or learning
Run health checks on all Recall memory subsystems — database, MCP, hooks, embeddings
Flush current session to Recall database and capture a Library of Alexandria entry
Browse and search the Library of Alexandria — curated knowledge entries with extracted wisdom
Show recent Recall memory records across all tables or a specific table
Search Recall memory using FTS5 full-text search across all tables
| name | recall-scout |
| description | Scout an unfamiliar codebase — memory-first repo map, key paths, tests, risks, and next steps, with a strict sensitive-data boundary |
| allowed-tools | Bash(git log -10 --oneline), Bash(git status -s | head), Bash(codegraph status --json) |
Produce a scout report for the current repository: a fast, structured orientation for whoever is about to work in this codebase. An optional focus argument narrows the scout to a subsystem, path, or question (e.g. auth, the extraction pipeline, src/db). With no focus, scout the repo as a whole.
This is the canonical scouting workflow; platform guides reference it and only remap tool names. Do not hand-copy these steps into FOR_CLAUDE.md, FOR_PI.md, FOR_OPENCODE.md, or opencode/recall-memory.md — those files point here and supply only their own tool-name mapping.
Three bounded orienters, each well under 1 KB of output. On Claude Code the ! prefix inlines their output here at prompt load; on hosts without the ! mechanic, run the same three commands manually as your first step.
git log -10 --onelinegit status -s | headcodegraph status --jsongit log.codegraph status --json — it exits 0 even on an unindexed repo) and branch on initialized:
initialized: true): check freshness — if pendingChanges is non-zero or reindexRecommended is true, run codegraph sync -q (cheap, safe) before querying.initialized: false): offer indexing, don't run it — "this repo isn't indexed; codegraph init takes ~2 s per 200 files, writes only a self-gitignored .codegraph/, and codegraph uninit reverses it — want it?" Run codegraph init only on an explicit user yes; indexing is the user's decision, never auto-run it. Without a yes, continue on the backstop.codegraph_explore, wherever codegraph explore appears — identical output; everything else on this page is CLI-only.)codegraph status --json (languages, symbol-kind profile, file/node counts; already inlined above) plus codegraph files --max-depth 2 --no-metadata (the repo tree; add --filter <dir> when the focus names an area). The bundle costs ~600 tokens and replaces a blind tree walk. Then read the declared ground truth directly — these files are small and never in the index: README, AGENTS.md/CLAUDE.md, the dependency manifest (package.json including its scripts, or pyproject.toml / Cargo.toml / go.mod), the compiler/tooling config (tsconfig.json or equivalent), and CI workflow names. Without CodeGraph, the same declared reads plus a bounded tree walk produce the map.package.json, pyproject.toml, Cargo.toml, go.mod). Lockfiles stay behind the sensitive-data boundary: map their existence, never their contents, so version ground truth is the declared range, not the resolved lockfile pin. CodeGraph contributes the languages list and symbol-kind profile from status --json; it does not know dependencies or versions.path:line where useful. With a live index, surface them with at most two narrow codegraph explore calls (see the query discipline below) rather than guessing from the tree: one explore answers "what calls this seam", "what does it depend on", and "trace a path between two symbols" in a single query. Fall back to grep when CodeGraph isn't available.AGENTS.md/CLAUDE.md/CONTRIBUTING.md) plus lint/format configs (eslint/prettier/.editorconfig, tsconfig strictness); observed — one CodeGraph style probe over a representative module (codegraph explore of that module, or cheaper, codegraph node --file <path> --symbols-only) for naming patterns, module seams, and test-file conventions — an explore used here counts against the two-explore cap; learned — Recall learnings, which often encode "wrong → right" convention corrections.CodeGraph replaces the expensive grep-and-read loop, but explore pastes verbatim source and has no output cap — discipline keeps the scout token-frugal:
explore at a symbol, a file, or a seam — never a vague topic. Off-target matches cost the same tokens as on-target ones.explore calls per scout run, including the Conventions style probe.path:line cites — not quoted source blocks.codegraph callers <symbol> --limit 5, codegraph callees <symbol> --limit 5, codegraph query <term> --limit 3 --kind <kind>, codegraph node --file <path> --symbols-only.query/node/callers print "not found" and still exit 0 — check the output text for misses, don't exit-check.Output the scout report in chat with these sections, in order:
Never read, echo, summarize, or write any of the following — if the focus would require crossing this boundary, stop and say so instead:
.env*, *.key, *.pem, tokens, API keys, anything matching a credential pattern. Do not print their values even if asked to "summarize config."node_modules/, dist/, build/, .git/ internals, lockfile contents. Map their existence, never their contents.~/.agents/Recall/recall.db (or any production DB) directly. Use the Recall CLI and search tools, which read the database for you, scoped to this project — never raw SQL against the file.The scout report is chat-only by default — write nothing to disk. Persist an artifact only when the repo endorses it: a .agents/atlas/artifacts/ directory already exists, or the user explicitly asks for a saved report. When endorsed, write only to .agents/atlas/artifacts/ as YYYY-MM-DD-scout-<focus>.md. Never write scout artifacts to .agents/atlas/handoffs/ (reserved for handoffs) or anywhere else.