phoenix-self-heal

phoenix-self-heal is a skill for Claude Code, Codex from All-The-Vibes/ATV-Phoenix. It costs 96 tokens per session (1,143 once invoked), scanned A, original, MIT.

A reusable software-change loop that checks whether work succeeded, saves a known-good state, and attempts bounded recovery when a test, build, or lint check fails.

In plain words
What is it for?
Use it for code changes with runnable tests, builds, or lint checks, and as the inner loop of build, test, and debugging workflows.
Why use it?
It gives changes a recoverable checkpoint and requires an independent recheck after recovery. This reduces the risk of leaving the project in a broken state.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for code changes with runnable tests, builds, or lint checks, and as the inner loop of build, test, and debugging workflows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/all-the-vibes/atv-phoenix/phoenix-self-heal
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add All-The-Vibes/ATV-Phoenix --skill phoenix-self-heal
Clone the repo
git clone --depth 1 https://github.com/All-The-Vibes/ATV-Phoenix

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for phoenix-self-heal

README.md
[![agentmods](https://agentmods.dev/badge/skills/all-the-vibes/atv-phoenix/phoenix-self-heal/github.svg)](https://agentmods.dev/skills/all-the-vibes/atv-phoenix/phoenix-self-heal)
Your own site
<a href="https://agentmods.dev/skills/all-the-vibes/atv-phoenix/phoenix-self-heal"><img src="https://agentmods.dev/badge/skills/all-the-vibes/atv-phoenix/phoenix-self-heal/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for phoenix-self-heal

Your own site · 80×15
<a href="https://agentmods.dev/skills/all-the-vibes/atv-phoenix/phoenix-self-heal"><img src="https://agentmods.dev/badge/skills/all-the-vibes/atv-phoenix/phoenix-self-heal.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,143 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00096 $0.01143
Opus 5.5 $0.00038 $0.00457
Sonnet 5.5 $0.00019 $0.00229
Haiku 4.5 $0.00010 $0.00114

Measured 1mo ago against content hash 047a978cd2d5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

phoenix-self-heal scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/phoenix-self-heal/SKILL.md · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.

phoenix-self-heal — sense, snapshot, heal; the loop at the heart of Phoenix

Overview

This is the primitive every Phoenix lifecycle skill is built on, usable standalone: objectively sense whether work succeeded, keep a blessed snapshot to fall back to, and heal (bounded) when a check goes red — with recovery confirmed by an independent recheck, never by self-judgment. It gives an agent the one organ it's missing: knowing it failed, and fixing it, with evidence.

When to use

  • Any code change with a runnable check (test/build/lint).
  • Risky edits where you want a guaranteed rollback point.
  • As the inner loop of phoenix-build, phoenix-test, and phoenix-debug.

The four tools

  • phoenix_sense(check) — objective check. kind ∈ command_exit (run argv, pass iff exit==expect, default 0), file_sha256, regex_in_file. Returns {ok, signal, evidence}. No LLM, no opinion. target accepts an argv array (preferred) or a string; expect accepts an int or string.
  • phoenix_snapshot(path, check) — save path as last-good only if check passes (never blesses a broken state). Returns {blessed, snap_id}.
  • phoenix_heal(strategy, ctx) — rollback (restore a blessed snapshot) or retry (re-run a command ≤3×). healed=true only if ctx.recheck passes after the action. Bounded; reversible.
  • phoenix_verify_trace() — audit the tamper-evident hash-chained log.

Example

{"check":{"kind":"command_exit","target":["pytest","-q"],"expect":0}}                       # sense
{"path":"src/app.py","check":{"kind":"command_exit","target":["pytest","-q"],"expect":0}}    # snapshot (blesses if green)
{"strategy":"rollback","ctx":{"path":"src/app.py","snap_id":"app.py.1a2b…",                    # heal
  "recheck":{"kind":"command_exit","target":["pytest","-q"],"expect":0}}}

The loop

  baseline ─► phoenix_sense ─► ok? ──no──► (not ready; create a check first)
                               │ yes
                               ▼
                       phoenix_snapshot (bless green state)
                               │
                               ▼
                          ── edit ──
                               │
                       phoenix_sense ─► ok? ──yes──► done (green, proven)
                               │ no
                               ▼
                       phoenix_heal (rollback/retry, ≤3) ─► re-sense ─► green? 
                               │ no after 3 → STOP, report what's blocking

Read the full file on GitHub · 83 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 83 lines · 96 tokens per session scan A 047a978cd2d5

Subscribe to this mod's changes

phoenix-self-heal is a skill published in the GitHub repository All-The-Vibes/ATV-Phoenix (6 stars, last pushed 6d ago), licensed MIT. It adds 96 tokens to every session and 1,143 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

pipeline-validator

Discovers, triggers, and monitors Azure DevOps pipelines (PR, Buddy Build, Buddy Release) for the current repo and branch. Auto-diagnoses failures from build logs, applies fixes, commits, pushes, and re-triggers until all pipelines pass or max retries reached. Validates PR existence and description completeness.…

rjmurillo/ai-agents · 82 tokens

ai-agents-empirical-probe-toolkit

Prove-it methods for this repo. Six recipes for runtime-contract probes, guard and threshold calibration, eval A/B, docs-vs-reality audits, reproduce-on-main CI triage, and negative-control test design, each with a worked example from repo history. Use when you say probe the runtime contract, calibrate this guard…

rjmurillo/ai-agents · 119 tokens

taste-lints

Use when you say run taste lints, check file size, or lint taste invariants. Custom lints with agent-readable remediation instructions for file size, naming conventions, structured logging, and complexity.

rjmurillo/ai-agents · 47 tokens

ai-agents-config-catalog

Catalog of every configuration axis in this repo, env vars, commit markers, frontmatter keys, QA skip verdicts, and escape hatches, each with its enforcement point and abuse story, plus the checklist for adding a new flag safely. Use when you say what does a skip flag do, list escape hatches, can I skip this gate, add…

rjmurillo/ai-agents · 114 tokens

ai-agents-debugging-playbook

Symptom-to-triage playbook for this repo's recurring failures. Blocked pushes, drift gate reds, plugin bump reds, coverage pin trips, hook exit 143, session NONCOMPLIANT. Maps each symptom to a first command, discriminating experiment, fix path, and trap. Use when you say triage this failure, why is my push blocked…

rjmurillo/ai-agents · 124 tokens

apex-debug-log-export

Bundle selected native Copilot SDK events locally for manual inspection or upload. Use /apex-debug-log-export inside VS Code after selecting the built-in agent owner and MAI-Code-1.1-Flash. Explicit workspace/session scope; no automatic upload.

jonathan-vella/apex-accelerator · 57 tokens