affirmations

Resets agent trajectory when stuck in loops, repeated failures, or thrashing during debugging.

723|101|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/inference-sh/skills --skill affirmations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: affirmations
Source: https://github.com/inference-sh/skills/tree/main/guides/agent/affirmations
Command: npx skills add https://github.com/inference-sh/skills --skill affirmations

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

When an AI agent gets stuck in a loop—retrying the same fix, defending a failed approach, or spiraling into repeated apologies—its output quality degrades rapidly. This Skill breaks that cycle by forcing a structured reset before the next tool call.

Core Features & Use Cases

  • Loop Detection Triggers: Activates on recognizable failure patterns like the same fix tried 3+ times, contradictory debugging theories, or repeated mistakes in a row.
  • Guided Reset Protocol: Provides affirmations to read before the next action, followed by a three-step re-grounding process: state verified facts, name the unchecked assumption, and take one small test step.
  • Behavioral Rules and Gotchas: Enforces discarding failed theories (not working code), limits user-facing acknowledgment to one sentence, and warns against using the reset on first-time difficulties.
  • Use Case: An agent debugging a failing test has tried five variations of the same fix with no progress. It invokes this Skill, re-reads the actual error output, identifies the assumption it never verified, and runs a single targeted check that reveals the real cause.

Quick Start

Use the affirmations skill to reset your approach since the same fix has failed three times and debugging is going in circles.

Frequently Asked Questions about affirmations

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

FAQPage Schema
How do I stop an AI agent from repeating the same failed fix?

Invoke a reset protocol the moment the same fix has been tried three or more times. The agent states only verified observations, names the assumption it never checked, and takes one small step that tests it before continuing.

What triggers the affirmations skill during agent workflows?

Triggers include the same fix tried repeatedly, debugging theories that contradict each other, multiple mistakes in a row, excessive apologizing, output growing longer and less certain, and a sense of dread replacing curiosity.

When should I not use a loop-breaking reset skill?

Avoid using it on first-time difficulties or hard-but-progressing work, since it burns a turn on problems that just need more thinking. It is designed for loops and failure streaks, not ordinary challenges.

Does resetting an agent mean reverting all its code changes?

No. The reset discards the failed theory, not the diff. Working code should be preserved; only the incorrect mental model of the problem is abandoned before taking the next step.

Why does an AI agent keep apologizing instead of fixing the problem?

Repeated failure creates a pull toward hedging and defending sunk effort. The fix is a structured reset: one sentence of acknowledgment to the user maximum, then re-ground in observed facts and take a single corrective action.