Imported from tnikic/skills (
skills/engineering/wayfinder/SKILL.md). Install upstream withnpx skills add tnikic/skills --skill wayfinder. Copyright stays with the author.
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 kind:map — the canonical artifact. Its tickets are child tickets of the map.
Map states
- Uncharted map — a follow-up map recorded for later pickup. It has a destination and unresolved threads but no active planning frontier.
- Charted map — a map in an active Wayfinder session whose decision frontier is being worked through.
Creating a follow-up map records the work as uncharted. A later /wayfinder
session claims it and charts the map before resolving decisions.
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.
Forge operations (issue create/label/comment/assign/close, frontier queries, blocking edges) are executed with the github or gitlab skill, whichever forge the map lives on.
Read the shared issue-hierarchy contract:
GitHub maps use child issues; GitLab maps use child task work items under the
map issue.
Label scopes, values, colors, and usage are defined in label-taxonomy.md.
- Map: create an issue with label
kind:map(scopekind, namemap). - Stub map: create a
kind:mapissue from a fog dump (delegated from/grill-with-docs). Body has Destination, Notes, and raw unresolved threads — no structured sections yet. The next/wayfindersession detects the stub and cleans it up. - Child ticket: create a GitHub child issue with
parentset to the map's number, or a GitLab child task withissue_type=taskfollowed by/set_parent. In both cases, applykind:decision(scopekind, namedecision) andwayfinder:<type>(scopewayfinder, name matching the type). - Blocking: set the ticket's blocking edges with the matching forge recipe.
- Frontier: query direct child tickets through the matching forge's hierarchy recipe, then keep only open, unblocked, unassigned tickets.
- Claim: update the issue with
assignee: "@me"— the session's first write. - Resolve: comment the answer on the ticket, close the ticket, then append a context pointer to the map's Decisions-so-far.
The map body
The whole map at low resolution, loaded once per session. Open tickets are not listed — they are open child tickets, 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 ticket of the map; the tracker's work-item 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 kind:decision and a wayfinder:<type> label — color: accent — one of research, prototype, grilling (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.
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 the
subagenttool withagent: "researcher". Follow the dispatch pattern insubagent-dispatch.md. 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 (pattern:
grilling-with-domain-modeling.md), one question at a time. The default case. When a decision is blocked by work that must be executed before it can be resolved — signing up for a service so its API can be judged, provisioning access, moving data so its shape can be seen — that work is a regularkind:ticket(scopekind, nameticket), not a child of the map. Create it on the tracker, then set the decision's blocking edge to reference it. The map holds only decisions; execution lives outside.
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.
Map continuations
When the frontier is empty, read the shared
continuation reference and report a
continuation set in the agent interaction; the map body and comments remain
developer-facing. Select exactly one map-specific outcome. Use the shared
continuation contract for the generic route selected by that outcome:
- Spec-ready — the known implementation landscape needs multiple tickets or a richer requirements artifact.
- One-ticket shortcut — exactly one implementation ticket remains. This shortcut is not valid for zero or multiple implementation tickets.
- Decision captured — the destination is a decision recorded in domain docs
or an ADR. The current state is
complete, ready now and later areNone, and the deliberate stop names the captured decision. - Follow-up map — unresolved, in-scope fog remains beyond this session.
With human approval, create an uncharted map now. If it is intentionally
deferred, return
pendingwith human approval as the dependency rather than reporting a deliberate stop.
Wayfinder never places /implement in the ready-now route. Implementation is
only exposed later through the ticket or specification that owns it.
Invocation
Two modes. Either way, never resolve more than one ticket per session — with the exception of research tickets.
Before either mode: verify you are on the default branch (main). Wayfinder updates docs/CONTEXT.md and creates ADRs — project-level artifacts that belong on the default branch. If on any other branch, stop and tell the user to switch to main.
Chart the map
User invokes with a loose idea.
- Name the destination. Run a
/grillingand/domain-modelingsession (pattern:grilling-with-domain-modeling.md) 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
kind: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 tickets of the map using the matching forge hierarchy recipe, each labelled
kind:decisionand the appropriatewayfinder:<type>— then wire blocking edges in a second pass (tickets 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. Claim each
researchticket (assign to @me), then spin up asubagentwithagent: "researcher"for each to resolve it in parallel, writing the canonical cited record to the stable per-user XDG cache and capturing useful findings in the resolution comment. - Clean up research artifacts. After every research subagent completes: delete its local
research/<name>branch and any OS-temp scratch files it created. The cache record and developer-facing resolution comment are retained; branches stay local, never pushed. - 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.
- Detect stub maps. Assign the map to @me to claim it. Load the map. If it has a Destination and Notes but no structured Not yet specified or Out of scope sections — just a raw dump of unresolved threads — this is a stub from a
/grill-with-docssession. Clean up the body first: categorize every raw item into Not yet specified or Out of scope, cut the raw dump. If already structured, skip. - 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(pattern:grilling-with-domain-modeling.md). Updatedocs/CONTEXT.mdas domain terms crystallize, following the domain-modeling skill. - 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.
- Clean up. If this was a research ticket, delete the local
research/<name>branch and any OS-temp scratch files the subagent created. Retain the stable XDG cache record and developer-facing resolution comment. Branches stay local, never pushed — delete, don't merge. - 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.
- Check the frontier. Query open child tickets. If none remain, proceed to Closing the map. Otherwise stop — the next session picks up the next frontier ticket.
The user may run unblocked tickets in parallel, so expect other sessions to be editing the tracker concurrently.
Closing the map
When the frontier is empty, the route is clear. Before closing, do these in order:
-
Propose follow-up maps. Present residual Not yet specified items and Out of scope items to the user. For each, ask whether to create a new Wayfinder map. The agent may suggest grouping related items into a single map — propose groupings and let the user approve. For items the user wants to map:
- Create a new
kind:mapissue with Destination and Notes filled in, and the items as raw fog. - The new map's body includes a Parent reference linking back to this map.
- In this map's Not yet specified or Out of scope section, replace the text description with a link to the new map. Completion criterion: every residual-fog and out-of-scope item either has a follow-up map or is noted as deliberately left unresolved.
- Create a new
-
Create ADRs. Evaluate every closed decision ticket against the three ADR tests in
domain-modeling/ADR-FORMAT.md. For each that passes all three, create an ADR indocs/adr/following that same format. Completion criterion: every closed decision evaluated against the three tests; an ADR created for each that qualifies. -
Write the closing summary. Use the format in
CLOSING-SUMMARY.md. Post it as a comment on the map, then append it to the map body below Decisions so far as Route found. Completion criterion: closing summary posted as comment and appended to map body. -
Commit file changes. Scan the closing summary and key decisions for domain terms. Check
docs/CONTEXT.mdfor any not yet captured; update if found. Stage all changes (docs/CONTEXT.md,docs/adr/). Run/commit— ADRs as separate commits, glossary changes batched. Completion criterion: all file changes committed through/commit; the commit hashes are reported. -
Close the map. Present the closing summary and ask: "The route is clear. Close the map?" Close on confirmation. Completion criterion: user confirmed; map issue closed.