land-and-deploy

Merge GitHub pull requests, wait for CI, and verify production health.

Updated Mar 28, 2026
One-click install
npx skills add https://github.com/24601/gastack-pre-fork --skill land-and-deploy-24601
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: land-and-deploy
Source: https://github.com/24601/gastack-pre-fork/tree/main/land-and-deploy
Command: npx skills add https://github.com/24601/gastack-pre-fork --skill land-and-deploy-24601

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Land-and-deploy automates the risky, repetitive steps of merging a pull request, waiting for CI and deployment, and verifying production health so releases do not silently break users. It reduces manual monitoring, guesswork, and the chances of a bad merge reaching production by enforcing readiness gates and canary checks.

Core Features & Use Cases

  • Auto-detect PR and platform: Finds the PR for the current branch or accepts a PR number, and detects deploy targets from repo config and workflows.
  • First-run dry-run and safety gates: Runs a dry validation on first use and whenever deploy configuration changes, and requires explicit confirmation for risky steps.
  • Automated merge + CI wait: Merges via GitHub CLI, monitors CI and deploy workflows, and handles merge conflicts, CI failures, or permission errors.
  • Post-deploy verification and rollback options: Performs canary/health checks against a provided production URL, reports issues with evidence, and offers revert actions when problems are detected.
  • Telemetry and contributor flows: Logs local telemetry and supports contributor-mode feedback for iterative improvements.
  • Use Case: A solo maintainer or release engineer who needs a repeatable, auditable way to move PRs to production with minimal manual steps and clear failure handling.

Quick Start

Run /land-and-deploy to merge the current PR, wait for CI and deployment, and verify production health at the optional URL you provide.

Frequently Asked Questions about land-and-deploy

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

FAQPage Schema
How do I automate merging a GitHub PR, waiting for CI, and deploying to production?

Automating a GitHub PR merge, CI wait, and production deploy involves merging via GitHub CLI, monitoring deploy workflows, and running canary health checks. This Skill enforces readiness gates to prevent bad merges from silently breaking users.

What happens if CI fails or there are merge conflicts during an automated deploy?

If CI fails or merge conflicts occur during an automated deploy, the process halts and reports the specific issue. It handles CI failures, permission errors, and merge conflicts while offering rollback or revert actions to restore production health.

How do canary health checks verify production after a GitHub deployment?

Canary health checks verify production after a GitHub deployment by querying an optional production URL. The process performs post-deploy verification, reports any detected issues with evidence, and offers rollback options if problems are found.

Do I need GitHub CLI authentication to merge and deploy pull requests automatically?

Yes, you need GitHub CLI authentication and access to the repository's workflows to merge and deploy pull requests automatically. An optional production URL is also required for post-deploy verification and canary health checks.

Can I run a dry validation before merging a pull request to production?

Yes, you can run a dry validation before merging a pull request to production. A first-run dry-run executes automatically on initial use and whenever deploy configuration changes, requiring explicit confirmation for risky steps.

What is the best way to roll back a bad GitHub release after deployment?

The best way to roll back a bad GitHub release after deployment is to use automated canary checks that detect issues and offer revert actions. This provides clear failure handling and rollback options when production health checks fail.