cancel

Cancel stories via API and revert uncommitted code with git checkout.

Updated Apr 7, 2026
One-click install
npx skills add https://github.com/ramontramontini/CTEDemo --skill cancel-ramontramontini
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cancel
Source: https://github.com/ramontramontini/CTEDemo/tree/main/.claude/skills/cancel
Command: npx skills add https://github.com/ramontramontini/CTEDemo --skill cancel-ramontramontini

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Cancel a story via API and revert uncommitted code when necessary.

Core Features & Use Cases

  • Resolve stories by UUID, STORYID timestamp, or title with case-insensitive substring matching; reject stories in done/archived/canceled status.
  • If a story has uncommitted code in in_progress or claimed status, revert changes in backend/frontend/tests using a git checkout to preserve edits and provide error handling guidance for revert failures.
  • Cancel a story via API and continue the workflow, with proper post-cancel steps and potential reactivation via the transition endpoint.

Quick Start

Provide the STORYID and initiate the cancellation workflow via the API.

Frequently Asked Questions about cancel

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

FAQPage Schema
How do I cancel a story via API and revert uncommitted code changes safely?

To cancel a story via API and revert uncommitted code, initiate the workflow by providing a STORYID. The process targets stories in todo or doing status, resolving arguments by UUID, timestamp, or title, and uses git checkout to safely revert uncommitted backend, frontend, or test changes.

What happens if my story title lookup returns ambiguous matches during API cancellation?

If a story title lookup using case-insensitive substring matching returns ambiguous matches during API cancellation, the system returns a 409 error. This is treated as a permanent failure, requiring you to provide a more specific UUID or timestamp-based STORYID to proceed.

How does the API handle cancellation requests for stories in done or archived status?

The API rejects cancellation requests for stories in done, archived, or canceled status. The workflow specifically targets and processes cancellations only for stories currently in todo or doing status to prevent invalid state transitions.

What is the best way to resolve a story for API cancellation when I only have a partial title?

When you only have a partial title, resolve the story for API cancellation using case-insensitive substring matching. If the substring matches multiple stories, you will receive a 409 permanent failure and must retry with a unique UUID or timestamp-based STORYID.

Why does my git revert fail when canceling a story with uncommitted in_progress code?

A git revert may fail during story cancellation if the uncommitted changes in backend, frontend, or tests conflict with the checkout operation. The workflow provides error handling guidance to help preserve your edits and recover from these revert failures.

Can I reactivate a story after canceling it via the API?

Yes, you can reactivate a story after canceling it via the API by using the transition endpoint. The cancellation workflow includes proper post-cancel steps that allow for potential reactivation if the story needs to be resumed later.