Skip to main content
skill CX Codex

affirmations — Claude Code skill: what it does, how to install

A skill for an agent stuck in a loop: it reads a short set of affirmations, re-checks what it actually knows, and takes one small step.

no license 242 installs ★ 31 updated 2026-08-31

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add 101-skills/superpowers --skill affirmations -a claude-code
Open on GitHub

What affirmations does

The skill is a markdown file the agent opens on itself once the signs show up: the same patch attempted again, a refactor whose end state it can no longer describe, or more apologies than code edits. The lines inside are written in the second person and meant to be read in order, before the next tool call rather than after it.

A three-step reset follows. List only what has been observed: file contents, command output, error text. Then name the assumption nobody tested and run the smallest possible check of it. The rules section says to drop the abandoned theory in one clause and stop discussing it, and to give the user one sentence of acknowledgement at most.

The skill addresses the agent's state, not the problem's subject. The bug will still be there. A reset only counts when the next action differs from the previous one, so repeating the last attempt just lengthens the loop by a turn. Reaching for it on the first obstacle wastes it the other way.

What it helps with

  • break out of a loop where the same fix keeps returning
  • surface the assumption the agent never tested
  • regain the thread halfway through a refactor
  • trade repeated apologies for actual code changes
  • drop an approach the agent has been defending

Example prompts for the agent

  • You've patched this file three times now. Read the affirmations and restart from what the output actually says.
  • We're going in circles — re-ground: what's verified, and which assumption is untested?
  • Skip the apology. Name what the command output proves and test that assumption with one small step.

How to install affirmations

1Skills CLI (Vercel)

npx skills add 101-skills/superpowers --skill affirmations -a claude-code

2Manually: put the files in place

~/.claude/skills/affirmations/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/affirmations/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about affirmations

How do I install affirmations in Claude Code?

Run npx skills add 101-skills/superpowers --skill affirmations -a claude-code. The skill lands at ~/.claude/skills/affirmations/SKILL.md.

What does affirmations do?

It hands the agent a short text to read while it is looping, plus a reset routine: state the verified facts, find the unchecked assumption, test it with one small action.

How can I tell the reset worked?

Watch the next action. If it matches the previous one, nothing changed; the skill only helped when the agent does something different.

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set81

The whole set →
background-removal background-removal cuts the background out of photos with the BiRefNet model through the belt CLI and returns a transparent PNG. Handy for product shots and headshots. CX Codex +1 243installs tools-ui tools-ui is a skill for building React/Next.js interfaces for agent tool calls, showing progress, approval prompts, and results. It makes tool activity visible before and after execution. CX Codex +1 243installs speech-to-text speech-to-text is a Claude Code skill that runs Whisper and ElevenLabs through the belt CLI to transcribe audio and prepare video subtitles. CX Codex +1 242installs case-study-writing case-study-writing guides drafting B2B case studies using the STAR method, metric comparisons, customer quotes, and chart visuals. CX Codex +1 242installs chat-ui chat-ui gives your agent ready-made chat building blocks for React and Next.js: container, messages, input field, typing indicator. Useful when the app needs a conversation screen. CX Codex +1 242installs talking-head-production talking-head-production turns a still portrait plus a script into a talking-head clip: the skill walks the agent through portrait checks, voice choice and lipsync calls on the belt CLI. CX Codex +1 241installs social-media-carousel social-media-carousel designs multi-slide social carousels with layout standards, hook formulas, and automated image generation using the belt CLI. CX Codex +1 241installs email-design email-design is a Claude Code skill that defines email layout patterns, subject line formulas, and belt CLI commands for creating header banners. CX Codex +1 241installs

Project sponsors

Companies that keep this analytics open