Back to workflow skills
AI and AgentsOperation cycle preventionPW
AuthorCommunity author
AI and Agents Skill

Operation cycle prevention

Prevents the Agent from repeatedly executing the same operation, which can lead to resource waste. Suitable for exec commands, tool calls, file read/write, etc. Core rule: The same operation can be repeated up to 5 times; if the result is unsatisfactory, change the strategy; if detected, the loop stops immediately.

0Uses10Likes12Views

What this skill does

Prevents the Agent from repeatedly executing the same operation, which can lead to resource waste. Suitable for exec commands, tool calls, file read/write, etc. Core rule: The same operation can be repeated up to 5 times; if the result is unsatisfactory, change the strategy; if detected, the loop stops immediately.

  • Clarifies goals, inputs, and success criteria
  • Preserves evidence and marks uncertain boundaries
  • Produces structured, editable results
Installationnpx clawhub@latest install loop-preventionView source