recon
When the user wants this repository's saved map read, created, or refreshed.
- License 许可
- MIT
- 最近更新
- 2026-11-10
- Stars
- ★ 6
- Forks
- 0
01 前言 Front Matter
- name
- recon
- description
- When the user wants this repository's saved map read, created, or refreshed.
02 资源文件 1
- 参考文档references/mapping.md1.2 KB
03 SKILL.md 正文
Recon
Route and memory
Default: patch existing memory, otherwise map cold. "Read the existing report"
or "show the saved map" selects read, never refresh or rebuild. "Refresh",
"rebuild", or "from scratch" selects rebuild. A named area is the focus.
Conflicting read/rebuild or rebuild/patch wording is BLOCKED.
Expand ~/.recon/ to the absolute memory root, outside the target repo.
Store snapshots, ledgers, and sibling temporary files there so they survive
skill updates; keep runtime artifacts out of the skill directory.
Resolve repo root, HEAD, dirty paths, and the real absolute Git common directory.
A shared-checkout key is
<label>-<hash8>.md: hash the common directory with SHA-256; take eight digits.
Label is its parent's basename for .git, otherwise its own basename.
Try that key first, then legacy keys hashing the current root and the primary
checkout root from git worktree list --porcelain. For each candidate, verify
frontmatter repo resolves to this same common directory. A matching SHA alone
does not establish repository identity. Unverifiable identity is BLOCKED.
Prefer the shared key; multiple legacy candidates with different heads require
an explicit path. A supplied report path must pass the same identity check.
Frontmatter: repo (primary checkout root), full commit head, ISO updated.
Sections: Layout, Entry points, Modules, Data flows, Commands, Conventions,
Gotchas, Evidence. Every claim cites evidence; at most ten bullets per section
and 200 lines total. Validate, write a sibling .tmp, then rename atomically.
1. Locate
Record route | memory | stored head | HEAD | dirty | current | pending | terminal.
For read, open only existing memory: create no directory, ledger, or snapshot.
For map/rebuild, persist the ledger at <memory>.ledger through atomic rename
after each item; delete it on success. Done when route and candidates are fixed.
2. Read or map
Read: return the saved map with snapshot path/date/head, coverage, and dirty
overlay. Compare stored head to HEAD; disclose stale or unresolvable metadata,
but do not repair it or inspect source to refresh claims. No report →
NO_REPORT, naming searched paths. Done with READ when the saved map and
limitations are presented and no file changed.
Map: use references/mapping.md for cold/rebuild exploration or committed
warm drift. A missing/unresolvable head takes the cold path. Reuse verified
legacy memory, but write new snapshots to the shared key; leave legacy files
untouched. Done when every section has evidence or None found, limits hold,
and the stored head equals current HEAD.
3. Resume and report
After interruption, recompute HEAD and changed paths; restart affected work
when the ledger differs. Resume the first pending item. Present the map in
thread, labeling sections rebuilt, patched, or representative-only; cite its
path, focus, drift, unverified areas, and dirty overlay. Warm maps end with
Drift since last recon. Done when each claim's coverage is disclosed.
Terminals: READ, NO_REPORT, SUCCESS, BLOCKED. Stored head always
names a real commit on writes. Memory is a map, not an inventory or history.
04 同仓库更多 Skills
use-skill
When the user gives a GitHub link to a skill and wants it run without installing it.
todoist-task
When the user wants a Todoist task created, or shown before it is created.
restate
When the user wants the last reply said again in plain words, wants a catch-up since their last message, or wants the decision they need to make.
upfront-design
When the user wants a design agreed before coding, a draft resumed, or an approved milestone checked.
prath-mode
When the user wants a goal sent to one skill or one delivery chain.
peer-review
When the user asks whether a plan, a design, or a proposed change is ready to build.