Skip to content
cancel logo

Cancel Loop

cancel

Cancel active Loop. Use when loop needs to stop early, done iterating manually, want to abort, or change direction. Triggers on "cancel loop", "stop iterating", "end loop", "terminate loop", "abort loop", "kill loop", "stop the loop", "halt". Graceful termination that preserves completed work.

SKILL.md

Full skill instructions

Cancel Loop

Gracefully terminate an active loop while preserving all completed work.

When to Use

SituationAction
Need to change directionCancel, then start new loop with updated spec
Spec was wrongCancel, clarify with /​hope:intent, restart
Good enoughCancel when partial progress is sufficient
Taking too longCancel to review approach before continuing
Emergency stopCancel immediately halts next iteration

Cancel vs Natural Completion

  • Natural completion: Loop satisfied spec, clean exit with success summary
  • Cancel: User-initiated stop, preserves progress, enables restart

Cancel when you want control back. Let it complete when spec is being satisfied.

What Happens

  1. Read state — Load .loop/​state.json
  2. Set status — Update status to "cancelled" in state file
  3. Find active task — TaskList for in_progress task (subject starts with "Loop:")
  4. Mark terminated — TaskUpdate status=completed with cancellation note
  5. Report state — Iterations, cost, accomplished work, remaining items

Current iteration completes before cancel takes effect. No mid-operation interruption.

State File Update (Required)

Update .loop/​state.json:

{
  "status": "cancelled",
  "exit_signal": false
}

This ensures the stop hook allows the cancellation to proceed.

Output

Loop cancelled.

Completed: [N] iterations, $[X] cost
Accomplished:
- [list of completed steps]

Remaining:
- [list of incomplete steps]

Criteria status:
- [criterion 1]: ✓/✗
- [criterion 2]: ✓/✗

To restart: /​loop [spec]

Guarantees

  • All completed work preserved (no rollback)
  • State file updated to prevent resume
  • Clean termination (no dangling state)
  • Full accounting (iterations, cost, progress)
  • Restart possible with same or modified spec

More Finance & Trading skills

ponytail-debt logo
Finance & Trading

ponytail-debt

Harvest every `ponytail:` comment in the codebase into a debt ledger, so the deliberate shortcuts and deferrals ponytail leaves behind get tracked instead of rotting into "later means never". One-shot report, changes nothing.

155.5K 27.9K
View
stripe-integration logo
Finance & Trading

stripe-integration

Stripe payment processing with checkout sessions, subscriptions, webhooks, and customer management.

40.2K 12.9K
View

Build comprehensive 3-5 year financial models with revenue projections, cost structures, cash flow analysis, and scenario planning for early-stage startups. Use this skill when creating financial projections, calculating burn rate or runway, modeling fundraising scenarios, or preparing investor-r...

40.2K 12K
View
stock-analysis logo
Finance & Trading

stock-analysis

Stock and cryptocurrency analysis with portfolio management and multi-dimensional scoring.

46 11.9K
View
coinglass logo
Finance & Trading

coinglass

Real-time crypto derivatives positioning, whale tracking, liquidations, and institutional ETF flows across 37 specialized tools.

27 11.5K
View

Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or implementing analytics engineering best practices.

40.2K 10.5K
View

Finance AI tools

C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Finalle.ai logo
Finance

Finalle.ai

Stay Ahead with Finalle.ai: The Ultimate Financial News and Tools Platform

Free
View

AI-powered Pine Script code generator for TradingView

Paid
View
TradeUI logo
Finance

TradeUI

Empower your investment strategies with AI signals, option flow data, and advanced chart patterns.

Paid
View
D
Finance

Danelfin

Danelfin review covering its AI stock and ETF scores, rankings, portfolio tools, current pricing, strengths, risks, and alternatives for investors.

Freemium
View
E
Finance

Ellisense

A software for comprehensive market sentiment analysis.

Paid
View

'Stock Correlations' App by Freshly.ai: Reveal Stock Patterns and Trends

Free
View