# Do long task

> Do long task is an open-source agent skill for developer tools. Runs long multi-step tasks from spec, plan and handoff files with checkpoints and resume. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/ruan-cat/monorepo/tree/main/ai-plugins/common-tools/skills/do-long-task
- **Repository:** https://github.com/ruan-cat/monorepo
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** do-long-task
- **Collection:** https://github.com/ruan-cat/monorepo
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill guides an agent through executing, resuming, handing off or accepting a task package made of sibling spec.md, plan.md and handoff.md files, and through OpenSpec changes that must advance across several checkpoints. It keeps the task source in one place, with plan.md for simple packages and tasks.md for OpenSpec changes, and records progress and status in handoff or progress files rather than chat memory.

For OpenSpec work it asks the agent to read the proposal, design, spec and task artifacts before editing, to add missing tasks to the task list instead of a side checklist, and to keep progress and findings files compact with overwrite-style snapshots and deduplicated findings. It also checks for misplaced progress files and moves them into the correct change directory when the target is unambiguous.

The skill can also produce a copy-ready long-task prompt for Claude Code or Codex /goal without starting the work. It expects a repository with the named task files and relies on the agent's own test, lint and typecheck commands for verification.

## When your agent uses it

> 当用户要执行、续跑、交接或验收同目录含 spec.md、plan.md、handoff.md 的任务包时使用，包括任务包、交接文档、 docs/plan、docs/prompts、docs/one-use、简易长任务，以及大约 30 分钟到 1.5 小时、通常一次上下文就能做完的实施计划。 当复杂开发、修复、重构、迁移、验证或 OpenSpec change 需要跨 checkpoint 持续推进、上下文恢复，或需要把进度与失败记录 存放在具体 OpenSpec change 或 archive 目录内时也使用。当用户要求生成 Claude Code `/goal`、Codex `/goal` 或 do-long-task 长任务提示词时也使用。不要用于一次性短改、问答、简单格式化、changeset、发版日志，或尚未开始执行的纯计划讨论。 Use when executing, resuming, handing off, or accepting a task package that contains sibling spec.md, plan.md, and handoff.md, including docs/plan, docs/prompts, docs/one-use, and 30-minute to 1.5-hour implementation packages. Also use when an OpenSpec change must advance across checkpoints or keep progress inside a concrete change or archive directory. Also use when asked to generate a Claude Code `/goal`, Codex `/goal`, or do-long-task prompt. Do not use for one-off edits, Q&A, formatting, changesets, release notes, or pure planning that has not started execution.

## What it can access

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

- [Instructions only, no scripts](https://github.com/ruan-cat/monorepo/tree/HEAD/ai-plugins/common-tools/skills/do-long-task)
- [License: MIT](https://github.com/ruan-cat/monorepo/tree/HEAD/ai-plugins/common-tools/skills/do-long-task)

## Features

- **Task package execution:** Drives a spec, plan and handoff package from start to finish with one task at a time.
- **OpenSpec change tracking:** Keeps OpenSpec artifacts in sync and treats tasks.md as the single executable task list.
- **Checkpoint progress files:** Maintains compact progress and findings files so work survives context loss and restarts.
- **Misplaced file migration:** Detects progress files in the wrong location and moves them into the matching change directory.
- **Long-task prompt generation:** Writes a copyable execution prompt for Claude Code or Codex /goal without running the task.
- **Verify before completion:** Requires relevant checks to pass and records evidence before a task is marked done.

## Good for

- Resume an unfinished implementation plan from its handoff notes
- Execute an OpenSpec change task by task across several sessions
- Write a /goal prompt for a multi-hour refactor
- Accept a task package by checking its handoff against the plan

## Install

### Claude Code

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

```sh
/plugin marketplace add ruan-cat/monorepo
/plugin install common-tools@ruan-cat-tools
```

Or copy only this skill to `~/.claude/skills/do-long-task`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/do-long-task &&
cp -R "$tmp/ai-plugins/common-tools/skills/do-long-task" ~/.claude/skills/do-long-task &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/do-long-task` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/do-long-task` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/do-long-task &&
cp -R "$tmp/ai-plugins/common-tools/skills/do-long-task" ~/.agents/skills/do-long-task &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/do-long-task` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/do-long-task` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/do-long-task &&
cp -R "$tmp/ai-plugins/common-tools/skills/do-long-task" ~/.cursor/skills/do-long-task &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/do-long-task` 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/ruan-cat/monorepo.git --path ai-plugins/common-tools/skills/do-long-task
```

Or copy the folder to `~/.gemini/skills/do-long-task` yourself.

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/do-long-task &&
cp -R "$tmp/ai-plugins/common-tools/skills/do-long-task" ~/.copilot/skills/do-long-task &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/do-long-task` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ruan-cat/monorepo.git
```

Then copy `monorepo/ai-plugins/common-tools/skills/do-long-task` into your agent's skills folder as `do-long-task`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Do long task trigger?

When the user asks to execute, resume, hand off or accept a folder containing spec.md, plan.md and handoff.md, or an OpenSpec change that spans several checkpoints, or to generate a long-task prompt.

### Does Do long task need OpenSpec?

No. Simple task packages only need spec.md, plan.md and handoff.md. OpenSpec changes use their own artifact set and task file instead.

### Will Do long task create progress files for a simple package?

No. Simple packages keep status only in handoff.md and do not create the OpenSpec progress or findings files.

### Does Do long task run tests itself?

It asks the agent to run the relevant tests, lint, typecheck or validation for each change before marking a task complete, but the prompt generation mode does not run them.

### How do I install Do long task in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/do-long-task to use it in all your projects, or to .claude/skills/do-long-task in one project. Or install the common-tools plugin, which includes it: /plugin marketplace add ruan-cat/monorepo, then /plugin install common-tools@ruan-cat-tools.

### Does Do long task 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 Do long task?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Do long task?

The closest alternatives to Do long task are Openspec apply change, Spec driven develop, Spec driven dev v2, Long haul and Spec implement.

## Where this comes from

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

## Alternatives

- [Openspec apply change](https://ai-powered.com/skills/openspec-apply-change): Openspec apply change is an open-source agent skill for developer tools.
- [Spec driven develop](https://ai-powered.com/skills/spec-driven-develop): Spec driven develop is an open-source agent skill for developer tools.
- [Spec driven dev v2](https://ai-powered.com/skills/spec-driven-dev-v2): Spec driven dev v2 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.
- [Spec implement](https://ai-powered.com/skills/spec-implement): Spec implement is an open-source agent skill for developer tools.
- [Implement](https://ai-powered.com/skills/implement-kzytateishi): Implement is an open-source agent skill for developer tools.
- [Spec driven development](https://ai-powered.com/skills/spec-driven-development-addyosmani): Spec driven development is an open-source agent skill for developer tools.
- [Spec coding](https://ai-powered.com/skills/spec-coding): Spec coding is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/do-long-task
