/dstack-core:autoplan-and-autopilotfrom DStack Core
Takes an idea or plan through four-perspective review, generates a task ledger, presents an amended plan, and executes it under verified phase gates. For local, reversible work approved by invocation.
Ships in DStack Core. 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.
You take an idea or plan through review from four sides, record the resulting work as a stable task ledger, present the amended plan, and then build it under bounded orchestration and verified phase gates to an observed close-out. Planning and execution are separated by an approval gate: the amended plan is presented, and the invocation approves local, reversible work on it under the Approval section below.
Free-text arguments are the subject: a plan file path, a local:// reference, or inline idea or plan text.
/skill:<name> tokens in the arguments are routing hints; drop them before reading the subject.
orchestrate, continue, go, and do it now resume the current run and never restart it.
With no free-text subject, take the first source that yields exactly one candidate: a plan written or approved in this session, then a plan file path named earlier in this session.
Print subject: <what> (<how found>) as the first output line.
When no source yields one, stop before any write with one line: autoplan-and-autopilot needs an idea or plan: pass a path or inline text.
Before planning or modifying artifacts, establish the concrete facts around the request:
git remote -v), and working tree status.You need a plan or idea (a file path or inline text) and the repository context (checkout path and facts). Success criteria, a close-out condition, scope boundaries, publication authority, and an existing ledger ride along when given. When success criteria are omitted, derive facts only from the paths the request names and their direct manifests and CI configuration; do not mine session logs or run corpus-wide scans unless the request names them, and propose concrete criteria during planning, surfacing them at the approval gate. Ask the user only when core intent stays unresolved. When close-out is omitted, default to a clean working tree with passing tests. Stop before any write when no plan or idea was supplied, or when unresolved intent cannot be derived without user clarification.
Dispatch at most four read-only scouts for grounding; more needs the user's request.
Work through four perspectives to resolve competing pressures into sound structure:
| Perspective | What it settles |
|---|---|
| CEO | Viability, user and business impact, problem definition, strategic alignment, scope boundaries. Reject unnecessary complexity and feature creep. |
| Design | Ergonomics, clarity of interaction, affordances, mental model coherence, edge states, empty states, diagnostic feedback. |
| Developer experience | API ergonomics, error messages, ease of testing, discoverability, documentation alignment, friction. |
| Engineering | Correctness, architectural coherence, performance, failure modes. State explicit preconditions, postconditions, and invariants for every change before implementation. Resolve local forces into deep modules with clean seams. |
Judge each perspective against six principles: clarity (unambiguous contract and discoverable behavior), impact (direct solution to the primary user problem), audience (caller expectations and operational constraints), risk (failure modes and regression surfaces), sequencing (causal dependencies and prerequisite ordering), and reversibility (safe rollback without data loss). Record decisions and open questions in the decision register, then consolidate them into an amended plan with explicit scope boundaries.
Record the work by the ledger rules in autoplan: naming, sequencing, presentation, and append-only writes apply unchanged. Ledger presence proves a task was planned, not completed; completion is read from receipts as autopilot's Resume section defines.
Present the exact amended plan, the decision register, the tasks displayed by their semantic description and actual purpose without decorative coded prefixes, and the concrete scope boundaries to the user. Invoking this skill with a subject, given in the arguments or inferred from this session, approves local, reversible work on that subject: edits, local checks, and local commits when the plan authorizes commits. The gate fires for an outward, irreversible, credential, paid, or data-at-rest act, and waits for a separate explicit user request with preview and consent for each one. Explicit written approval of the exact current plan, and plan-mode approval (ExitPlanMode), also approve. Steering words sent after an invocation (orchestrate, continue, go, do it now, workflowz, Don't ask) resume or widen work and approve nothing. A timeout or auto-selected default never approves. An invocation with no subject is not approval: stop before any write. A user decline of the plan halts the chain before any source edit: preserve the amended plan and the ledger, and emit BLOCKED stating the decline.
Once the invocation has approved local work, implement under these constraints. The executor is the plan's assigned executor, or parallel orchestration when none is named:
After workers finish and writers stop, the parent takes exclusive control of verification. The governing rule: every repair, review-autofix, or simplification mutation to source, test, or configuration files invalidates the relevant prior proof. The gate that owned the mutation, and every earlier gate whose evidence the mutation could disturb (at minimum the Execute native suite), must rerun on the final post-mutation tree before completion. DONE needs fresh verification evidence collected on the final diff. Evidence collected on a pre-mutation tree never closes a mutated tree.
Each gate follows the autofix-then-halt machine in autopilot's pipeline-gates reference. Run the gate condition; advance on pass. On failure, invoke the autofix arm exactly once if one is available and unused for this phase, then recheck (including the native rerun the proof rule requires whenever autofix mutated files). A failing recheck halts immediately. Never loop autofix a second time.
Gates run in order: Execute, then Simplify, then Review (simplify before review), unless the exact user requirement specifies a different order. The review-autofix proof gap is closed by explicit recheck, not by reordering gates.
code-review on the scoped diff for architecture, security, and correctness. The bar is zero critical and zero high-severity findings, no unhandled error paths, no silent scope creep, and no TODO, stub, or placeholder deliverable. At most one targeted fix pass on critical or high findings. A review-autofix edit is a source mutation that invalidates the prior Execute (and Simplify) proof, so the fix pass is followed by both a rerun of the native suite on the final post-autofix tree and a re-review of the changed files. A review pass alone never closes: advance only when the native verifier passes on that final tree and re-review is clean. Residual critical or high findings, or a red native rerun, halt the pipeline with the findings and verifier output recorded. A red native rerun never advances.Local-only is the default, as autopilot's finalize rule defines: commits only when authorized, and no push or pull request creation.
A separate commit-only request (explicit local commits without publication) means previewing the exact commit message, target branch, and changed files, then creating atomic local commits once approved. Push and pull request creation stay skipped.
Pushing to a remote or opening a pull request happens only when every one of these holds: the user explicitly requested remote publication in the inputs (never implied by the skill name, close-out text, or commit requests), the exact target remote, branch, pull request title, and destination are previewed, explicit human consent for publication is recorded, and all preceding gates (Execute, Simplify, Review) have passed. Verify and quote the observed close-out state in the final report before declaring done.
Every other outward or irreversible act needs the same explicitness: deployment, credentials, paid actions, data-at-rest mutations, and irreversible deletions each require a separate explicit user request with preview and consent. The skill name, close-out text, commit requests, and default execution never imply them.
Halt conditions: missing input (stop before any write), a declined plan or withheld consent for an outward act (stop at the gate, preserve plan and ledger), conflicting requirements (stop before modifying source, name the conflict), missing tools (stop and identify the missing command), failed proof or gate (stop immediately, record the failed gate, reason, autofix outcome, and diff, preserve all in-scope progress), refused publication (preserve local modifications, report local completion with publication skipped). On any halt, stop new dispatch at once and cancel or collect every in-flight worker before the report, as autopilot defines.
On resumption, follow autopilot's Resume section. The ledger schema (id, description, phase) never carries a status field.
To recover the pre-run state, discard the run's local artifacts (amended plan, appended ledger lines, task tracking updates).
Return exactly one terminal classification.
DONE carries the delivered behavior and scope summary, the changed artifacts and files modified, the decision register summary, the ledger planning entries, per-task completion reconstructed from native task state plus execution receipts bound to task ID and revision, fresh verification evidence collected on the final tree after the last mutation proving all success criteria (build, typecheck, test outputs), and the observed close-out state (verified working tree modifications, local commit log, or authorized PR details). No post-proof unverified fix closes.
BLOCKED carries the failed stage and gate name, the root cause and failure detail, the autofix outcome (attempted and failed, or none), residual findings or compiler and test error output, the preserved local state (ledger path, modified files, uncommitted changes), and the single concrete action required to resume.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
planning, execution, task-ledger, phase-gates, orchestration
89 skills in this plugin
/abstract-wellUse when the user wants to classify abstractions as useful, bad, or busy and keep one shallow level. Not for tasks requiring source or remote-system changes./architectUse when non-trivial code needs a design, codebase architecture needs improving through survey and deepening, or one module needs targeted interface narrowing, seams, or testability. Not for rendered visual artifacts, deploy, or irreversible changes./architecture-simplificationUse when the user explicitly asks to simplify an architecture, collapse modules or crates, or cut a dependency graph within approved boundaries. Executes an approved layout direction slice by slice. Not for single-module cleanup: use code-simplification. Not for layout planning from nothing: use architect. Not for blind re-derivation: use breaking-driven./askmeUse when eliciting intent/scope/referents or gating long/bundled/high-stakes/hard-to-undo work: exhaustive/collaborative/adversarial/grill/gate/batch/interview/proposal/pairing. Grill me and grill batches select evidence-backed, chat-only grill mode. Not for scanning a stated request: use clarify. Not for one fork by default: use decide./audit-projectUse when the user says "audit my code", "find all the bugs", "review until clean", or "grill my changes". Not for remote, credential, or irreversible changes./autolearnUse when a verified fix yields a generalized well-abstracted invariant with enforcement or proof, or existing solution docs need bounded refresh. Not for unverified fixes, minor learnings, narrative/activity/weak-test stories, retrospective analysis, or remote migration.npx claudepluginhub gosuda/dstack-skills --plugin dstack-coreOther plugins' skills for the same job