# Dual goal

> Dual goal is an open-source agent skill for developer tools. Turns a clear improvement target into a measurable Claude Code /goal condition. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/ccomkhj/skills/tree/main/dual-haul/skills/dual-goal
- **Repository:** https://github.com/ccomkhj/skills
- **GitHub stars:** 10
- **License:** MIT
- **Skill name:** dual-goal
- **Collection:** https://github.com/ccomkhj/skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/ccomkhj/skills/tree/HEAD/dual-haul/skills/dual-goal)
- [License: MIT](https://github.com/ccomkhj/skills/tree/HEAD/dual-haul/skills/dual-goal)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Haul goal](https://ai-powered.com/skills/haul-goal): Haul goal is an open-source agent skill for developer tools.
- [Dual understand](https://ai-powered.com/skills/dual-understand): Dual understand is an open-source agent skill for developer tools.
- [Dual report](https://ai-powered.com/skills/dual-report): Dual report is an open-source agent skill for developer tools.
- [Goal prompt](https://ai-powered.com/skills/goal-prompt): Goal prompt is an open-source agent skill for ai models and llm tooling.
- [Dual haul](https://ai-powered.com/skills/dual-haul): Dual haul is an open-source agent skill for developer tools.
- [Long haul](https://ai-powered.com/skills/long-haul): Long haul is an open-source agent skill for developer tools.
- [Dual loop](https://ai-powered.com/skills/dual-loop): Dual loop is an open-source agent skill for developer tools.
- [Skill improver](https://ai-powered.com/skills/skill-improver): Skill improver is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/dual-goal
