跳转到内容

wayfinder

一个松散的想法冒了出来,事情大到一次代理会话装不下,前面的路也笼罩在迷雾里:通往目的地的路还看不清。Wayfinding 要做的是找出这条路,而不是直接冲向目的地。这个 skill 会在仓库的 issue 跟踪器上绘制一张共享地图,再逐个处理上面的决策工单(需要通过决策来解决的问题,不是可以直接执行的构建任务),直到路线清晰为止。

每项工作的目的地都不一样,绘制地图要先给它命名,因为目的地会决定每张工单的内容。目的地可能是一份准备交接并继续迭代的规格,也可能是规划开始前要敲定的决定,还可能是就地完成的改动,例如数据结构迁移。这张地图不限定领域:工程工作、课程内容,只要符合这种形式都可以。

Wayfinder 默认用于规划:每张工单都要解决一个决定;当路线清晰,且开始执行前没有待决定的问题时,地图就完成了。想直接动手的冲动,通常说明你已经走到地图边缘,该交接了。某项工作可以在它的备注里明确要求把执行也纳入地图;除此之外,产出应该是决定,而不是交付物。

每张地图和工单都是一条 issue,因此都有一个名称:它的标题。在人会读到的所有内容里(叙述文字、地图的「已做决定」),都要用名称来指代它,不能只写 id、编号或 slug。一串 #42, #43, #44 难以阅读;名称一眼就能看懂。id 和 URL 仍然保留:名称会成为链接文字,链接里包含 id 和 URL,但它们只能放在名称里面,不能代替名称。

地图是在本仓库的 issue 跟踪器上创建的一条 issue,标签为 wayfinder:map,也是权威记录。地图的工单是它的子 issue。

地图是索引,不是内容仓库。它会列出已经做出的决定,并链接到记录详细内容的工单。每项决定只在一个地方记录,也就是它对应的工单;地图只概述并链接,不会重复记录。

地图、子工单、阻塞关系和前沿查询具体存放在哪里,由跟踪器决定。 应该已经有人告诉你使用哪个 issue 跟踪器。如果没有,请让用户运行 /setup-matt-pocock-skills。查看跟踪器文档中的「Wayfinding 操作」一节,了解本仓库如何实现这些功能。如果没有指定跟踪器,默认使用本地 Markdown 跟踪器。

每次会话只加载一次地图的低分辨率视图。不列出未关闭的工单:它们是开放的子 issue,通过查询找到。

## Destination
<what reaching the end of this map looks like: the spec, decision, or change this effort is finding its way to. One or two lines; every session orients to it before choosing a ticket.>
## Notes
<domain; skills every session should consult; standing preferences for this effort>
## Decisions so far
<!-- the index: one line per closed ticket, enough to judge relevance, then zoom the link for the detail the ticket holds -->
- [<closed ticket title>](link): <one-line gist of the answer>
## Not yet specified
<!-- see "Fog of war": in-scope fog you can't ticket yet; graduates as the frontier advances -->
## Out of scope
<!-- see "Out of scope": work ruled beyond the destination; closed, never graduates -->

每张工单都是地图的子 issue;它的身份由跟踪器的 issue id 确定。工单正文要提出一个问题,规模控制在一次 100K token 代理会话可以完成的范围内:

## Question
<the decision or investigation this ticket resolves>

每张工单都带有 wayfinder:<type> 标签,类型可以是 research、prototype、grilling 或 task(参见工单类型)。地图和工单只能带 wayfinder: 标签,不能带 ready-for-agent 这类分流标签:它们记录的是决定,不是实施工作。

会话开始工作前,必须先认领一张工单:把它分配给负责推进地图的开发者,这样其他并行会话就会跳过它。认领方式就是设置负责人:未关闭且未分配的工单就是无人认领。

阻塞关系使用跟踪器原生的依赖关系功能。这很重要,因为它会在跟踪器自己的界面上直观显示前沿,让人不用打开地图也能看出哪些工单可以处理。只有不支持原生阻塞关系的跟踪器才使用正文约定。工单的所有阻塞项都关闭后,这张工单才算未受阻塞;开放、未受阻塞且无人认领的子工单组成前沿,也就是当前已知范围的边界。

答案不写在工单正文里;解决工单时再记录答案(参见推进地图)。解决工单时创建的资源要链接到 issue,不能直接粘贴进去。

每张工单都属于 HITL(有人参与,需要与能够代表自己表达意见的人一起完成)或 AFK(由代理独立处理)。

HITL 工单只能通过与人的实时交流来解决;代理不能代替人回答。让 grilling 代理自己回答问题,就违背了这个原则。

  • Research(AFK):阅读文档、第三方 API 或知识库等本地资源,找出决定所需的事实。由一个调用 Skill 工具并指定「research」的子代理解决。当需要当前工作目录之外的知识时使用。
  • Prototype(HITL):先做一个成本低、粗略但具体的产物,让讨论更有效,例如提纲、初步方案、存根或 UI/逻辑代码;调用 Skill 工具并指定「prototype」。把 prototype 作为资源链接。关键问题是「它应该是什么样」或「它应该如何运作」时使用。
  • Grilling(HITL):通过对话解决,默认使用这个类型。始终调用 Skill 工具两次,分别指定「grilling」和「domain-modeling」。
  • Task(HITL 或 AFK):在做出决定前必须完成的人工工作:没有待讨论、制作 prototype 或调查的问题,但讨论会被这件事卡住。例如注册服务以评估其 API、申请访问权限、移动数据以查看数据形态。这是唯一一种需要实际执行的类型。它通过解除某项决定的阻碍来发挥作用,而不是直接交付目的地。如果代理能独立完成,就由代理负责(AFK);否则,就交给人一份明确的检查清单(HITL)。工作完成后解决工单;答案要记录完成了什么,以及后续工单依赖的事实(凭据位置、新 URL、行数等)。

地图刻意保持不完整:只有在能够看清时,才把内容画出来。现有工单之外就是迷雾区:你大致知道那里还有待决定或调查的事项,但它们依赖尚未解决的问题,所以目前还无法准确写成工单。地图上的「尚未明确」一节用来记录这些模糊的问题,以及之后需要重新查看的领域。它是通往目的地的未知前沿:这里的内容都在范围内,只是还不够明确,不能写成工单。能写多清楚就写多清楚;它也能让协作者了解这项工作将走向何处。

迷雾还是工单? 判断标准是:现在能不能把问题准确说出来,而不是现在能不能回答。

  • **符合工单条件:**问题已经明确,即使受阻、暂时无法处理也一样。
  • **仍属尚未明确:**问题还不能准确表达。不要提前把迷雾切成工单大小;它的范围比一张工单更粗略。等前沿推进后,一片迷雾可能变成几张工单,也可能不需要任何工单。

「尚未明确」不包括已经做出的决定(「已做决定」)、已经建立的开放工单,以及不在范围内的事项(见下一节)。

迷雾只会朝着目的地延伸。目的地决定了范围,所以超出目的地的工作不在范围内:它不是迷雾,也不该放在「尚未明确」里。地图上要单独设置「不在范围内」一节,记录这项工作中有意排除的事项。范围决定一项工作是否列在这里,不取决于它是否明确。

排除在范围外的工作永远不会进入前沿;前沿会在目的地处结束。只有重新设定目的地时,这类工作才会重新出现,而且要作为一项新工作处理,不能接着原来的工作继续。

排除范围外的事项是一项范围决定,不是路线上的一步。如果已有工单后来发现超出目的地(可能是在绘制地图时误纳入,也可能是在解决工单时才发现),就要关闭它(关闭的工单明确不会进入前沿),并在「不在范围内」一节加一行,简要说明原因并链接到已关闭的工单。不要把它放进「已做决定」;那里只记录实际走过的路线。划定范围边界不算路线上的一步。

有两种模式。无论哪种模式,每次会话最多解决一张工单,research 工单除外。

用户带着一个松散的想法来调用。

  1. 确定目的地。 调用 Skill 工具两次,分别指定「grilling」和「domain-modeling」,确定这张地图要找到的规格、决定或改动。目的地会决定范围,所以要先敲定。
  2. 梳理前沿。 再次进行 grilling,这次要按广度优先的方式展开:全面探索各个方向,找出开放的决定,以及当前可以开始的第一步。如果没有发现迷雾(通往目的地的路已经清晰,整个过程也足够小,一次会话就能完成),就不必创建地图。停下来问用户接下来想怎么做。
  3. 创建地图(标签为 wayfinder:map):填写「目的地」和「备注」,「已做决定」留空,并把迷雾大致记在「尚未明确」里。
  4. 创建现在能明确写出的工单,将它们设为地图的子 issue;然后分第二轮设置阻塞关系(issue 创建后才有 id,可以互相引用)。这时也要用真实 id 写入交叉引用:占位符 #<n> 会自动链接到无关的 issue。设置关系后,工单会分别归入前沿或受阻塞项。还无法明确写出的内容继续留在「尚未明确」里。
  5. 启动 research 子代理。 为刚创建的每张 research 工单启动一个子代理,为它提供全新的上下文窗口,让它调用 Skill 工具并指定「research」来并行解决工单。将结果记录在临时的 research/<name> 分支上,并在工单里加上上下文指针。推送该分支,但不要开 PR:它永远不会被合并。
  6. 停止:绘制地图是一场会话的工作,不解决任何工单。

用户通过地图的 URL 或编号来调用。工单是可选的:如果用户没有指定,就由你选择下一项决定,而不是让用户选。

  1. 加载地图:只看低分辨率视图,不要加载每张工单的正文。
  2. 选择工单。如果用户指定了工单,就用它;否则按顺序选择前沿里的第一张工单。先认领:开始工作前把工单分配给自己。
  3. 按 wayfinder:<type> 标签指定的类型解决工单(参见工单类型)。要读标签,不能只看正文:正文不会说明工单类型。按需查看详情:需要时再读取相关工单或已关闭工单的完整正文;调用「备注」中列出的 skills。如有疑问,就调用 Skill 工具两次,分别指定「grilling」和「domain-modeling」。
  4. 记录解决结果:以解决说明评论的形式发布答案,关闭 issue,并在地图的「已做决定」里追加上下文指针。
  5. 添加新发现的工单(先创建,再设置关系);把答案明确出来的迷雾转成工单,并从「尚未明确」中移除对应内容,让它只保留在新工单里。如果答案显示某张工单(当前工单或其他工单)超出目的地,就把它排除在范围外,不要把它当作路线上的决定来解决。如果某项决定使地图的其他部分失效,就更新或删除相应工单。

用户可以并行处理未受阻塞的工单,因此要考虑其他会话可能同时在跟踪器里编辑内容。

读者要自己输入 /wayfinder 才会用到它。它在 Claude Code 插件里。

把大型、目标尚不清晰的工作拆成 issue 跟踪器上的共享地图和决策工单,逐项厘清路线,直到可以交接执行。

Plan a huge chunk of work (more than one agent session can hold) as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.
英文 SKILL.md
---
name: wayfinder
description: Plan a huge chunk of work (more than one agent session can hold) as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.
disable-model-invocation: true
---
A loose idea has arrived, too big for one agent session, and wrapped in fog: the way from here to the **destination** isn't visible yet. Wayfinding is about finding that way, not charging at the destination. This skill charts the way as a **shared map** on the repo's issue tracker, then works its **decision tickets** (questions whose resolution is a decision, not slices of a build to execute) one at a time until the route is clear.
The destination varies per effort, and naming it is the first act of charting: it shapes every ticket. It might be a spec to hand off and iterate on, a decision to lock before planning starts, or a change made in place like a data-structure migration. The map is domain-agnostic: engineering work, course content, whatever fits the shape.
## Plan, don't do
Wayfinder is **planning** by default: each ticket resolves a decision, and the map is done when the way is clear, with nothing left to decide before someone goes and does the thing. The pull to just do the work is usually the signal you've reached the edge of the map and it's time to hand off. An effort can override this in its **Notes**, carrying execution into the map itself, but absent that, produce decisions, not deliverables.
## Refer by name
Every map and ticket is an issue, so it has a **name**: its title. In everything the human reads (narration, the map's Decisions-so-far), refer to it by that name, never by a bare id, number, or slug. A wall of `#42, #43, #44` is illegible; names read at a glance. The id and URL don't vanish; a name wraps its link, but they ride _inside_ the name, never stand in for it.
## The Map
The map is a single issue on this repo's issue tracker, labelled `wayfinder:map`, the canonical artifact. Its tickets are child issues of the map.
The map is an **index**, not a store. It lists the decisions made and points at the tickets that hold their detail; a decision lives in exactly one place, its ticket, so the map never restates it, only gists it and links.
**Where the map, its child tickets, blocking, and frontier queries physically live is tracker-specific.** The issue tracker should have been provided to you. If not, tell the user to run `/setup-matt-pocock-skills`. Consult the tracker doc's "Wayfinding operations" section for how _this_ repo expresses them. If no tracker has been provided, default to the local-markdown tracker.
### The map body
The whole map at low resolution, loaded once per session. Open tickets are **not** listed: they are open child issues, found by query.
```markdown
## Destination
<what reaching the end of this map looks like: the spec, decision, or change this effort is finding its way to. One or two lines; every session orients to it before choosing a ticket.>
## Notes
<domain; skills every session should consult; standing preferences for this effort>
## Decisions so far
<!-- the index: one line per closed ticket, enough to judge relevance, then zoom the link for the detail the ticket holds -->
- [<closed ticket title>](link): <one-line gist of the answer>
## Not yet specified
<!-- see "Fog of war": in-scope fog you can't ticket yet; graduates as the frontier advances -->
## Out of scope
<!-- see "Out of scope": work ruled beyond the destination; closed, never graduates -->
```
### Tickets
Each ticket is a **child issue** of the map; the tracker's issue id is its identity. Its body is the question, sized to one 100K token agent session:
```markdown
## Question
<the decision or investigation this ticket resolves>
```
Each ticket carries a `wayfinder:<type>` label, one of `research`, `prototype`, `grilling`, `task` (see [Ticket Types](#ticket-types)). `wayfinder:` labels are the only labels a map and its tickets carry, never a triage label like `ready-for-agent`: they are decisions, not implementation work.
A session **claims** a ticket by assigning it to the dev driving the map, **first**, before any work, so concurrent sessions skip it. That assignee _is_ the claim: an open, unassigned ticket is unclaimed.
Blocking uses the tracker's **native** dependency relationship: essential because it renders the frontier _visually_ in the tracker's own UI, so the human sees what's takeable without opening the map. Only a tracker that lacks native blocking falls back to a body convention. A ticket is **unblocked** when every ticket blocking it is closed; the **frontier** is the open, unblocked, unclaimed children, the edge of the known.
The answer isn't part of the body; it's recorded on resolution (see [Work through the map](#work-through-the-map)). Assets created while resolving a ticket are linked from the issue, not pasted in.
## Ticket Types
Every ticket is either **HITL** (human in the loop, worked _with_ a human who speaks for themselves) or **AFK**, driven by the agent alone. A HITL ticket only resolves through that live exchange; the agent never stands in for the human's side of it (a grilling agent that answers its own questions has broken this).
- **Research** (AFK): Reading documentation, third-party APIs, or local resources like knowledge bases to surface a fact a decision waits on. Resolved by a subagent that calls the Skill tool with "research". Use when knowledge outside the current working directory is required.
- **Prototype** (HITL): Raise the fidelity of the discussion by making a cheap, rough, concrete artifact to react to (an outline, a rough take, a stub, or UI/logic code) by calling the Skill tool with "prototype". Links the prototype as an asset. Use when "how should it look" or "how should it behave" is the key question.
- **Grilling** (HITL): Conversation. The default case. Always call the Skill tool twice, for "grilling" and "domain-modeling".
- **Task** (HITL or AFK): Manual work that must happen before a _decision_ can be made: nothing to decide, prototype, or research, but the discussion is blocked until it's done. Signing up for a service so its API can be judged, provisioning access, moving data so its shape can be seen. This is the one type that _does_ rather than decides, and it earns its place by unblocking a decision, not by delivering the destination. The agent drives it alone where it can (AFK); otherwise it hands the human a precise checklist (HITL). Resolved when the work is done; the answer records what was done and any resulting facts (credentials location, new URLs, row counts) later tickets depend on.
## Fog of war
The map is _deliberately_ incomplete: don't chart what you can't yet see. Beyond the live tickets lies the **fog of war**: the dim view of decisions and investigations you can tell are coming but can't yet pin down, because they hang on questions still open. Resolving a ticket clears the fog ahead of it, graduating whatever's now specifiable into fresh tickets, one at a time, until the way to the destination is clear and no tickets remain.
The map's **Not yet specified** section is where that dim view is written down: the suspected question, the area to revisit later. It's the undiscovered frontier _toward_ the destination: everything here is in scope, just not sharp enough to ticket. Write as loosely or as fully as the view allows; it doubles as a signpost for collaborators reading where the effort is headed.
**Fog or ticket?** The test is whether you can state the question precisely now, _not_ whether you can answer it now.
- **Ticket when** the question is already sharp, even if it's blocked and you can't act on it yet.
- **Not yet specified when** you can't yet phrase it that sharply. Don't pre-slice the fog into ticket-sized pieces: it's coarser than a ticket, and one patch may graduate into several tickets, or none, once the frontier reaches it.
**Not yet specified** excludes what's already decided (Decisions so far), what's already a live ticket, and what's out of scope (the next section).
## Out of scope
Fog only ever gathers _toward_ the destination. The destination fixes the scope, so work beyond it is **out of scope**: it isn't fog, and it doesn't belong in **Not yet specified**. It gets its own **Out of scope** section on the map: work you've consciously ruled out of _this_ effort. Scope, not sharpness, lands it here.
Out-of-scope work never graduates (the frontier stops at the destination), so it returns only if the destination is redrawn, and then as a fresh effort, not a resumption.
Ruling something out of scope is a scoping act, not a step on the route. When a ticket that already exists turns out to sit past the destination (mis-scoped in while charting, or exposed by a resolution), **close it** (a closed ticket is unambiguously off the frontier) and leave one line in the **Out of scope** section: the gist plus why it's out of scope, linking the closed ticket. It stays out of **Decisions so far**, which records the route actually walked; a scope boundary isn't a step on it.
## Invocation
Two modes. Either way, **never resolve more than one ticket per session**, with the exception of research tickets.
### Chart the map
User invokes with a loose idea.
1. **Name the destination.** Call the Skill tool twice, for "grilling" and "domain-modeling", to pin down what this map is finding its way to: the spec, decision, or change. The destination fixes the scope, so it's settled first.
2. **Map the frontier.** Grill again, **breadth-first** this time: fan out across the whole space rather than deep on any one thread, surfacing the open decisions and the first steps takeable now. **If this surfaces no fog** (the way to the destination is already clear, the whole journey small enough for one session), you don't need a map. Stop and ask the user how they'd like to proceed.
3. **Create the map** (label `wayfinder:map`): Destination and Notes filled in, Decisions-so-far empty, the fog sketched into **Not yet specified**.
4. **Create the tickets you can specify now** as child issues of the map, then wire blocking edges in a **second pass** (issues need ids before they can reference each other). Write cross-references in that pass too, with real ids: a placeholder `#<n>` auto-links to an unrelated issue. Wiring sorts them into the frontier and the blocked; everything you can't yet specify stays in the fog: the **Not yet specified** section.
5. **Fire the research subagents.** For each `research` ticket you just created, spin up a subagent with a fresh context window that calls the Skill tool with "research" to resolve it in parallel, capturing its findings on a throwaway `research/<name>` branch with a context pointer from the ticket. Push the branch but open no PR: it is never merged.
6. Stop: charting is one session's work; it hand-resolves nothing.
### Work through the map
User invokes with a map (URL or number). A ticket is **optional**: without one, you pick the next decision, not the user.
1. Load the **map**: the low-res view, not every ticket body.
2. Choose the ticket. If the user named one, use it. Otherwise take the first frontier ticket in order. **Claim it**: assign it to yourself before any work.
3. Resolve it as the type its `wayfinder:<type>` label names (see [Ticket Types](#ticket-types)). Read the label, not just the body: the body never states the type. **Zoom as needed**: fetch the full body of any related or closed ticket on demand; call the Skill tool for whichever skills the `## Notes` block names. If in doubt, call the Skill tool twice, for "grilling" and "domain-modeling".
4. Record the resolution: post the answer as a **resolution comment**, **close** the issue, and **append a context pointer** to the map's Decisions-so-far.
5. Add newly-surfaced tickets (create-then-wire); graduate any fog the answer has made specifiable, clearing each graduated patch from **Not yet specified** so it lives only as its new ticket. If the answer reveals that a ticket (this one or another) sits beyond the destination, **rule it out of scope** rather than resolving it on the route. If the decision invalidates other parts of the map, update or delete those tickets.
The user may run unblocked tickets in parallel, so expect other sessions to be editing the tracker concurrently.

非官方学习站,与 Matt Pocock 和 AI Hero 没有隶属关系。本站不提供可安装的中文技能包。

技能原文采用 MIT 许可。Copyright (c) 2026 Matt Pocock

鲁ICP备2025189036号