cancel

Cancel a task module, stop its auto loop, and record the cancellation reason.

1|Updated Feb 10, 2026
One-click install
npx skills add https://github.com/huacheng/moonview --skill cancel-huacheng
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cancel
Source: https://github.com/huacheng/moonview/tree/main/plugins/task-ai/skills/cancel
Command: npx skills add https://github.com/huacheng/moonview --skill cancel-huacheng

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Cancel a task module by setting its status to cancelled, stopping any running auto loop, and optionally cleaning up the associated worktree when a task becomes infeasible, deprioritized, or needs to be abandoned.

Core Features & Use Cases

  • Safely cancel tasks and halt auto execution to prevent further progress.
  • Persist cancellation reason and update task state consistently in the index.
  • Optionally clean up resources such as the git worktree and task branch to reclaim space and reduce drift.

Quick Start

Execute /task-ai:cancel on the target notebook to cancel the task and optionally remove the worktree with a provided reason.

Frequently Asked Questions about cancel

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I cancel a running task and stop its auto loop safely?

To cancel a running task and stop its auto loop, you execute the cancel command on the target module. This updates the task state to cancelled, halts any active auto execution, and enforces concurrency safety to prevent further progress.

Can I clean up the git worktree and branch when cancelling a task?

Yes, you can optionally clean up the git worktree and task branch when cancelling a task. This reclaims space and reduces drift by removing associated resources based on the provided flags during the cancellation process.

What is the best way to record the reason for abandoning a workflow task?

The best way to record the reason for abandoning a workflow task is to provide it during the cancellation process. The system persists this cancellation reason and updates the task state consistently within the index.

Does task cancellation handle concurrency safety and commit changes?

Yes, task cancellation handles concurrency safety and commits changes. It enforces safe concurrent execution, commits the state modifications, writes a summary, and preserves remaining resources per your specified flags.

When should I cancel an automated task instead of pausing it?

You should cancel an automated task instead of pausing it when the task becomes infeasible, deprioritized, or needs to be permanently abandoned. Cancellation stops the auto loop, updates the state, and optionally removes the worktree.