Skip to content
Skill

Dual goal

Turns a clear improvement target into a measurable Claude Code /goal condition

Dual goal is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
10
Last commit
License
MIT
Listing updated

Similar skills

About Dual goal

This skill is the second phase of the dual-haul workflow for Claude Code. It reads an understanding document produced earlier in the workflow and converts the stated success signal into a completion condition that Claude Code's /goal command can evaluate. The condition is built from one measurable end state, a check the agent's own output can demonstrate, the constraints that must keep holding, and a turn cap so the goal always terminates.

The skill writes the finished condition to a GOAL.md file along with the literal /goal line. It stops short of running the command itself: the user reviews and approves the condition, then starts the goal. If the success signal cannot be verified from the transcript, the skill sends the user back to clarify it rather than producing a goal that would loop indefinitely.

It expects a prior dual-understand run, or a clearly described improvement target when used on its own. It runs no scripts and needs only the files in its own folder.

When your agent uses it

Phase 2 of dual-haul. Turns .dualhaul/UNDERSTANDING.md into a /goal-ready completion condition — one measurable end state, a stated transcript-demonstrable check, the constraints that must hold, and a turn cap — written to .dualhaul/GOAL.md plus the literal /goal line for the user to run. Use after dual-understand, or standalone to craft a good /goal condition from a clear improvement target.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (3 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the dual-haul plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add ccomkhj/skills
/plugin install dual-haul@ccomkhj-skills

Or copy only this skill to ~/.claude/skills/dual-goal:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccomkhj/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/dual-goal &&
cp -R "$tmp/dual-haul/skills/dual-goal" ~/.claude/skills/dual-goal &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/dual-goal inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/dual-goal to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccomkhj/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/dual-goal &&
cp -R "$tmp/dual-haul/skills/dual-goal" ~/.agents/skills/dual-goal &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/dual-goal inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/dual-goal to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccomkhj/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/dual-goal &&
cp -R "$tmp/dual-haul/skills/dual-goal" ~/.cursor/skills/dual-goal &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/dual-goal inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/ccomkhj/skills.git --path dual-haul/skills/dual-goal

Or copy the folder to ~/.gemini/skills/dual-goal yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/dual-goal:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccomkhj/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/dual-goal &&
cp -R "$tmp/dual-haul/skills/dual-goal" ~/.copilot/skills/dual-goal &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/dual-goal inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/ccomkhj/skills.git

Then copy skills/dual-haul/skills/dual-goal into your agent's skills folder as dual-goal. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Measurable end state
Reframes a vague improvement goal into one concrete, testable finish line.
Transcript-visible checks
Ensures the proof of completion appears in the agent's own output so the evaluator can judge it.
Constraint preservation
Lists what must not change on the way to the goal, such as signatures, dependencies or other tests.
Turn cap safeguard
Adds a round limit so an unreachable goal still stops.
Goal file output
Saves the condition and its rationale to GOAL.md and updates the workflow state file.
User approval gate
Pauses so the user reviews the condition and starts /goal manually.

Good for

  • Turn a failing test suite into a /goal that stops when all tests pass
  • Set a latency target as a measurable goal with a benchmark check
  • Craft a completion condition for cleaning up a repository until git status is clean
  • Write a bounded /goal for reducing a lint error count to zero
  • Convert a refactoring plan into a goal with constraints on public APIs

Dual goal FAQ

Does Dual goal run /goal for me?

No. It presents the literal /goal line and waits for the user to review, approve and run it themselves.

Do I need to run dual-understand first?

It is designed to follow dual-understand, which produces UNDERSTANDING.md, but it can also be used standalone with a clear improvement target.

What does the skill write to disk?

It writes .dualhaul/GOAL.md containing the condition, the /goal line and a note on why the check is transcript-demonstrable, and updates the GOAL field and phase in STATE.md.

What happens if the success signal is not measurable?

The skill returns to the user or to dual-understand instead of forcing a goal the evaluator could never confirm.

How do I install Dual goal in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/dual-goal to use it in all your projects, or to .claude/skills/dual-goal in one project. Or install the dual-haul plugin, which includes it: /plugin marketplace add ccomkhj/skills, then /plugin install dual-haul@ccomkhj-skills.

Does Dual goal run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Dual goal?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Dual goal?

The closest alternatives to Dual goal are Haul goal, Dual understand, Dual report, Goal prompt and Dual haul.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from ccomkhj/skills

  1. Audits AGENTS.md project memory files and proposes targeted, approved updates

    • Open source
    • 10 GitHub stars
    • Developer tools
  2. Builds interactive HTML lessons that teach AI, ML or science concepts through worked cases

    • Open source
    • 10 GitHub stars
    • Education and exam prep
  3. Runs a project and builds an interactive walkthrough from what actually executed

    • Open source
    • 10 GitHub stars
    • Developer tools
  4. Races Claude against Codex in separate git worktrees until a measurable goal is met

    • Open source
    • 10 GitHub stars
    • Developer tools
  5. Runs a per-turn race between two coding agents and keeps the better diff

    • Open source
    • 10 GitHub stars
    • Developer tools
  6. Writes a final goal-vs-achieved report for a dual-haul run with verified checks

    • Open source
    • 10 GitHub stars
    • Developer tools