大型任务分解与规划
wayfinder
将一项庞大的工作——超出单个 agent 会话所能承载的范围——规划为问题跟踪器(issue tracker)上一组决策工单的共享地图,并逐一解决,直到通往目标的路径清晰明确。
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-02
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- 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
02 资源文件 1
- 参考文档agents/openai.yaml144 B
03 SKILL.md 正文
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 — 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 — run /setup-matt-pocock-skills if not. 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.
## 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:
## Question
<the decision or investigation this ticket resolves>
Each ticket carries a wayfinder:<type> label — one of research, prototype, grilling, task (see Ticket Types).
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). 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
/researchsubagent. 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 via the /prototype skill. Links the prototype as an asset. Use when "how should it look" or "how should it behave" is the key question.
- Grilling (HITL): Conversation via the /grilling and /domain-modeling skills, one question at a time. The default case.
- 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.
- Name the destination. Run a
/grillingand/domain-modelingsession 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. - 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.
- Create the map (label
wayfinder:map): Destination and Notes filled in, Decisions-so-far empty, the fog sketched into Not yet specified. - 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). Wiring sorts them into the frontier and the blocked; everything you can't yet specify stays in the fog — the Not yet specified section.
- Fire the research subagents. For each
researchticket you just created, spin up a/researchsubagent to resolve it in parallel, capturing its findings on a throwawayresearch/<name>branch with a context pointer from the ticket. - 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.
- Load the map — the low-res view, not every ticket body.
- 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.
- Resolve it — zoom as needed: fetch the full body of any related or closed ticket on demand; invoke the skills the
## Notesblock names. If in doubt, use/grillingand/domain-modeling. - 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.
- 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 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.
04 同仓库更多 Skills
极简编码方案
ponytail
强制采用最懒但实际可行、最简单、最短、最精简的解决方案。化身一位见多识广的高级开发者:质疑任务本身是否有存在的必要(YAGNI),在编写自定义代码之前先用标准库,在引入依赖之前先用原生平台能力,一行胜过五十行。支持强度级别:lite、full(默认)、ultra。适用于任何编码任务:编写、添加、重构、修复、审查或设计代码,以及选择库或依赖。当用户说「ponytail」「be lazy」「lazy mode」「simplest solution」「minimal solution」「yagni」「do less」或「shortest path」,或抱怨过度工程、臃肿、样板代码或不必要的依赖时也使用。不用于非编码请求(常识、散文、翻译、摘要、食谱)。
代码过度工程审查
ponytail-review
专注于过度工程化的代码审查。找出应当删除的内容:重复造标准库轮子、不必要的依赖、投机性的抽象、僵死的灵活性。每条发现一行:位置、要删什么、用什么替代。当用户说「review for over-engineering」「what can we delete」「is this over-engineered」「simplify review」或调用 /ponytail-review 时使用。与侧重正确性的代码审查互补,本技能只搜寻复杂性。
ponytail 命令速查
ponytail-help
面向所有 ponytail 模式、技能和命令的快速参考卡。一次性展示,不是持久模式。触发词:/ponytail-help、“ponytail help”“有哪些 ponytail 命令”“如何使用 ponytail”。
代码优化成效看板
ponytail-gain
以精简的记分板展示 ponytail 的可量化成效:基于基准测试中位数,代码更少、成本更低、速度更快。一次性展示,不是持久模式,也不是针对单个仓库的数值。触发词:/ponytail-gain、“ponytail gain”“ponytail 节省了多少”“展示 ponytail 成效”“ponytail 记分板”。
技术债务台账整理
ponytail-debt
将代码库中的每个 `ponytail:` 注释汇总到一份债务台账中,使 ponytail 有意留下的捷径和延后事项得到跟踪,而不是烂尾成“以后再说就等于永远不做”。当用户说“ponytail 债务”“/ponytail-debt”“ponytail 推迟了什么”“列出这些捷径”“ponytail 台账”或“我们标记了哪些以后要做的事”时使用。一次性报告,不做任何更改。
代码库过度工程审计
ponytail-audit
对整个代码仓库进行过度工程审计。类似 ponytail-review,但扫描的是整个代码库而非代码差异:给出一份按优先级排序的清单,列出可删除、简化或替换为标准库/原生等效实现的内容。当用户说“审计这个代码库”“检查过度工程”“这个仓库里能删掉什么”“找出冗余”“ponytail-audit”或“/ponytail-audit”时使用。一次性报告,不会应用任何修复。