/dstack-run:figure-it-outfrom DStack Run
Classifies non-trivial tasks against a 23-playbook index and runs the matched playbook to verified completion on the real surface, or designs a bespoke workflow when none fits. All remote/irreversible actions are human-gated.
Ships in DStack Run. 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.
Read when SKILL.md points to them.
Non-trivial work goes wrong when the agent improvises: invented commands, a second convention beside the repo's own, a green checkmark standing in for the thing the user will actually touch. This skill prevents that. You classify the task against the 23-playbook index in references/playbooks.md, run the one playbook that fits end to end, and prove it on the real surface the user will use. When no playbook fits, you design the smallest bespoke workflow that could satisfy a falsifiable success predicate and prove that instead. Either way the run leaves a reviewable trail.
Everything here happens locally in the working tree, where version control is the rollback. Every remote or irreversible action, push, PR creation or any other PR workflow mutation, release, deployment, credential use, branch or worktree deletion, is human-gated: preview it with its exact consequence and get explicit approval for that action before it. Approval for one action never authorizes another.
The task itself, including the falsifiable success predicate when you suspect no playbook will fit; the real product surface the result must be verified against, and the tools available; optionally a playbook-name, one of the 23 names in references/playbooks.md (a valid explicit name wins; otherwise you infer it from the requested outcome); and optionally any existing playbooks or prior workflows worth considering alongside the index.
Select exactly one playbook per requested outcome from the index, classifying by the requested outcome rather than an isolated keyword, and state the rationale (independently requested outcomes may yield ordered names, as the trail below allows):
investigation; defect → bug-fix; measured slowness → perf-issue; iterative metric improvement → hillclimb;runtime-forensics; event or span chronology → trace-forensics;feature; behavior-preserving restructuring → refactoring; throwaway question-answering build → prototype; reference-image parity → visual-parity;authoring-a-skill; model or system measurement → eval;watch-for (mode until);shipping; one delegated unattended objective → autonomous-run;cloud-task-orchestrator;autopilot-full; ordered layers implemented bottom-up against layer contracts → autopilot-stack;session-pickup; stopping at a consistent boundary with a recorded handoff → pause-safely;multi-phase-plan; worktree and branch inventory with approved disposal → worktree-cleanup; a reviewed pull request opened against a base → opening-a-pr.When the classification is genuinely ambiguous, state the competing outcomes and stop rather than silently choosing the cheaper contract. An invalid or unmatched name changes nothing: report it with the 23 valid names and the unmatched outcome. When no playbook fits at all, proceed to the bespoke workflow below; and when a playbook turns out to fit after bespoke work already started, stop the bespoke workflow and defer to the playbook rather than duplicating it.
State the selected playbook, its concrete target, and its real-surface done check before changing anything. Inspect the repository or running surface just enough to identify its existing commands and conventions; never invent a command or establish a second convention. Then execute the playbook's required actions as defined in references/playbooks.md: the host's native primitive for agent, worktree, or PR operations when one exists, otherwise the repository's established git operation for worktrees, the host agent dispatch surface for workers, and gh for PR workflow.
Preview each remote or irreversible action with its exact consequence and wait for explicit human approval, one action at a time. Run the playbook's stated done check after all integration. When it fails, keep repairing within scope or return the precise failure. Compilation, a worker report, a checked box, or source inspection never substitutes for the required real-surface observation.
Define a falsifiable success predicate first: a check that can fail on the real product, never a tautology. A predicate that cannot fail stops the run until a real one exists. Then design the smallest workflow that could reach it, naming each lever, script, command, probe, or local artifact, with its input and its expected output. State the rollback path for every local artifact the workflow will write before writing any of them.
Build and run each lever in order, recording the command, the real output, and whether it advanced the predicate. When a lever's output contradicts its expected output, record the contradiction and stop advancing: revise the lever or the workflow and re-run from the changed step. Verify the predicate against the real product at the end, never a mock or proxy. When the required operation has no established mechanism, report the unavailable operation as blocked rather than inventing a command, API, path, or peer-skill dependency.
A failed check or a predicate that fails on the real product keeps its failing observation in the trail: repair the source, rerun the same real-surface check, and roll local artifacts back along their stated rollback paths when the surface is left worse than found. Never claim done while the check is red. An unexpected reversible mutation restores the last known consistent local state before returning. An unauthorized remote or irreversible action stops the run before it, with the exact blocked action and its consequence named. Partial execution ends as reported work, never as done: the completed actions or the failed lever, the current surface state, the failed check, and the next executable action.
A reviewable trail with status (done, blocked, or failed). A playbook run carries the selected playbook (or the ordered names for independently requested outcomes), its concrete target, the actions completed, the verification naming the real surface exercised and the observed result for each playbook, and the approval record of each remote or irreversible action approved and performed, or the exact pending action. A bespoke run carries the falsifiable predicate, the bespoke workflow with each named lever, the real output of every lever run, and the final predicate verification result, verified or not verified. Add next-action only when blocked or failed. done holds only when every selected playbook completed with its real-surface done check passed, or the bespoke predicate is verified on the real product.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gosuda/dstack-skills --plugin dstack-run20 skills in this plugin
/append-run-logUse when a completed agent run must be recorded as durable, queryable evidence. Not for remote, credential, publish, deploy, or irreversible changes./artifact-arenaUse when asked to run /artifact-arena to generate and judge competing artifact implementations. Not for remote, credential, publish, deploy, or irreversible changes./cybernetic-loopUse when the caller supplies a falsifiable out-of-happy-path invariant and a finite budget. Restores via bounded patches or reverts. Not for normal feature delivery or universal retries./diagnose-loop-healthUse when a configured loop misbehaves, produces unexpected results, or its setup soundness is questioned. Not for tasks that require source or remote-system changes, not for loop design./diamond-taskUse when one issue or PR is too large for a worker and partitions into disjoint write sets. Not for independent parallel tasks: use parallel-launch. No remote or irreversible changes./feedback-sweepUse when asked to /feedback-sweep [setup|reconfigure] [mode:non-interactive]. Not for discovering recurring feedback patterns.Other plugins' skills for the same job