wayfinder
MAmattpocock/skills336k近 7 天新增 4,217 个 star
Write a technical design spec, RFC, PRD, or detailed implementation plan for a feature or refactor, shaped around the program's entrypoints (the doors that carry domain intent) and grounded in existing codebase research. Apply proactively before implementing non-trivial features, refactors, or boundary changes whenever a written design or spec belongs under specs/.
Write a design-only specification under specs/YYYY-MM-DD-<kebab-case-topic>.md (using today's date) by grounding the design in existing research and the live codebase. Treat the program's entrypoints — its doors — as the spine of the spec so a reviewer can reconstruct what the system is for from the boundary alone before reading any mechanism.
Do not implement code during this skill; the deliverable is the reviewed spec in specs/.
Look for prior research in $ARGUMENTS, or across the whole research/ directory when no path is given. Read research from research/ (not specs/, which holds design outputs rather than neutral codebase findings). Delegate discovery and extraction to codebase-research-locator and codebase-research-analyzer when the directory has multiple documents, and cite the relevant research documents throughout the spec so decisions trace back to evidence.
Identify whether the project preserves backward compatibility for existing downstream users:
ask_user_question before decomposing the spec. Carry the agreed posture into the spec plan, document frontmatter, and a ## Backwards Compatibility section.Inspect the conversation, requested research path, research/ documents, local docs, and codebase first. Whenever the codebase can answer a question directly, inspect it instead of asking the user.
ask_user_question with contrastive options (2–3 concrete choices with trade-offs and a recommendation), then run Path A.Work in this order and map the results into references/spec-template.md:
Phase 1, Phase 2) rather than calendar dates or time estimates.references/spec-template.md and write specs/YYYY-MM-DD-<topic>.md.Everything behind an entrypoint is mechanism (how); only at the boundary does code state meaning (what and why). Because untrusted input enters and irreversible effects happen at these boundaries, designing the door set first prevents leaking intent into internal plumbing.
authorize_charge, settle_payment, revoke_access, publish_draft), never for an internal mechanism (run_query, call_service, update_row).AccountId, sum types over independent booleans, capability types like AuthorizedCharge minted only by authorize_charge) rather than relying on runtime checks callers can forget.Audit every non-trivial entrypoint forward (checking your draft) and backward (checking whether every obligation has a home). Any item you cannot answer cleanly becomes a constraint in §5 or an open question in §9:
An in-process function, REST route, and RPC/gRPC method are one door across transports and should share one joint name. On HTTP, let verbs express safety (GET safe, PUT/DELETE idempotent, POST carrying Idempotency-Key when needed) and status codes report honest exits (201, 204, 409, 412) rather than wrapping errors in 200 OK.
Keep prose short and pair it with the smallest visual that makes the shape clear:
text pseudocode for logic or algorithms.tsx component tree for UI structure and state boundaries.text file tree for module ownership or refactors.diff when modifying an existing shape; full blocks when most of the shape is new.When a UI layout or dense state comparison genuinely benefits from a browser view, you may generate one focused show-me-<description>.html artifact alongside the Markdown spec and open it portably via bash (open on macOS, xdg-open on Linux, or print the path otherwise).
When the spec includes review or release gates (opening a PR, tagging, deploying, publishing), separate review acceptance from authorization to act. For any work delegated to subagents, give each child a concrete action, explicit scope, and the evidence it needs.
After generating the draft:
## 9. Open Questions / Unresolved Issues with the user using ask_user_question (one question or logical group at a time). Use contrastive clarification: present 2–3 concrete options with explicit trade-offs and your recommended choice, paying special attention to disagreements over door boundaries, refusals, or irreversible chokepoints.specs/ file path, the door set listed by name alone (calling out irreversible doors), and an invitation for final feedback.references/spec-template.md — full numbered RFC/spec template (§1–§9) with section guidance and examples. Read this before writing the spec file.MAmattpocock/skills336k近 7 天新增 4,217 个 star
MAmattpocock/skills336k近 7 天新增 4,217 个 star
MAmattpocock/skills336k近 7 天新增 4,217 个 star
MAmattpocock/skills336k近 7 天新增 4,217 个 star
MAmattpocock/skills336k近 7 天新增 4,217 个 star
MAmattpocock/skills336k近 7 天新增 4,217 个 star