self-healing-deploy

Automate monitored multi-stage deployments with rollback safeguards across dev, staging, and production.

Updated Apr 7, 2026
One-click install
npx skills add https://github.com/bzellman/earp-kit --skill self-healing-deploy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: self-healing-deploy
Source: https://github.com/bzellman/earp-kit/tree/main/skills/project/your-monorepo/self-healing-deploy
Command: npx skills add https://github.com/bzellman/earp-kit --skill self-healing-deploy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the complexity and fragility of promoting code from merge to production by automating monitoring, self-healing, and multi-environment deployments.

Core Features & Use Cases

  • 7-phase deployment pipeline with built-in monitoring and self-healing at each stage (Recon, Merge, Self-Heal, DB Migrations, Terraform Apply, Dev Verification, Staging, Production).
  • Dynamic, policy-driven promotion across dev -> staging -> prod with health checks and rollback safeguards.
  • Global governance: budgets for 5 fix attempts, explicit prompt to human when prod fails, and audit-friendly commit messages.

Quick Start

Approve a pull request to trigger the complete self-healing deploy pipeline from dev through production.

Frequently Asked Questions about self-healing-deploy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate multi-environment deployments with built-in rollback safeguards?

Multi-environment deployments with rollback safeguards are managed through a 7-phase pipeline spanning dev, staging, and production. The process includes built-in health checks and automatically stops promotions if environment verification fails.

What is a self-healing deployment pipeline and how does it handle failures?

A self-healing deployment pipeline automates code promotions from merge to production while actively monitoring and fixing issues during the process. It uses a fixed budget of 5 fix attempts to resolve failures before alerting a human, ensuring safe handling of production issues.

How do I run database migrations and Terraform applies safely in a CI/CD pipeline?

Database migrations and Terraform applies are executed safely within dedicated phases of the deployment pipeline. This staging process ensures that infrastructure changes and database updates are applied and verified before any production promotion occurs.

Can I use automated health checks to prevent bad code from reaching production?

Automated health checks prevent bad code from reaching production by verifying environment URLs and application stability during the staging phase. The pipeline tracks each deployment phase and enforces a policy-driven promotion with rollback safeguards before production access is granted.

What happens when a production deployment fails during an automated pipeline run?

When a production deployment fails, the pipeline stops automatic promotions and explicitly prompts a human for intervention. This safe handling mechanism is supported by audit-friendly commit messages and global governance policies that track phase failures.

What's the best way to manage dev to staging to production promotions for infrastructure changes?

The best way to manage dev to staging to production promotions for infrastructure changes is using a policy-driven pipeline that separates Terraform applies and database migrations into distinct phases. This approach includes health verification and rollback safeguards at every promotion step.