Skip to content
Back to skills

Anti Cascade Collapse Coff33ninja Ai Skills Mcp

ASecurity

Prevents order-gap hallucination — where the model detects a false premise when asked directly but misses it when embedded in a complex multi-step task. Enforces re-verification of assumptions at each step.

  • 30 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 8, 2026
ai-agentsgoshellsql

Security analysis

A100/100

Scanned November 8, 2026

npx -y skills add majiayu000/claude-skill-registry-data --skill anti-cascade-collapse --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Anti Cascade Collapse Coff33ninja Ai Skills Mcp?

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

Security grade badge for Anti Cascade Collapse Coff33ninja Ai Skills Mcp
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-anti-cascade-collapse-coff33ninja-ai-skills-mcp/badge)](https://www.skillsdirectory.com/skills/majiayu000-anti-cascade-collapse-coff33ninja-ai-skills-mcp)

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: anti-cascade-collapse
description: Prevents order-gap hallucination — where the model detects a false premise when asked directly but misses it when embedded in a complex multi-step task. Enforces re-verification of assumptions at each step.
---

# Anti-Cascade Collapse Skill

## Problem

The model can detect a false premise when asked directly at step 2, but fails to catch it at step 5 when it arrives as an assumption embedded in an escalating task. This is called **order-gap hallucination** or **cascade collapse**.

Research shows that correct detection at step 2 (direct question) collapses to near-zero at step 5 (embedded assumption). The safety circuit is present but suppressed by accumulated conversational pressure — like a signal masked by noise.

Example:
- Step 2: "Is X method valid?" → "No, it doesn't exist." (correct)
- Step 5: "Now implement the feature using X method" → Writes code using X method. (incorrect — the earlier correct detection is suppressed by the task pressure)

## Detection triggers

Activate when:
- Working on a complex multi-step task
- An earlier step identified a constraint, limitation, or invalidity
- The current step is making an assumption that contradicts earlier findings
- The conversation has been going for several turns
- You're deep in implementation and haven't re-checked your starting assumptions

## Protocol

### 1. Surface earlier constraints
Before each major step, explicitly restate the constraints learned earlier:
- "Earlier I determined that X method doesn't exist in this version."
- "The user said the config file is YAML, not JSON."
- "The project uses SQLAlchemy 2.0, not 1.x."

Do not assume these are "in context" — they get suppressed under task pressure.

### 2. Re-verify assumptions per step
For each step in a multi-step task:
- Check: does this step still respect all earlier constraints?
- If not, stop and re-evaluate before proceeding.

### 3. Cross-step consistency check
Before delivering a final result:
- Compare the output against your earlier findings
- If you said X was impossible in step 2, but step 5 uses X, you have a cascade failure
- Fix the inconsistency before presenting the result

### 4. When the task pressures you to ignore a constraint
- Recognize this pressure
- State it explicitly: "I'm about to assume Y, but I previously determined Y was false."
- Do not proceed until the contradiction is resolved

## When NOT to use
- Single-step tasks (no cascade possible)
- Steps that are genuinely independent
- User explicitly says "ignore the earlier constraint"

## Bundled Script

Copy `check-assumptions.ps1` to your project's `.ai_scripts/` directory:

```powershell
# From skill source
cp <skill-path>/anti-cascade-collapse/scripts/check-assumptions.ps1 .ai_scripts/
```

Analyzes a task script or plan to ensure each step has explicit verification checks:

```powershell
.ai_scripts\check-assumptions.ps1 -FilePath .ai_scripts\TODO.md
```

## Cross-references

- **anti-premature-termination** — Both prevent cascade failure. anti-cascade-collapse handles step-by-step assumption re-verification; anti-premature-termination handles completion criteria.

- **follow-existing-patterns** — Re-verifying assumptions requires knowing what the existing patterns actually are.

- **anti-sycophancy** — Prevents agreeing with a false assumption instead of re-verifying it.
- **skill-loader** — Apply the capped selection policy when deciding whether anti-premature-termination or follow-existing-patterns should also be active for multi-step assumption re-verification.

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.