
Do long task
Runs long multi-step tasks from spec, plan and handoff files with checkpoints and resume
Do long task is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 5
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Do long task
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.
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 9 files (74 KB) on GitHub on 4 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 common-tools plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add ruan-cat/monorepo
/plugin install common-tools@ruan-cat-toolsOr copy only this skill to ~/.claude/skills/do-long-task:
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.
Copy the skill folder to ~/.agents/skills/do-long-task to use it in every repository:
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.
Copy the skill folder to ~/.cursor/skills/do-long-task to use it in every project:
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.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/ruan-cat/monorepo.git --path ai-plugins/common-tools/skills/do-long-taskOr copy the folder to ~/.gemini/skills/do-long-task yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/do-long-task:
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.
Get the folder:
git clone --depth 1 https://github.com/ruan-cat/monorepo.gitThen 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.
What it does
- 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
Do long task 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.
More from ruan-cat/monorepo

Works through an OpenSpec change's task list, implementing and checking off each task
- Open source
- 5 GitHub stars
- Developer tools

Finalizes a completed OpenSpec change, syncing its specs and moving it to the archive
- Open source
- 5 GitHub stars
- Developer tools

Generates all OpenSpec planning artifacts for a change in one pass
- Open source
- 5 GitHub stars
- Developer tools

Starts a new OpenSpec change and shows its first artifact template for review
- Open source
- 5 GitHub stars
- Developer tools

Checks and normalizes package.json, tsup and tsconfig setup for monorepo Node packages
- Open source
- 5 GitHub stars
- Developer tools

Turns incident reports and repeated failures into durable, verifiable agent skill rules
- Open source
- 5 GitHub stars
- Developer tools




