how
Explain how a subsystem works or where code belongs: trace the flow, map the files, cite file:line. Use for "how does X work", walkthroughs before a change, layering questions. Read-only.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 5
- Forks
- 0
01 前言 Front Matter
- name
- how
- model
- opus
- version
- 1.0.0
- description
- Explain how a subsystem works or where code belongs: trace the flow, map the files, cite file:line. Use for "how does X work", walkthroughs before a change, layering questions. Read-only.
- argument-hint
- [question about a subsystem, a flow, or where something should live]
- compatibility
- Designed for Claude Code
02 资源文件 1
- 参考文档references/explorer-brief.md981 B
03 SKILL.md 正文
How: Explain a Subsystem
Outcome Contract
- Outcome: an explanation a senior engineer new to the area can start working from: what it is, how a call flows through it, where things live, what trips people up.
- Done when: every section that applies is written, each claim about the code cites
file:line, and what was not traced is listed rather than guessed. - Writes: nothing. No file, plan or commit.
Process
- Size it. An ambiguous scope → state your reading and continue; the user can redirect. One module, a small utility or a narrow question → simple: trace it yourself and go to step 4. A subsystem across several files or services, a cross-cutting feature or a full overview → complex. When in doubt, simple.
- Explore (complex only). Split the question into 2–4 angles, each a distinct slice. Spawn one
scoutper angle in one message, each briefed from references/explorer-brief.md, perworkwork-swarm.md. - Reconcile (complex only). Merge overlapping findings. Settle a contradiction by reading the code yourself, never by majority. A slice a scout could not trace: read it yourself, or list it under Open Questions.
- Explain. Write the sections below, dropping any that do not apply. A placement question ("where should this live", "which layer owns this") is answered from the boundaries you found: name the owner and cite the code that shows it.
Output
- Overview — 1–2 paragraphs: what it is, what it does, why it exists. A reader can stop here and decide whether to go on.
- Key Concepts — the types, services or abstractions the rest depends on, one line each.
- How It Works — the longest section: what triggers it, each step, where the data goes, the decision points. Prose with function names and
file:line, not code dumps. Add a diagram (mermaid, or ASCII for a simple relation) only when components call each other or data changes shape across stages. - Where Things Live — the few files to open first.
- Gotchas — surprising behavior, history, pitfalls.
- Open Questions — what you could not trace.
Name things concretely: "install calls registry::update", not "the service delegates to the registry". Explain why a part is complex; do not pad a simple one.
Defer to: hunt (a symptom to diagnose), think (a decision, or why it was built this way), librarian (code in another GitHub repo), learn (a domain rather than this codebase).
04 同仓库更多 Skills
poteto
Entry router: match a task to one of seventeen playbooks (feature, bug-fix, refactoring, perf, research, ship, ...) and run its skill steps as a todo list. Use when the route is unclear.
read
Search the web and fetch URLs or PDFs as clean Markdown via a privacy-first cascade (local, gh, TinyFish/Firecrawl/Exa, opt-in proxy). Use to read, cite or save a URL. Not for repo files.
mono-write
Polish a research or learn draft (EN/VI) so it reads naturally, and write CHANGELOG entries and release notes from a commit list. Not for UI copy, marketing or tone changes.
librarian
GitHub code research via gh CLI, no cloning. Use to investigate external repos, find where a symbol is defined, or gather cited evidence and usage examples from GitHub.
git
Git operations with conventional commits. Use for staging, committing, pushing, PRs, merges. Auto-splits commits by type/scope. Security scans for secrets.
work
Execution orchestrator after `brainstorm` (and `to-plan` for high-risk). Runs phases wave-by-wave from locked artifacts, verifies each task, and hands off to `check`, `git`, or `handoff`.