Agent skill

Goal Objective Drafter

by QwenLM in QwenLM/qwen-code

Turns a vague intention into a /goal objective with one outcome, numbered yes-or-no checks, guardrails, a budget and a block protocol, without starting the work.

Apache-2.0Auto-check passedAgent Workflows

Install Goal Objective Drafter

skills CLI
$ npx skills add QwenLM/qwen-code --skill goal-draft -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install QwenLM/qwen-code goal-draft --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/QwenLM/qwen-code.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/core/src/skills/bundled/goal-draft .claude/skills/goal-draft && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
goal-draft
GitHub stars
28k
Token cost
~3.5k tokens
SKILL.md length
1,810 words
Files
2
Skills in repo
41
Repo updated
First seen
Licence
Apache-2.0

At a glance

Turns a vague intention into a /goal objective with one outcome, numbered yes-or-no checks, guardrails, a budget and a block protocol, without starting the work.

  • Works in 6 steps: should this be a Goal at all? → check the active Goal → ground the draft in the workspace → …
  • Setting a /goal for a long task so the verifier can judge when it is done
  • SKILL.md covers How Goals are judged (why the…, Step 0 — should this be a Goal…, Step 1 — check the active Goal and Step 2 — ground the draft in…, plus 3 more sections
  • Runs TypeScript scripts from its folder; calls npm

What it does

This skill drafts the text of a goal for the /goal command in Qwen Code, and stops there. It does not edit files, run checks or begin the task. An active goal is repeated to the model every turn and counts as finished only when an independent verifier, which reads transcript evidence alone, agrees. Printed text proves nothing about tests or file changes, so the objective has to make the agent produce a tool result near the end.

A drafted goal names one outcome, numbered "Done when" checks that can only pass or fail, guardrails, a budget and a block protocol for when the agent gets stuck. The skill first decides whether a goal fits at all and declines one-shot tasks, product or design judgment calls, and anything that cannot be checked from the agent's own output. It then looks for an active goal with get_goal and keeps your choice to edit or replace it, never drafting a second one at the same time. When key information is missing, it returns only a draft marked Needs clarification.

When your agent uses it

  • Setting a /goal for a long task so the verifier can judge when it is done
  • Checking whether an existing goal is specific enough to finish
  • Turning keep going until the tests pass into checks that leave evidence
  • Tightening the wording of an active goal before editing it

Example prompts

  • “/goal-draft get every test in packages/core passing and the linter clean”
  • “Tell me whether my goal of making the dashboard faster is specific enough to verify.”
  • “Keep going until the CI pipeline is green: write that up as a proper goal.”
  • “Tighten this goal so each check leaves evidence: migrate the auth module to the new API.”

Requirements

  • A Qwen Code session with the /goal command and its get_goal tool

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. should this be a Goal at all?
  2. check the active Goal
  3. ground the draft in the workspace
  4. at most one round of questions
  5. draft the objective
  6. self-check, then hand off

What it can do on your machine

Read from SKILL.md and the folder at commit 6386bb2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (TypeScript), which the agent can run.

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Goal Objective Drafter loads about 3.5k tokens when it runs. Until then it costs about 123 tokens; SKILL.md has 1,810 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~123
When it runs · the whole SKILL.md, loaded when a task matches
~3.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from QwenLM/qwen-code at commit 6386bb2, republished under its Apache-2.0 licence (© QwenLM). 1,810 words, ~3,488 tokens.

Download SKILL.mdSave it as .claude/skills/goal-draft/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
goal-draft
description
Turn a fuzzy intention into a /goal objective the Goal verifier can actually judge - one outcome, numbered binary "Done when" checks that leave evidence in the transcript, guardrails, a budget, and a block protocol. Use when the user wants to set or define a goal, asks whether a goal is good enough, or says "keep going until X". Usage - /goal-draft <what you want done>, or /goal-draft <existing goal> to tighten it. This skill only writes the objective; it never starts the work.
argument-hint
[intent, or an existing goal to tighten]

/goal-draft — write a Goal the verifier can judge

You are already inside the loaded goal-draft skill — do not call the skill tool to invoke it again; start with Step 0.

You are drafting the text for /goal set. You are NOT doing the work the goal describes. Do not edit files, do not run the checks, do not start on the task. Deliver a concise objective for approval or a command the user can run; if essential information is missing, deliver only a draft marked "Needs clarification".

How Goals are judged (why the format below matters)

An active Goal is re-fed to the model every turn, and its completion is judged by an independent verifier that sees ONLY transcript evidence, read from the most recent record backwards until its request is full:

  • Visible assistant output, tool results, and the user's own messages recorded for the Goal count as evidence; a user message proves only what the user said, chose, or approved. The objective itself and hidden reasoning do not, and in a long Goal the oldest records no longer reach the verifier.
  • delivered_output evidence proves only that text was printed. It cannot prove that tests passed, files changed, or remote state changed — those need a directly recorded tool result in the transcript (an external_fact), not a script's or an aggregate wrapper's summary of one.
  • A claim that the user confirmed, chose, or approved something needs a real user message as evidence; otherwise the completion proposal is rejected.
  • Vague, subjective, or open-ended conditions never produce decisive evidence; the loop then runs until a limit is hit.

So a good objective makes the agent PRODUCE evidence at the end: run the named check immediately before proposing completion and paste the decisive output line. A check that ran long before may have to run again when completion is proposed.

Step 0 — should this be a Goal at all?

Say no, briefly, when the request is a normal one-shot task, needs a design or product judgement call, or has no way to be checked from the agent's own output. Offer to just do it, or to write a plan instead. A goal that cannot be checked is a prompt, not a goal.

Step 1 — check the active Goal

Call get_goal. If a Goal is active, preserve the user's explicit choice to edit it (same goal, tighter wording → /goal edit) or replace it (/goal set). If that choice is unclear, include it in Step 3's single round of questions; do not choose on the user's behalf. Never draft a second concurrent goal.

Step 2 — ground the draft in the workspace

Before asking anything, verify what you can with read_file, glob, and grep_search: that named files and packages exist, and what the real check commands are (package.json scripts, Makefile, CI workflow, test config). Use those exact commands in "Done when". Never invent paths, IDs, or commands; write <TODO: …> for anything you cannot confirm.

Read only what is needed to establish the scope and verification path. Stop exploring once those are grounded; do not audit the implementation, reproduce failures, run builds or tests, install dependencies, or start services while drafting. A requested new output file is a proposed destination, not evidence that the file already exists.

Step 3 — at most one round of questions

Ask with ask_user_question, 1–3 questions in one call, each with options and a recommended default. Ask only when the answer changes the check, the scope, or the budget. Typical questions:

  • Which check defines success: a test command, a build, a metric threshold, a file or state assertion?
  • Which environment: local, CI, staging?
  • What is off limits: which files, which actions (push, delete, publish)?
  • How long to try before stopping as blocked?

Rules for the questions:

  • Never ask what you could find out by reading the workspace.
  • Batch them into one ask_user_question call; do not drip one per turn.
  • Only ask things only the user can answer: what counts as done, what is off limits, how long to try.
  • If you cannot find a concrete way to verify the outcome, you MUST ask, offering 2–3 candidate checks. Do not skip this and do not invent one.

If you cannot ask (headless, or a client without prompts), use a recommended default only for nonessential choices and mark it [ASSUMPTION] in Context. An unknown success criterion, unverified command or input path, or unresolved edit-versus-replace choice stays <TODO: …>; do not invent an answer just to finish the hand-off. If essential information is still missing after the single question round, keep the draft incomplete rather than starting another round.

Step 4 — draft the objective

Use exactly these labels, in this order. Keep the whole objective on one line when you hand it over — the /goal parser joins lines with spaces, so number items instead of relying on newlines. Body text follows the user's language; labels stay English so the verifier can match them.

text
Outcome: <one sentence: what is true when done>
Done when: 1) <command> exits 0 and its output shows <…> (paste that line); 2) <file/state assertion provable via read or grep>; 3) …
Must not: <files not to touch; tests/thresholds not to weaken; irreversible actions not to take>
Budget: <user's advisory stopping agreement; otherwise stop as blocked after 20 turns, and mark that default [ASSUMPTION] in Context>
On block: propose blocked with the exact blocker and the decision a human must make; never claim completion without evidence for every Done-when item
Context: <only facts the agent cannot derive: paths, branch, environment, earlier decisions>

Rules of thumb:

  • One Outcome. Several outcomes = several goals, or a checklist file plus a single "every item in <file> is checked" goal.
  • Usually 3–5 Done-when checks suffice; use fewer when enough. Do not add checks just to reach a count, and preserve explicit user requirements.
  • Every Done-when item is binary, and at least one is tool-observable (a command with an exit code or output line, a file that exists, a grep that matches).
  • For audits and exploratory work, agree on bounded coverage and require evidence for each conclusion. Zero defects is a valid result: never require a positive defect count. Do not invent minimum scenario counts, evidence-file counts, or exploration-round quotas; include them only when the user requested them.
  • Prefer "the smallest safe change in <scope>" over open-ended refactors.
  • Put anything that must not change on the way into Must not — this is what stops the loop from deleting a failing test to "pass".
  • Keep it short: everything the agent can derive from the workspace stays out. Aim for under ~1200 characters.
  • Budget is a stopping agreement for the model, not a runtime-enforced turn or wall-clock limit. Do not claim that writing it configures a timer or changes the Goal token budget. When the user needs an enforced ceiling, tell them to set model.goalMaxTurns or model.goalMaxActiveMinutes in their settings -- never write the setting into the objective, which the Goal's own model cannot act on -- and say that either takes effect after a restart and only for Goals created afterwards -- neither bounds a Goal that is already running. Preserve a user-specified budget; otherwise mark the default [ASSUMPTION] in Context.

For example, an audit's Done-when checks can require a report covering the agreed scenarios, observed results and evidence for each scenario, and reproduction steps for each confirmed defect (or an explicit "no confirmed defects" result). Ground the scenarios and report destination before offering the objective for use.

Show full SKILL.md (679 more words)Show less
Weak → strong
WeakStrong
make checkout fasterOutcome: checkout API p95 is below 250 ms on the documented slow path. Done when: 1) npm run bench:checkout exits 0 and prints a p95 below 250 (paste the line); 2) npm test exits 0. Must not: change the benchmark, skip tests, touch files outside src/checkout. Budget: as model guidance, stop as blocked after 20 turns. On block: report the measured p95 and what blocks it. Context: [ASSUMPTION] the 20-turn budget is the drafter's default, not the user's.
keep handling the PR commentsOutcome: every unresolved review thread on PR #123 is fixed or answered. Done when: 1) the review-threads query shows zero unresolved threads (paste the count); 2) CI on the head commit is green (paste the check summary). Must not: force-push, resolve a thread without replying to it. Budget: as model guidance, stop as blocked after 30 turns. On block: list the threads that need a maintainer decision.
clean up the auth moduleNot a goal — "clean" has no check. Ask what would be observable (zero lint warnings in src/auth? a file count? a coverage threshold?) or offer a refactor plan instead.
get the release outNot a goal as written — publishing is irreversible. Either narrow it to a checkable pre-release state (tag exists, changelog entry present, npm run release:dry-run exits 0) and put "do not publish" in Must not, or leave publishing to a human.

Step 5 — self-check, then hand off

Check every line before printing:

  1. "Done when" exists, its items are numbered, and each is binary.
  2. At least one item names a command, exit code, file, or grep pattern and asks to paste the output.
  3. No subjective adjectives as conditions (clean, better, robust, elegant, reasonable, …).
  4. No "after the user confirms/approves" as a completion condition — that belongs in On block as a decision a human must make.
  5. Budget or On block is present.
  6. Exactly one Outcome.
  7. Every path and command in Context was verified in the workspace; an unverified path or command is essential and stays <TODO: …>.
  8. Under ~1200 characters.
  9. Irreversible actions (push, delete, publish) are listed in Must not, or the user explicitly allowed them.
  10. No invented coverage quotas, required defect findings, or claims that a prose budget is enforced by the runtime; an unrequested default Budget is marked [ASSUMPTION] in Context.

If an essential item remains unresolved — an unknown success criterion, an unverified command or input path, or an unresolved edit-versus-replace choice (each written as <TODO: …>) —, print only a draft marked "Needs clarification" (in the user's language) and briefly list what is missing. Do not call propose_goal or print a runnable /goal set or /goal edit line. Stop here; the ready-objective hand-off below does not apply.

Then hand off, and nothing else:

If the propose_goal tool is available and no Goal is active, call it with the objective on one line. propose_goal refuses an objective over 1,500 characters: tighten a longer draft before calling it, never cut it off mid-check. The user approves or declines it in a dialog; only their approval sets the Goal. If they decline you will not be told why: stop, do not ask about it, and do not propose the same or a reworded objective again. After approval, acknowledge it in one sentence and end the turn — the Goal runtime starts the first Goal turn on its own.

Otherwise (a client without Goal proposal support, headless, the tool is disabled, or a Goal is active), print:

  1. The objective in a fenced code block.
  2. One line the user can run as-is: /goal set <objective on one line> (or /goal edit … when tightening the active goal). Print it as plain text with no code markers, so it can be copied verbatim.
  3. One sentence explaining that the draft has not been applied and the user must run the command to apply it; include any [ASSUMPTION] items. Do not promise a dialog when the tool is unavailable.

Do not run /goal yourself. Do not begin the task. Stop and wait for the user.

© QwenLM, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in packages/core/src/skills/bundled/goal-draft of QwenLM/qwen-code.

  • SKILL.md
  • SKILL.test.ts

Open the folder on GitHubat commit 6386bb2

Compare with similar skills

Goal Objective Drafter next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Goal Objective Drafter compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Goal Objective Drafter this skillQwenLM/qwen-code28k—~3.5kAutomated safety check: PassApache-2.0
Show Me Your Work Decision Logcursor/plugins11k8 repos~1.6kAutomated safety check: PassNone
PUA Looptanweai/pua20k—~1.1kAutomated safety check: PassMIT
Inline Plan ExecutionjnMetaCode/superpowers-zh8.3k—~2.5kAutomated safety check: PassMIT
AutopilotYeachan-Heo/oh-my-claudecode40k—~4.4kAutomated safety check: PassMIT
PRP Loop: Autonomous PipelineWirasm/prp2.3k—~863Automated safety check: PassMIT

Similar skills

  • Official

    Keeps a TSV decision log for long or unattended agent runs, one row per decision with what, why, evidence and result, so a reviewer can check the work later.

    11k GitHub starsUsed in 8 repos~1.6k tokens
    Agent WorkflowsAuto-check passed
  • PUA Loop

    tanweai/pua

    Runs an unattended iterate-until-verified loop in which a user-set verify command, not the agent's own claim, decides when the task is finished.

    20k GitHub stars~1.1k tokensUpdated 1 mo ago
    Agent WorkflowsAuto-check passed
  • Inline Plan Execution

    jnMetaCode/superpowers-zh

    Executes a written implementation plan task by task in the current session, with a progress ledger, test-first gates and one fresh-context review at the end.

    8.3k GitHub stars~2.5k tokensUpdated 2 days ago
    Agent WorkflowsAuto-check passed
  • Autopilot

    Yeachan-Heo/oh-my-claudecode

    Takes a short product idea through requirements, design, planning, parallel implementation, QA cycles and multi-reviewer validation to produce working code.

    40k GitHub stars~4.4k tokensUpdated 2 days ago
    Agent WorkflowsAuto-check passed
  • Runs a detached, resumable loop that plans, implements, opens a PR, reviews and fixes a feature across headless CLI sessions until the review is clean.

    2.3k GitHub stars~863 tokensUpdated 8 days ago
    Agent WorkflowsAuto-check passed
  • Pi Goal Writer

    Michaelliv/pi-goal

    Drafts and reviews /goal prompts for long-running autonomous agents, turning a vague request into a completion contract with outcome, evidence, constraints and a stop condition.

    228 GitHub stars~1.7k tokensUpdated 3 mo ago
    Agent WorkflowsAuto-check passed

More from QwenLM/qwen-code

All 41 skills in this repo
  • Reproduces a feature from Codex or Claude Code in Qwen Code by running the reference agent under capture, reading the traces, then implementing matching behavior.

    28k GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Qwen Code E2E Testing

    QwenLM/qwen-code

    Guides end-to-end testing of the Qwen Code CLI in headless mode with real model calls, MCP test servers and inspection of raw API traffic.

    28k GitHub stars~2.1k tokensUpdated today
    Auto-check passed
  • Scheduled CI skill that scans a repository for small, certain docs, test and code hygiene issues and fixes them on one branch with a commit per finding.

    28k GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Builds a rebranded Qwen Code desktop package from the Tauri shell using only a brand id and a logo, with sensible derived defaults.

    28k GitHub stars~2.1k tokensUpdated today
    Auto-check passed
  • Walks through capturing and comparing V8 heap snapshots to find memory leaks in the Qwen Code Node.js CLI, using tmux and the chrome-devtools CLI.

    28k GitHub stars~1.3k tokensUpdated today
    Auto-check passed
  • tmux Real User Testing

    QwenLM/qwen-code

    Drives Qwen Code in a real tmux session the way a user would and saves a readable step-by-step transcript of each screen for maintainers to review.

    28k GitHub stars~2.3k tokensUpdated today
    Auto-check passed

Categories

Questions about Goal Objective Drafter

What does Goal Objective Drafter do?

Turns a vague intention into a /goal objective with one outcome, numbered yes-or-no checks, guardrails, a budget and a block protocol, without starting the work. This skill drafts the text of a goal for the /goal command in Qwen Code, and stops there. It does not edit files, run checks or begin the task.

When should I use Goal Objective Drafter?

Goal Objective Drafter fits situations like: setting a /goal for a long task so the verifier can judge when it is done; checking whether an existing goal is specific enough to finish; turning keep going until the tests pass into checks that leave evidence; tightening the wording of an active goal before editing it.

How do I install Goal Objective Drafter in Claude Code?

Run `npx skills add QwenLM/qwen-code --skill goal-draft -a claude-code`. Or copy the skill folder (packages/core/src/skills/bundled/goal-draft in QwenLM/qwen-code) into .claude/skills/goal-draft in your project. Claude Code loads it when a task matches its description.

How do I install Goal Objective Drafter in Codex?

Run `npx skills add QwenLM/qwen-code --skill goal-draft -a codex`. Or copy the skill folder (packages/core/src/skills/bundled/goal-draft in QwenLM/qwen-code) into .agents/skills/goal-draft in your project. Codex loads it when a task matches its description.

Can I use Goal Objective Drafter in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add QwenLM/qwen-code --skill goal-draft -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/goal-draft, .gemini/skills/goal-draft, .github/skills/goal-draft and .opencode/skills/goal-draft in your project.

What does Goal Objective Drafter need to run?

Going by SKILL.md and its folder, Goal Objective Drafter needs TypeScript for the scripts in its folder and the command-line tools its instructions call (npm). Our summary lists: A Qwen Code session with the /goal command and its get_goal tool.

Does Goal Objective Drafter access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Goal Objective Drafter safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Goal Objective Drafter use?

Goal Objective Drafter is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Goal Objective Drafter use?

About 3.5k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Goal Objective Drafter?

Skills that share tags, products or a category with Goal Objective Drafter: Show Me Your Work Decision Log (cursor/plugins, 11k stars), PUA Loop (tanweai/pua, 20k stars), Inline Plan Execution (jnMetaCode/superpowers-zh, 8.3k stars) and Autopilot (Yeachan-Heo/oh-my-claudecode, 40k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Goal Objective Drafter?

QwenLM (a GitHub organization) maintains it in QwenLM/qwen-code, which has 28,397 GitHub stars. The repository holds 41 skills in this directory. The repository was last updated on October 10, 2026.

Source: QwenLM/qwen-code on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.