用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/chenxin-yan/nix-dotfiles --skill codebase-walkthrough命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | codebase-walkthrough |
| description | Map a codebase or run a resumable, dependency-first guided tour. |
| disable-model-invocation | true |
Build the user a working mental model of a codebase: where its important parts live, how execution flows through them, and why its boundaries exist.
Follow the user's explicit request:
For a fresh tour or resume, look for WALKTHROUGH.md at the repository root,
then docs/WALKTHROUGH.md. Resume whichever exists. If both exist, ask which
is authoritative. If a fresh tour would replace an existing file, ask before
overwriting it. Create new progress files only at the repository root.
When the route or scope is unclear, confirm the user's goal, current familiarity, desired depth, and areas to include or skip. Proceed when the route and scope are explicit.
Read the repository and produce a codebase map grounded in cited paths:
The map is complete when every claim is supported by files you read and the next repository read would not change its architecture-level picture.
For a map-only request, present the map, offer a full tour, and stop here.
Propose a dependency-first reading order: foundations before their consumers. Each part covers one subsystem or package and states:
Wait for approval. After approval, create WALKTHROUGH.md from the template
below. Do not start Part 1 while approval is still pending.
Cover exactly one part per response. For that part, give the user:
path:line pointers
for the important code.Depth follows importance: explain core logic in detail and summarize glue.
Update WALKTHROUGH.md, then stop. Answer follow-up questions and correct
misunderstandings before moving on. Log feedback that changed the explanation
or plan. When the user changes the plan, immediately update its order,
current marker, and handoff notes.
Before teaching any later part, check whether the repository state recorded in
WALKTHROUGH.md still matches the worktree. Run the drift check if it changed.
WALKTHROUGH.md is the tour's compact source of truth, not a transcript.
Update it after plan approval, after presenting each part, after consequential
user feedback, and after every drift briefing.
# Codebase Walkthrough — <project>
Updated: <date>
Repository state: <full HEAD sha> <clean | dirty: paths>
## Tour contract
- Goal: <what the user wants to understand or do>
- Starting familiarity: <relevant context>
- Depth and scope: <included and skipped areas>
## Codebase map
<current map>
## Plan
- [x] Part 1: <name> — covered
- [ ] Part 2: <name> ← current
- [ ] Part 3: <name>
## Part logs
### Part 1: <name>
- Baseline:
Scope paths:
Key files walked:
Core abstractions:
User corrections and decisions:
Open questions:
A part's baseline is the current commit when it is presented. Keep part logs brief: preserve decisions and the mental model, not the lesson prose.
Run this on every resume and whenever the repository changes during the tour:
HEAD. Record
dirty paths in handoff notes and recheck them on later resumes until they
are committed or reverted.Without Git history, reliable drift detection is unavailable. Say so, ask the user what changed, and re-read those areas before continuing.
After the last part and its check, replace the handoff notes with a one-page system summary and mark every resolved open question.
基于 SOC 职业分类