AGENT SKILL

whats-next

Match a task to the skill, flow, or playbook that fits it. Use when the user asks what to do next or which workflow applies, when a task fits no other skill, and for these kinds of work, which have playbooks here - proving a property of concurrent or stateful code with a model checker or verifier, matching a UI pixel for pixel, and diagnosing a live process or a captured profile, trace, or heap snapshot.

License 许可
MIT
所属仓库
dwin/skills
最近更新
2026-11-14
Stars
★ 0
Forks
0

01 前言 Front Matter

name
whats-next
description
Match a task to the skill, flow, or playbook that fits it. Use when the user asks what to do next or which workflow applies, when a task fits no other skill, and for these kinds of work, which have playbooks here - proving a property of concurrent or stateful code with a model checker or verifier, matching a UI pixel for pixel, and diagnosing a live process or a captured profile, trace, or heap snapshot.

02 资源文件 5

03 SKILL.md 正文

What's Next

Start from the user's situation, then recommend the smallest useful skill or flow. Prefer the user's established language: plan, docs, review, tickets, and implementation. Explain the next move without requiring them to remember the catalog.

When the user asked what to do next, recommend. When you opened this skill for a task of your own, follow the match yourself when it is a playbook or a skill you can load. Some skills named below load only when the user types them, such as implement, autopilot, and eval. When one of those is the match, tell the user it exists and what it would do.

Playbooks

A playbook is a short procedure for one kind of task that has no skill of its own. When the task matches a row, read the file and copy its steps into your task list before any step of your own. A step you decide to skip stays in the list with a one-line reason.

The task Playbook
Prove a property of concurrent, stateful, or parsing code for every case playbooks/formal-verification.md
Make one rendering match another pixel for pixel playbooks/visual-parity.md
Find a cause from a live process, or from a profile, trace, or snapshot playbooks/forensics.md

A flow is a path through the skills. Most paths run along one main flow, and two on-ramps merge onto it. Everything else is standalone, or a vocabulary layer that runs underneath.

The main flow: idea → ship

The route most work travels. You have an idea and want it built.

  1. grill-with-docs — sharpen the idea by interview. Start here whenever you are working in a working directory: it's stateful, retaining what it learns in CONTEXT.md and ADRs. (No working directory? Use grill-me — see Standalone. Both run the same grilling primitive; grill-with-docs is the one that leaves a paper trail, which makes it the better of the two whenever a repo is there to leave it in.)

  2. Branch — can you settle every question in conversation? If a question needs a runnable answer (state, business logic, a UI you have to see), detour through a prototype, bridged by handoff in both directions (a prototype lives in its own directory, which is exactly what handoff is for — see Phase boundaries):

    • handoff out, then open a fresh session against that file,
    • prototype to answer the question with throwaway code,
    • handoff back what you learned, and reference it from the original idea thread.
  3. Branch — is this a multi-session build?

    • Yes → to-spec (capture the agreed plan as a spec), then to-tickets to split it into tracer-bullet tickets, each declaring its blocking edges. On a local tracker that's one file per ticket under .scratch/<feature>/issues/, worked blockers-first by hand; on a real tracker the edges become native blocking links, so any ticket whose blockers are done can be grabbed — kick off implement per ticket in a fresh thread. Each ticket is self-contained, so the last one's context is disposable.
    • No → implement right here, in the same context window.

    Either way, implement builds each issue by driving tdd internally — one red-green slice at a time — then closes out by running code-review, a three-axis review (Standards, Spec, Behavior) of the diff. It leaves validated changes in the working tree. When the user wants delivery, run file-pr to commit and file the pull request, then babysit when they want it monitored through CI and review. Reach for tdd on its own to build concrete behaviour test-first, and code-review on its own to review a branch or pull request against a fixed point.

Context hygiene

Keep steps 1–3 in one unbroken context window — don't compact or start a fresh thread until after to-tickets — so the planning, docs, and tickets all build on the same thinking. Each implement then starts fresh, working from the ticket.

The limit is context pressure: if the client is approaching its effective reasoning window before to-tickets, compact at the nearest phase boundary and carry on. Do not interrupt a phase merely to create a cleaner boundary.

On-ramps

A starting situation that generates work, then merges onto the main flow.

  • Bugs and requests piling up → triage. It moves issues through triage roles and produces agent-ready issues, which implement later picks up.

    Triage is only for issues you didn't create — bug reports, incoming feature requests, anything that arrives raw. Tickets that to-tickets produced are already agent-ready, so don't triage them.

  • Something's broken → diagnosing-bugs. For the hard ones: the bug that resists a first glance, the intermittent flake, the regression that crept in between two known-good states. It refuses to theorise until it has a tight feedback loop — one command that already goes red on this bug — then fixes with a regression test. Its post-mortem hands off to refactor when the real finding is that there's no good seam to lock the bug down.

  • A huge, foggy effort — a greenfield project or a huge feature build, too big for one session → wayfinder, the most cognitively demanding flow here. When the way from here to the destination isn't visible yet, it charts a shared map of decision tickets on the issue tracker and resolves them one at a time — producing decisions, not deliverables — until the fog is pushed back and the way is clear. Where grill-with-docs sharpens an idea you can hold in one session, wayfinder is for the idea you can't — and it's slower and denser, so save it for exactly that, never a well-scoped feature.

    When the map clears, it hands off, it doesn't build: merge onto the main flow at to-spec, which collapses the map's linked decisions into a buildable plan, then to-tickets and implement as usual. Looping the map straight into implement skips that collapse and throws the linked detail away — go straight to implement only when the effort turned out genuinely small.

Codebase health

Not feature work — upkeep.

  • refactor — restructures code against pinned behaviour. Asked what is worth refactoring, it surveys the codebase to keep it good for agents to operate in, and surfaces deepening opportunities; picking one generates an idea you can take into the main flow at grill-with-docs. It's the survey that finds the candidates; design (below) is the bench you design the chosen one on.
  • retro — after a session that went badly or slowly, review it for fixes to the agent's environment: navigation pointers, automated checks, reviewer rules, steering-file bloat, tool cost, and missing information access. Prefer a deterministic check over a written rule.
  • lookback — retro across many sessions: find the prompts the user repeats, the workflows they drive by hand, and the corrections they keep making, and turn each into a change to a skill, an instruction, a check, or a scheduled automation. Session content stays private.
  • verifier — give a project its own skill for proving changes by driving the real app the way a user does, with a feature map; run it again later to bring that skill back in line with the code.

Vocabulary underneath

Two model-invoked references that run beneath the other skills — each the single source of truth for its vocabulary. Reach for them directly when the words, not the process, are the problem; or let the skills above pull them in.

  • domain-modeling — sharpen the project's domain language: challenge a fuzzy term, resolve an overloaded word ("account" doing three jobs), record a hard-to-reverse decision as an ADR. It's the active discipline grill-with-docs drives to keep CONTEXT.md a clean glossary.
  • design — the deep-module vocabulary (module, interface, depth, seam, adapter, leverage, locality) for designing a module's shape: a lot of behaviour behind a small interface at a clean seam. tdd and refactor both speak it.

Phase boundaries

A phase is a chunk of work inside a session — the grilling, the implementation, the QA. At the boundary between two of them you have five options, and picking between them is the fuzziest decision in this whole map:

  • Continue — stay put. Costs nothing, loses nothing.
  • Fresh thread — start with an empty window when nothing here matters to what comes next.
  • handoff — write a portable markdown file. Narrow: only for a new harness, a new directory, a colleague, or forking a side task mid-phase. What it buys is portability.
  • Subagent — send a tightly-scoped task to its own window and get a report back.
  • Compact — use the client's compaction feature to seed the next phase with a summary. This is the default at the bottom of the tree, not the first reach.

Read PHASE-BOUNDARIES.md for the ordered tree — the five questions, the reasoning behind each branch, and why the primary-source cost makes Continue the one to rule out first. Make the decision at a boundary; mid-phase, continue or split the rest into subagents.

Standalone

Off the main flow entirely.

  • grill-me — the same relentless interview as grill-with-docs, but stateless: it saves nothing locally and builds no CONTEXT.md. Reach for it when you are not working in a working directory — sharpening a plan, a design, a piece of writing, anything with no repo under it. If you are in a working directory, use grill-with-docs instead: it runs the same interview and leaves a paper trail, so it is strictly the better one.
  • grilling — the interview primitive itself: rounds, the frontier, facts are the agent's job and decisions are yours. grill-me and grill-with-docs are the two named ways in, and triage, wayfinder and refactor all run it internally. Reach for it directly only when you want the interview with no wrapper around it.
  • prototype — a small, throwaway program that answers one design question: does this state model feel right, or what should this UI look like. Throwaway is a constraint on how the code is written, not a promise to destroy it: the answer folds into the real code, and the prototype itself is kept as a primary source on a prototype/<name> branch out of main, pointed at from the implementation issue. It's the detour in step 2 of the main flow, but reach for it any time a design question is hard to settle on paper.
  • research — delegate reading legwork to a background agent: it investigates a question against primary sources, then leaves a cited Markdown file in the repo. Keep working while it reads. The file it produces is something to take into the main flow at grill-with-docs — research feeds the thinking, it doesn't replace it.
  • to-questionnaire — when the thing blocking you isn't in your head or the codebase but in someone else's, this writes them a questionnaire to fill in. It's the inverse of grill-me: instead of interviewing you about the subject, it interviews you about the send — who it's going to, what you need back — and aims the questions at the gap. What comes back is material for grill-with-docs or to-spec.
  • wizard — for the steps only a human can take: provisioning infrastructure, setting up credentials or CI secrets, clicking through an unfamiliar third-party dashboard, running a one-off migration or cutover. It generates an interactive bash script that opens each URL, captures each value, and writes it into .env and GitHub secrets — so the procedure stops being something you re-explain to an agent every time. Model-invoked, so the agent reaches for it the moment it hits a wall only you can pass. If the agent could just do it itself, it should; this is for where a human is genuinely in the loop.
  • wait-what — the corrective for a message that didn't land. Use it mid-conversation, inside any other skill, and the agent re-pitches what it just said with the context you were missing, in plain English, using the CONTEXT.md vocabulary. It works after the fact; grill-with-docs is the upfront cure, because a shared language agreed early is what stops the jargon arriving at all.
  • explain — explain a change, a subsystem, or a concept in one sitting, or learn a topic over multiple sessions, using the current directory as a stateful workspace.
  • how — map how a subsystem works from its code, for an engineer about to change it: the parts, the flow, where things live, and the traps. Also answers where new code should live.
  • recall — before resuming work, rebuild what earlier sessions said, decided, and left open on it, checked against the current state of its pull requests and branches.
  • arena — have several agents attempt one task, pick the strongest attempt as the base, and graft the best parts of the others into it. Use when one attempt would lock in the wrong shape.
  • sharpen — before sending a prompt, rewrite it into a deeper version of the same task: the expert's method, the raw material, and an outside check, with the user's choices left open.
  • writing-for-agents — reference for writing documents agents consume: skills, AGENTS.md, pointed-at docs.
  • swarm — coordinate work done by other agents: size the split, brief each worker, keep a ledger, verify what they report, and stay reachable until every lane is done.
  • rollout — after a merge, follow the change until it is applied, live, and observed.
  • autopilot — drive a branch through local review to a ready pull request, and with merge, merge it.
  • eval — measure whether a skill or a model does a set of tasks better, by correctness, corrections needed, cost, and time.
  • figure-it-out — drive a large or unclear task to a checkable finish while the user is away, without stopping to ask, and keep a work log they can audit on return.
  • catchup — when the user asks where things stand, tell them what changed since their last message and lay out every decision waiting on them.
  • why — find out why code is the way it is from its history, reviews, tickets, docs, and runtime data, with how sure each answer is.
  • blast-radius — before a change ships, find what it can break outside its diff, and prove the fact its safety rests on by running real code.
  • technical-writing — write docs, READMEs, design notes, PR descriptions, and messages that a tired engineer understands on the first read.
  • unslop — remove the marks of machine-written prose from text people will read, keeping every fact and the author's voice.
  • visual-explainer — render multi-option comparisons, multi-gate flows, permission or blast-radius maps, and rollout plans as interactive visuals on the host's native surface.

Precondition

setup-dwin-skills — run before the first engineering flow to configure the issue tracker, triage labels, and doc layout the other skills assume. Custom issue trackers also work.

04 同仓库更多 Skills

dwin
dwin/skills

visual-explainer

Render interactive visual explanations, architecture simulators, option tradeoff matrices, permission or blast-radius maps, and phased rollout cards on the host's native visual surface. Use when answering a question that compares three or more options across multiple dimensions, traces a multi-gate request or state flow, maps permissions or blast radius, lays out a multi-phase architecture plan, or when the user asks to visualize or sends `viz`.

★ 0
dwin
dwin/skills

writing-for-agents

Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

★ 0
dwin
dwin/skills

wizard

Generate an interactive bash wizard that walks a human through steps only they can perform. Use when provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover. Don't invoke this for steps the agent can perform itself.

★ 0
dwin
dwin/skills

why

Find out why code is the way it is from its history, reviews, tickets, docs, and other records, and say how sure each answer is. Use when the user asks why something is built, written, or behaves a certain way, why a choice was made, or where a number or limit came from.

★ 0
dwin
dwin/skills

wayfinder

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.

★ 0
dwin
dwin/skills

wait-what

Stop. That last message did not land — re-pitch it.

★ 0