Skip to content
Back to skills

Revert On Extended Red

ASecurity

When stuck in red for >5 turns or >3 failed runs without progress, propose reverting the latest production-code edits to restore green and try a smaller step. Use to escape unproductive red sessions.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
developmentgo

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add spencerbeggs/vitest-agent --skill revert-on-extended-red --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Revert On Extended Red?

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

Security grade badge for Revert On Extended Red
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/spencerbeggs-revert-on-extended-red/badge)](https://www.skillsdirectory.com/skills/spencerbeggs-revert-on-extended-red)

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: revert-on-extended-red
description: When stuck in red for >5 turns or >3 failed runs without progress, propose reverting the latest production-code edits to restore green and try a smaller step. Use to escape unproductive red sessions.
---

# Revert on extended red

If the orchestrator has been in `red` for more than 5 turns OR more than 3 failed test runs without recovering to green, it has hit `extended-red`. At this point:

1. **Stop editing.** More edits dig the hole deeper.
2. **Read the recent file_edits.** Use `turn_search({ type: "file_edit", since: "<phase-start>" })`.
3. **Propose a revert.** Identify the production-code edits made during this red phase and propose reverting them.
4. **Restart with a smaller step.** Once green is restored, write a *smaller* failing test — one that asserts a less ambitious behavior — and try again.

The orchestrator records the revert decision in a hypothesis explaining why the original step was too large.

## Rules

1. Never delete tests. Reverts target *production-code* edits only.
2. The revert is itself a TDD action: it requires a passing run to confirm green is restored.
3. After reverting, decompose the goal further before retrying. The previous attempt failed because the target was too coarse.

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…

Newsletter

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