post_merge_setup

Run post-merge setup scripts and reconcile workflows with .replit configuration.

Updated Dec 10, 2025
One-click install
npx skills add https://github.com/KhaledMKhaled/FodaStore --skill post-merge-setup-khaledmkhaled
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: post_merge_setup
Source: https://github.com/KhaledMKhaled/FodaStore/tree/main/.local/skills/post_merge_setup
Command: npx skills add https://github.com/KhaledMKhaled/FodaStore --skill post-merge-setup-khaledmkhaled

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents merged tasks from leaving the repository in a broken or outdated state by ensuring dependencies, migrations, and runtime workflows are kept in sync automatically after every merge.

Core Features & Use Cases

  • Runs post-merge setup from the project root: Executes the configured bash script with the full Nix environment available on PATH, with stdin closed to force non-interactive behavior.
  • Ensures workflow reconciliation: Stops workflows removed from .replit and restarts workflows that should still be running based on the latest configuration.
  • Provides actionable failure handling: Surfaces setup/reconciliation errors immediately, including log paths and captured stdout/stderr for fast debugging.

Quick Start

Configure the post-merge script and timeout in .replit, then trigger a merge so the system runs setup and reconciles workflows automatically from the project root.

Frequently Asked Questions about post_merge_setup

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

FAQPage Schema
How do I automate dependency installation and migrations after git merges?

Automating post-merge setup requires running a configured bash script from the project root that handles dependency installation and migrations. This ensures the repository remains in a consistent state by automatically reconciling workflows with the latest configuration immediately after merges.

Why does my post-merge bash script hang during CI/CD automation?

Post-merge bash scripts hang during CI/CD automation when stdin remains open, prompting for user input. To force non-interactive execution and prevent hangs, stdin must be set to /dev/null, allowing the setup script to run without waiting for interactive feedback.

How do I reconcile runtime workflows with .replit configuration after a merge?

Reconciling workflows with .replit configuration involves stopping workflows removed from the config and restarting those that should still be running. This ensures runtime workflows match the latest project settings immediately after a merge is completed.

Can I set a hard timeout for post-merge setup scripts to prevent hanging tasks?

You can configure a hard timeout for post-merge setup scripts to prevent hanging tasks. When the execution overruns the configured timeout limit, the system issues a hard kill to terminate the process, ensuring your CI/CD pipeline does not stall indefinitely.

How do I debug failed post-merge setup and workflow reconciliation errors?

Debugging failed post-merge setup relies on deterministic reporting of setup and reconciliation errors. The system surfaces captured stdout, stderr, and specific log file paths immediately, providing actionable outputs to help you pinpoint and fix configuration issues fast.

Does post-merge setup support running scripts with the full Nix environment?

Post-merge setup supports running scripts with the full Nix environment available on PATH. This ensures that all dependencies and tools defined in your Nix configuration are accessible during the non-interactive bash execution from the project root.