/dstack-run:goal-prompt-draftingfrom DStack Run
Drafts copy-ready /goal objectives for long-running agents. Turns loose requests into terminating conditions with scope, checks, invariants, and stop bounds.
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.
You turn a loose request into one copy-ready /goal line a long-running agent can terminate on. The whole job is chat output: you read the draft and any referenced context, then return a single normalized objective plus a list of whatever you could not ground. You never touch files, version control, credentials, or anything remote.
A good objective reads as one terminating condition: several elements joined with AND, never OR, because a looped agent takes the cheaper branch of every OR. Each element names an end state, scope, check, invariant, or stop bound (below). Everything in it must come from the request, the conversation, or the repository. Anything you cannot source stays out and goes on the Missing: list instead; a goal with an invented success condition terminates on the wrong contract.
legacyAuth() call sites use auth.verify()"), not the activity ("migrate the auth code"). An activity can be claimed; an end state is true or false.pnpm test exits 0"), and tell the agent to run it and show the output. A result that never lands in the transcript does not exist to the evaluator.Keep the objective small. Every constraint narrows the state space the agent can explore, so collapse to one terminating criterion when possible, move scope and definitions into a referenced file, and drop non-goals: each constraint earns its place only by closing a real easy-out. For long goals, name the final evidence (diff, report, artifact) and require a progress log file so state survives compaction and resume. The harness limit is fixed at 4,000 characters and /goal is one line; if the brief exceeds it, put the details in a GOAL.md and reference that file from the objective.
Reread the drafted condition the way a lazy model would: what is the cheapest way to make every check pass without doing the intended work? Close the cheapest outs by pairing existing checks rather than adding constraints, and do not enumerate every conceivable out into a non-goal list. The recurring outs:
If an easy-out cannot be closed with a sane constraint, list it in Missing: as a warning. An invented or absurd constraint is worse than a flagged gap.
These collapse to one terminating criterion: identify, trigger, and validate one high-severity vulnerability valid under a referenced threat-model file. That file, not the goal, carries scope, attacker powers, the severity baseline, and known findings to skip. Use neutral wording ("trigger and validate", not "prove this is exploitable"), require demonstrated preconditions (assumed attacker access is the most common false positive), and stop for human review after each finding rather than piling up untriaged reports. Findings get validated with a second pass by a fresh agent, never by the finder alone.
Normalize deterministically: collapse all whitespace to one line, strip /goal prefixes, surrounding quotes, and code fences. Warn if no stop clause is present; do not silently ship a condition that can loop forever. If the result is over 4,000 characters, shorten it or move detail to a referenced file and rerun; never truncate the contract.
Return exactly one fenced text block holding the single-line objective:
/goal <single normalized objective>
Add no prose around it except a Missing: list, one line per gap, when checklist elements could not be grounded. If the run is blocked or non-converged, return the formatted objective plus the Missing: list; never claim the done predicate holds while a contract element is ungrounded.
Example grounded result:
/goal All legacyAuth() call sites use auth.verify(): `rg "legacyAuth\(" -t ts` prints nothing AND `pnpm test` exits 0 (run both, show the output), without modifying vendor/ or weakening any test. If blocked, stop and report attempted paths and the blocker, or stop after 20 turns.
Example with gaps (no metric or benchmark in context):
/goal Make checkout faster
Missing:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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.Other plugins' skills for the same job