deploy-to-staging

Sync feature branches with master/main and merge them to staging across multiple repositories.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/yuridefranca/ai-prompts --skill deploy-to-staging-yuridefranca
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deploy-to-staging
Source: https://github.com/yuridefranca/ai-prompts/tree/main/src/skills/deploy-to-staging
Command: npx skills add https://github.com/yuridefranca/ai-prompts --skill deploy-to-staging-yuridefranca

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill orchestrates the process of updating a feature branch with the latest changes from master/main and merging it to staging across multiple repositories (backend, frontend, chadmin-frontend).

Core Features & Use Cases

  • Supports repository-specific workflows: backend (no staging merge), frontend (merges to staging), and chadmin-frontend (uses main and staging).
  • Handles merge conflicts with a structured resolution strategy, including import-only conflicts and code conflicts; provides automated guidance and escalation as needed.
  • Automates feature-branch sync, staging deployment prep, and cross-repo coordination, with step-by-step execution logs and status reporting.

Quick Start

Provide the feature branch name and target repositories to initiate the multi-repo sync and staging merge.

Frequently Asked Questions about deploy-to-staging

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

FAQPage Schema
How do I sync a feature branch with master and merge it to staging across multiple repositories?

To merge feature branches to staging across multiple repos, you must first sync the feature branch with master/main, then merge it into staging. This skill automates that cross-repo coordination by enforcing two-step merges: syncing base into feature, then merging feature into staging for eligible repos.

What is the best way to handle merge conflicts when syncing feature branches to staging?

Handling merge conflicts during staging preparation requires a structured resolution strategy for import-only conflicts and code conflicts. This skill provides automated guidance for resolving conflicts during the two-step merge process, escalating complex code conflicts as needed to ensure stable staging deployments.

Does this multi-repo staging merge workflow support backend, frontend, and chadmin-frontend repositories?

Yes, this multi-repo staging merge workflow supports backend, frontend, and chadmin-frontend repositories. It applies repository-specific rules: backend skips staging merges, frontend merges to staging, and chadmin-frontend uses main and staging branches for consistent deployment preparation.

Can I automate backmerge and conflict resolution for a multi-repo Git workflow?

Yes, you can automate backmerge and conflict resolution for multi-repo Git workflows. This skill orchestrates feature-branch sync, handles import-only and code conflicts with structured guidance, and pushes final changes across backend, frontend, and chadmin-frontend repositories automatically.

Why do I need a two-step merge process for deploying feature branches to staging?

A two-step merge process is needed to ensure feature branches contain the latest base branch updates before staging deployment. By merging base into feature first, then feature into staging, you isolate conflicts early and maintain stable staging environments across multiple repositories.