360 Secure SkillHub
360 安全技能中心

cancel-ralph

该 Skill 用于取消正在运行的 Ralph 循环:先检查项目内 .cursor/ralph/scratchpad.md 是否存在,不存在则提示没有活动循环;存在则读取其中的 iteration 字段,删除 .cursor/ralph 目录(含完成标记),并返回“已取消,停在第 N 次迭代”的确认信息。

cursor
热度 0.00
最近更新 2026-10-18 16:52:20
分类:自动化依赖:读写文件 / 代码执行应用场景:工作流 / 任务管理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add cursor/plugins/cancel-ralph
Metadata
name
cancel-ralph
description
Cancel an active Ralph Loop. Use when the user wants to stop, cancel, or abort a running ralph loop.

Cancel Ralph

Trigger

The user wants to cancel or stop an active Ralph loop.

Workflow

  1. Check if .cursor/ralph/scratchpad.md exists.

  2. If it does not exist: Tell the user "No active Ralph loop found."

  3. If it exists:

    • Read .cursor/ralph/scratchpad.md to get the current iteration from the iteration: field.
    • Remove the state file and any done flag:
      rm -rf .cursor/ralph
      
    • Report: "Cancelled Ralph loop (was at iteration N)."

Output

A short confirmation with the iteration count, or a message that no loop was active.