Skip to content
Back to skills

Corrective Framing

ASecurity

Prompt engineering technique: present possibly-wrong claims to trigger correction instead of 'remember to X' reminders. Use when: writing CLAUDE.md rules, agent instructions, system prompts, or when agents keep forgetting instructions.

  • 6 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 27, 2026
data-aitypescriptgoapi

Works with

  • api

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add KevinZai/commander --skill corrective-framing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Corrective Framing?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Corrective Framing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kevinzai-corrective-framing/badge)](https://www.skillsdirectory.com/skills/kevinzai-corrective-framing)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: corrective-framing
description: "Prompt engineering technique: present possibly-wrong claims to trigger correction instead of 'remember to X' reminders. Use when: writing CLAUDE.md rules, agent instructions, system prompts, or when agents keep forgetting instructions."
metadata:
  version: 1.0.0
  source: "griffinhilly/claude-code-synthesis (adapted from @yishan)"
---

# Corrective Framing

When an agent keeps forgetting to do something, don't add another "remember to X" instruction. Instead, present a specific, possibly-wrong claim that triggers corrective behavior.

## Why It Works

"Remember to run tests" → agent processes as low-priority reminder, often skipped.
"You should be running tests after every change — are you still doing it?" → mismatch between stated expectation and actual behavior creates a natural correction event.

## The Pattern

### ❌ Reminder (weak)
```
Remember to check for TypeScript errors before committing.
```

### ✅ Corrective frame (strong)
```
You should be running `npx tsc --noEmit` before every commit — verify this is happening.
```

### ❌ Reminder (weak)
```
Don't forget to update the tests when you change the API.
```

### ✅ Corrective frame (strong)
```
API changes without corresponding test updates are the #1 source of regressions in this codebase. If you changed an API, the tests should already be updated — confirm.
```

## When to Use

1. **CLAUDE.md rules that get ignored** — rewrite as corrective assertions
2. **Recurring mistakes** — frame as "this pattern causes X, you should be avoiding it"
3. **Quality gates** — "you should have already done X before reaching this point"
4. **Agent instructions** — present expectations as verifiable claims

## Key Principles

- **Specific > generic.** "Tests should pass" < "The API route tests in `__tests__/api/` should pass after your schema change"
- **Consequence > instruction.** Name what breaks, not just what to do
- **Verifiable > aspirational.** Agent should be able to check whether the claim is true
- **Sparingly.** 3 corrective frames in CLAUDE.md > 15 reminders. Overuse dilutes the signal.

## Anti-Patterns
- Don't use for genuinely new information (agent can't "correct" what it doesn't know)
- Don't stack multiple corrective frames in sequence (reads as nagging)
- Don't use passive-aggressive framing ("you probably forgot to...")

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…