cancel-refine-loop

Cancel active refine loops by deleting state files from .claude/refine-loop/ directories.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/sato-dev1234/claude-code-sample --skill cancel-refine-loop
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cancel-refine-loop
Source: https://github.com/sato-dev1234/claude-code-sample/tree/main/skills/cancel-refine-loop
Command: npx skills add https://github.com/sato-dev1234/claude-code-sample --skill cancel-refine-loop

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Cancels an active refine loop by removing state files from .claude/refine-loop/ directories. Use this when you need to stop a running quality improvement cycle without leaving partial state behind.

Core Features & Use Cases

  • Cancels active refine loops across code, tests, UI tests, and skills by deleting their state directories.
  • Provides user prompts to confirm cancellation of all or specific loop types.
  • Ensures cleanup of related state files to prevent resumption of stale loops.

Quick Start

Cancel the active refine loop by removing its state directories under .claude/refine-loop/.

Frequently Asked Questions about cancel-refine-loop

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

FAQPage Schema
How do I cancel an active refine loop in Claude?

To cancel an active refine loop in Claude, you remove the state files from the .claude/refine-loop/ directories. This skill detects active quality improvement cycles and prompts you to confirm cancellation of all or specific loop types before deleting them.

What is the best way to stop a running quality improvement cycle without leaving partial state behind?

The best way to stop a running quality improvement cycle without leaving partial state behind is to delete the corresponding state directories. This ensures cleanup of related state files to prevent resumption of stale loops.

How does state management work for canceling refine loops across code, tests, and UI tests?

State management for canceling refine loops works by detecting active loops across code, tests, UI tests, and skills. It then prompts you to select specific types to cancel and deletes the corresponding .claude/refine-loop/ directories.

Can I select specific loop types to cancel instead of stopping all active refine loops?

Yes, you can select specific loop types to cancel instead of stopping all active refine loops. The skill provides user prompts allowing you to confirm cancellation of all loops or choose specific categories like code or UI tests.

Why does a stale refine loop resume and how do I prevent it in my DevOps automation?

A stale refine loop resumes when partial state files remain in the .claude/refine-loop/ directories. You prevent it in your DevOps automation by using this skill to ensure complete cleanup of related state files after stopping the cycle.

Do I need any dependencies to clear refine loop state files?

No, you do not need any dependencies to clear refine loop state files. The skill operates independently to detect active loops and delete their corresponding directories without requiring external components.