/yskills:whats-nextfrom yskills
Rebuilds session state from git evidence and presents ranked, structured decisions to reorient users returning to a worktree, branch, or repo after a gap.
Ships in yskills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The user runs many sessions in parallel and comes back after hours away. They cannot remember where this conversation stands. The job: rebuild the state FOR them, then hand them a small set of concrete, clickable decisions — never a blank prompt to fill in.
The user's attention is the scarcest input. Every session is waiting on the agent or on the user. What the user most needs on return is the short list of things only they can unblock — put it at the top, ranked, and spend the question slots on it. Work the agent can do alone is not asked about; it is announced and done.
Match the language of the conversation. Every word the user sees follows it: the recap, the questions, the option labels and their descriptions. An English recap in a Chinese session reads as broken.
Two invocation shapes, same downstream flow:
git worktree list / branch list. Don't
infer the base/target branch from branch names alone — check the remote HEAD or
whatever tool of record the setup has. One clarifying question max.git status + diff of the
working tree), branch commits not on the base branch (git log base..HEAD
with --stat), the actual diff vs. base when commit messages aren't enough, any
task/handoff doc that scopes this work (a handoff doc in the repo, the PR
description, an issue-tracker ticket named in commits), and recent-commit
trailers that record acceptance/deploy state.From the evidence source chosen above, determine:
Then sort every open item by who must act next:
Rank the "needs the user" items: first what blocks the most other work, then anything with a deadline or something that expires (a token, a hold, a review window), then irreversible or outward-facing steps, then the rest. A decision the user already made in this conversation is not open — act on it.
Trust the conversation record over memory of intent: if a step was described but no tool call shows it happened, it did not happen.
Before asking anything, print a tight orientation so the choices make sense. Order: verdict, then what needs the user, then the state lines.
curl, or a read-only query — and
come back with one screenshot or one number plus what it means ("I'll check: open the
orders page, confirm the new column, send you the screenshot (Recommended)"). Users
asked to run a manual test themselves tend to decline and hand it back. Offer a manual
recipe only for what you cannot reach yourself (a login you don't have, a device, a real
user's action), and make it concrete: exact URL, exact account or record to look at,
what the expected result looks like, what would mean it's broken. Never "have a typical
user take a look". Deployed-but-unverified still weighs into the close-session
verdict — it's the classic "don't close yet" reason.Plain prose, outcome-first, no headers, no internal codenames or table names. The recap exists only so the user can answer the questions confidently — details they don't need for the decision stay out.
List the decisions that actually determine what happens next. The "needs the user" items from step 1 come first, in their rank order; a fork about agent-only work gets a slot only if a slot is left over. Good fork points:
Not fork points (never ask these):
One AskUserQuestion call with ONE question: the top-ranked "needs the user" item from the recap. Do not mention how many other items wait. Add a second question in the same call only when it is about the same item (e.g. which option, then which wording) and answering both at once saves a round. Each question must stand on its own in the dialog: name the item, its source and time, and what the answer unblocks. Rules for options:
Before the AskUserQuestion call, apply any session/tab naming rule the user's instructions define (e.g. a status prefix in CLAUDE.md): the session now waits on the user, so the name should say so. Rename again in step 5 when work resumes. A skill run is not an exemption from those rules.
After the user answers, execute the chosen option without re-confirming. The whole point is that one click resumes the work. Also start the agent-doable items announced in the recap; if one does not depend on the answers, start it in the same turn as the questions. If the chosen path later hits a genuine new fork, ask again — same lightweight format. When the work comes back to a point that needs the user, say so first in that reply, not at the end of a long report.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub lycfyi/yskills --plugin yskills5 skills in this plugin
/cold-readCold-read user-facing words the way a first-time, lazy, hurried reader would, using fresh-context reader subagents that never saw the conversation that produced them: UI copy (a strings-file diff, screenshots, or a who/where/text list), landing pages, profile bios, decks and charts, plans, emails, notifications, application answers, and the options an agent is about to show a human. Finds text that should not be on the page (implementation talk, design rationale, restated requirements, placeholders) and text that will be misread (unclear who decides, buttons that hide the consequence, raw codes, undefined groups, numbers without a unit, one thing with two names). Returns numbered findings to triage by number. Trigger: "cold read this", "冷读", "冷读一下", "would a new user get this", "read this as a CTO / an investor / a busy owner", "压测一下文案", before handing back or merging any change to user-visible text, and before sending a deck, bio or application. NOT for translation accuracy, grammar, or visual layout./human-context-rebuildRebuild the user's mental model of the current session with a tight recap — what we're doing, why, and where we are. Use this to recover after a break, a tangent, or a long subagent run. Trigger when the user invokes /human-context-rebuild, or says "remind me what we're doing", "我忘了", "我们到哪一步了", "where are we", "what was I doing", "summarize this session", "我们在干啥来着", "这是啥来着", "这个是干嘛的来着", "想不起来这个 session 在做什么", "脑子糊了", or similar re-orientation cues — including a bare "?" or "这是啥" pointing at the current work. Default to firing when the user signals lost context about the session itself; the cost of an unneeded recap is low. Do NOT trigger for "explain this code", "summarize this file", or any task-summary request — those are different./stale-checkJudge whether the current repo / branch / worktree is stale — behind its target branch, already merged (incl. squash-merged via PR), merged but with commits piled on afterwards, abandoned, unpushed, or about to conflict on rebase — and say what to do about it. Read-only (only `git fetch --prune`). Trigger on /stale-check (optionally with a repo path, --target <branch>, or --all-worktrees), or when the user asks "这个分支过期了吗", "这个 repo 是不是过期了", "这个 worktree 还能用吗", "分支落后 main 多少", "这个分支合过了没", "is this branch stale", "am I behind main", "can I delete this branch/worktree", "哪些 worktree 该清了". NOT for deciding what to build next, and NOT for actually rebasing/merging/deleting — this skill only diagnoses; any fix is a separate, explicitly requested step./worktree-cleanupActually remove finished git worktrees and their branches after they have been diagnosed: prove each one is merged (squash merges included) and clean, stop dev servers still running inside, remove the worktree and branch with plain git, prune dead registrations and empty shell folders, and report what was kept and why. Trigger when the user says "clean up my worktrees", "delete the merged ones", "remove this worktree and its branch", "帮我清理", "清一下 worktree", "把合过的都删了", "哪些 worktree 可以删,删掉", or asks to act on a stale-check verdict. NOT for diagnosing only (use stale-check), rebasing or moving work to a new branch, or deleting anything whose work is not on the target branch unless the user names it.Other plugins' skills for the same job