Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/bzellman-self-healing-deploy
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: devops, data
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/self-healing-deploy
What's inside
- Skill name
self-healing-deploy- Description
- Self-healing merge-to-production pipeline. Use when the user approves a PR for merge, says "ship it", "deploy this", "merge and deploy", "take this to prod", or wants to promote code through environments. Handles CI monitoring, failure analysis and auto-fix, DB migrations, terraform apply, and progressive deployment (dev -> staging -> prod) with health verification at each stage. Also triggers for partial invocations like "promote to staging", "deploy to prod", "run migrations", or "check deploy status".
- License
- MIT
- Instructions
- 548 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Agent Skills spec issues
- body: 548 lines (spec recommends under 500)
Files (1)
- SKILL.md
SKILL.md (first lines)
# Self-Healing Deploy Orchestrate the entire lifecycle from merge to production: monitor CI, self-heal failures, run DB migrations, apply terraform, and progressively deploy through dev -> staging -> prod. ## How It Works This skill runs a 7-phase pipeline. Each phase has built-in monitoring and self-healing. The pipeline stops and reports to you if it hits something it can't fix automatically. ``` PR Approved | v [Phase 0] Recon — classify what changed (backend? terraform? migrations? iOS?) | v [Phase 1] Merge — squash merge, capture SHA, discover triggered workflows | v [Phase 2] Self-Heal — if any workflow fails: read logs, classify, fix, re-push, loop | v [Phase 3] DB Migrations (dev) — detect new .sql files, run migration workflow | v [Phase 4] Terraform Apply (dev) — if terraform changed, explicitly trigger apply | v [Phase 5] Dev Verification — health check, config validation | v [Phase 6] Staging — migrations -> terraform -> promote -> verify | v [Phase 7] Production — migrations -> terraform -> promote -> verify ``` ## State Tracking Maintain a running status table throughout execution. Update and display it at each major milestone: ```markdown ## Deploy Pipeline Status | Phase | Status | Duration | |-------|--------|----------| | Merge | ... | ... | | CI/Deploy (dev) | ... | ... | | DB Migrations (dev) | ... | ... | | Terraform (dev) | ... | ... | | Dev Health | ... | ... | | DB Migrations (staging) | ... | ... | | Staging Promote | ... | ... | | Staging Health | ... | ... | | DB Migrations (prod) | ... | ... | | Prod Promote | ... | ... | | Prod Health | ... | ... | ``` Use these status values: `Pending`, `In Progress`, `Done`, `Skipped`, `Failed`, `Passed`. Track wall-clock duration per phase. Record `PIPELINE_START` time at the beginning. ## Global Rules These apply across all phases: ### Self-Healing Budget You get **5 fix attempts total** across the entire pipeline. Each time you modify code and push a fix, that's one attempt. Rerunning a transient failure (`gh run rerun`) does NOT count against this budget. If you exhaust all 5 attempts, stop the pipeline and report what you've tried. ### No Auto-Fix in Production Production failures are always presented to the user with options. Never automatically fix and push code to resolve a prod deployment failure. ### Commit Attribution All fix commits must include: ``` Co-Authored-By: Claude <noreply@anthropic.com> ``` ### 30-Minute Warning If the pipeline has been running for over 30 minutes, report current status and ask whether to continue. ### Environment URLs Read environment URLs from `Infrastructure/docs/api-endpoints.json` rather than hardcoding them. This file is auto-updated by CI after each successful deploy. --- ## Phase 0: Pre-Merge Reconnaissance Goal: Understand what's changing so the pipeline knows which phases to run. ### Identify the PR If the user provided a PR number, use it. Otherwise, detect from the current branch: ```bash gh pr list --head "$(git branch --show-current)" --json number,title,state --jq '.[0]' ``` ### Classify Change Scope Check which files the PR touches: ```bash gh pr diff <NUMBER> --name-only ``` Categorize into flags — set each to `true` or `false`: | Flag | Pattern | What It Triggers | |------|---------|-----------------| | `HAS_BACKEND` | `Infrastructure/<YOUR_API_PROJECT>/**` (excluding `*.md`) | Dev deploy, staging/prod promotion | | `HAS_TERRAFORM` | `Infrastructure/terraform/**` | Terraform apply at each environment | | `HAS_MIGRATIONS` | `Infrastructure/<YOUR_API_PROJECT>/Data/Migrations/*.sql` (new files only) | DB migration workflow at each environment | | `HAS_IOS` | `<YOUR_APP>/**` (excluding `*.md`) | iOS CI only (no deployment) | ### Check CI Status ```bash gh pr checks <NUMBER> ```
From bzellman/earp-kit, MIT.
More from bzellman/earp-kit
- 0.414score
ios-design
bzellman
Design and implement SwiftUI interfaces for <YOUR_APP> iOS app with design system compliance, Apple HIG principles, and visual references.
SkillDFreshness: DClaude Code +9 - 0.411score
ios-simulator-skill
bzellman
21 production-ready scripts for iOS app testing, building, and automation.
SkillDFreshness: DClaude Code +9 - 0.410score
install-tooling
bzellman
Use when installing new skills or agents from curated lists or GitHub repositories, when the user says "install", "add skill", "add agent", or wants to set up…
SkillDFreshness: DClaude Code +9 - 0.409score
brand-guidelines
bzellman
Applies <YOUR_APP>'s official brand colors and typography to any artifact.
SkillDFreshness: DClaude Code +9 - 0.406score
dead-code-cleanup
bzellman
Safely find and remove dead code from Swift files using an isolated git worktree.
SkillDFreshness: DClaude Code +9 - 0.399score
<YOUR_IOS_BUILD>
bzellman
Run <YOUR_APP> iOS builds and simulator tests through FULLSTACK_SCRIPTS/build-ios-formatted.sh and format-build-log.py.
SkillDFreshness: DClaude Code +9 - 0.397score
bug-to-pr
bzellman
End-to-end pipeline from bug report to merged fix PR.
SkillDFreshness: DClaude Code +9 - 0.385score
find-skills
bzellman
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express…
SkillDFreshness: DClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Apr 7, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/bzellman/earp-kit
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from bzellman
- 0.414score
ios-design
bzellman
Design and implement SwiftUI interfaces for <YOUR_APP> iOS app with design system compliance, Apple HIG principles, and visual references.
SkillDFreshness: DClaude Code +9 - 0.411score
ios-simulator-skill
bzellman
21 production-ready scripts for iOS app testing, building, and automation.
SkillDFreshness: DClaude Code +9 - 0.410score
install-tooling
bzellman
Use when installing new skills or agents from curated lists or GitHub repositories, when the user says "install", "add skill", "add agent", or wants to set up…
SkillDFreshness: DClaude Code +9 - 0.409score
brand-guidelines
bzellman
Applies <YOUR_APP>'s official brand colors and typography to any artifact.
SkillDFreshness: DClaude Code +9 - 0.406score
dead-code-cleanup
bzellman
Safely find and remove dead code from Swift files using an isolated git worktree.
SkillDFreshness: DClaude Code +9 - 0.399score
<YOUR_IOS_BUILD>
bzellman
Run <YOUR_APP> iOS builds and simulator tests through FULLSTACK_SCRIPTS/build-ios-formatted.sh and format-build-log.py.
SkillDFreshness: DClaude Code +9
Cite this page
self-healing-deploy skill. Agent Mart. https://agentmart.dev/skills/bzellman-self-healing-deploy (last updated 2026-10-24)