Przejdź do treści
Biblioteka skilli
AI i agenci · Pisanie

pink-elephant

/pink-elephant

Przepisuje negatywne reguły w instrukcjach, takie jak „nie rób X” czy „nigdy X”, na pozytywne dyrektywy, gdy zakaz zwraca uwagę na dokładnie to zachowanie, którego dotyczy.

Repozytorium
claude-plugins ↗
Licencja
MIT
Ostatnia zmiana repozytorium
25.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
3
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 25.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Przepisuje negatywne reguły w instrukcjach, takie jak „nie rób X” czy „nigdy X”, na pozytywne dyrektywy, gdy zakaz zwraca uwagę na dokładnie to zachowanie, którego dotyczy.

Wyzwalacze z opisu

pink elephantdo not Xnever Xavoid X
Oryginalny opis (EN)

Use when the user flags a 'pink elephant' — an instruction phrased as a prohibition ('do not X', 'never X', 'avoid X') that draws attention to the very behavior it forbids. Rewrites negative rules into positive directives.

Jak działa

  1. The Principle
  2. When This Skill Activates
  3. Two Failure Modes to Watch For
  4. The Reframe Protocol
  5. Quick Diagnostic
Sekcje z nagłówków SKILL.md, w oryginale · 74 linii, 748 słów
Podgląd SKILL.md
---
name: pink-elephant
description: "Use when the user flags a 'pink elephant' — an instruction phrased as a prohibition ('do not X', 'never X', 'avoid X') that draws attention to the very behavior it forbids. Rewrites negative rules into positive directives."
when_to_use: |
  Also 'don't think about a pink elephant', or critiques that an instruction/prompt/guideline uses counterproductive negative or prohibition framing.
---

# Pink Elephant

> "Don't think about a pink elephant."
> — Now you're thinking about a pink elephant.

## The Principle

Telling an LLM **not** to do something is unreliable. The forbidden behavior is named in the prompt, which (a) raises its salience as a continuation, and (b) runs into well-documented weaknesses in how language models handle negation. Telling the model what *to* do is more direct and more reliable.

This is industry-standard prompting guidance:

- **OpenAI**: *"Instead of just saying what not to do, say what to do instead."*
- **Anthropic**: *"Tell Claude what to do instead of what not to do."* And: *"Positive examples tend to be more effective than negative examples or instructions."*

See `references.md` for citations and the supporting research.

## When This Skill Activates

- The user says "pink elephant", "don't think about a pink elephant", or similar
- The user critiques a prompt/skill/CLAUDE.md/system instruction for being too focused on what *not* to do
- A document is full of "DO NOT" / "NEVER" / "AVOID" / "DON'T" — especially when stacked or repeated
- The user asks why an agent keeps doing the thing it was just told not to do
- Reviewing prompts, skills, agent instructions, hooks, or guardrails for effectiveness

## Two Failure Modes to Watch For

Negative instructions fail in **two opposite ways**. The fix is the same — rewrite affirmatively — but recognizing which one is happening helps explain the symptom.

### 1. Fixation (the classic pink elephant)
The model produces the forbidden behavior anyway because the prohibition put it in context. Examples: a "no preamble" instruction yields a preamble; "don't apologize" yields apologies; "never use emojis" yields emojis. Negation research (Kassner & Schütze 2020; Truong et al. 2023) confirms LLMs are often "insensitive to the presence of negation."

### 2. Over-literal suppression (especially with newer/more compliant models)
The model follows the prohibition *too* faithfully and suppresses useful behavior alongside the forbidden behavior. Anthropic explicitly warns about this with Claude Opus 4.x: an instruction like "don't nitpick" or "only report high-severity issues" can be obeyed so literally that the model withholds findings the user would have wanted. The prohibition didn't fail — it succeeded too well, on the wrong scope.

Both failure modes have the same fix: state the affirmative goal, with scope. "Don't nitpick" → "Report findings that materially affect correctness, security, or maintainability."

## The Reframe Protocol

### Step 1: Identify the Prohibition
State the negative instruction plainly. "Don't write long preambles." "Never use emojis."

### Step 2: Ask What Behavior You Actually Want
For every "don't X", there's a positive counterpart describing the target behavior:

| Pink elephant (negative) | Reframe (positive) |
|---|---|
| "Don't write long preambles." | "Lead with the answer or action." |
| "Never use emojis." | "Use plain text." |
| "Don't be sycophantic." | "Match the user's tone; respond matter-of-factly." |
| "Avoid hedging." | "State conclusions directly." |
| "Don't make up APIs." | "Verify symbols exist in the codebase before referencing them." |
| "Don't nitpick." | "Report findings that materially affect correctness, security, or maintainability." |

### Step 3: Keep Prohibitions Where They're Load-Bearing — But Pair Them With An Affirmative Fallback
Some negatives are genuinely necessary — usually around safety, security, or hard constraints with no positive substitute:

- "Never commit secrets to git."
- "Never run `rm -rf` on user data."
- "Don't push to main without review."

The Microsoft Azure OpenAI safety-system-message pattern is the right one here: *pair every necessary prohibition with what to do instead when the prohibition fires*. "Never share customer PII → if asked, redirect the user to <link>." The prohibition holds the line; the affirmative tells the model what success looks like when it does.

### Step 4: Don't Stack Prohibitions
A wall of "DO NOT" / "NEVER" / "AVOID" is itself a giant pink elephant. Even if each rule is individually load-bearing, the cumulative effect floods the prompt with forbidden behaviors. Consolidate, prioritize, convert as many as possible to positive directives.

## Quick Diagnostic
1. Does this tell the agent what TO do, or only what NOT to do?
2. If I removed this line, would the agent still know what behavior is expected?
3. Am I describing the failure mode, or the success mode?
4. If a prohibition must stay, does it specify what to do instead when it fires?

If the instruction only describes the failure mode, it's a pink elephant. Rewrite it.
Pliki w paczce (3)
  • README.md 4 KB
  • SKILL.md 5 KB
  • references.md 4 KB

Wersje

W bazie nie ma innych skilli o nazwie pink-elephant.

Migawka bazy z 13.11.2026 · wersja paczki 987e0bad4c48 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

Brak podobnych skilli w bazie.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.