post_merge_setup

Maintains and troubleshoots the post-merge setup script that runs after task merges.

Updated Apr 20, 2026
One-click install
npx skills add https://github.com/AmirEmad11/instabot --skill post-merge-setup-amiremad11
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: post_merge_setup
Source: https://github.com/AmirEmad11/instabot/tree/main/.local/skills/post_merge_setup
Command: npx skills add https://github.com/AmirEmad11/instabot --skill post-merge-setup-amiremad11

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? After a task merge, projects need dependencies installed, migrations run, and builds rebuilt automatically. When this post-merge setup fails or is misconfigured, merges break and the agent must diagnose and fix the script, timeout, or workflow reconciliation quickly. ## Core Features & Use Cases - Config Management: Read and update the post-merge script path and timeout stored in the .replit file via getPostMergeConfig() and setPostMergeConfig(). - Setup Execution & Diagnostics: Run the post-merge script and workflow reconciliation with runPostMergeSetup(), returning success status, error details, log file paths, and timing data. - Failure Recovery: Diagnose common failures such as missing scripts, timeouts, interactive commands hitting closed stdin, and failing dependency or migration commands, then retry to confirm fixes. - Use Case: A merge fails because pnpm install exceeds the default timeout. Inspect the stderr log tail, increase timeoutMs with setPostMergeConfig(), and rerun runPostMergeSetup() to verify the fix. ## Quick Start Run the post-merge setup and show me any errors from the logs so we can fix the script.

Frequently Asked Questions about post_merge_setup

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

FAQPage Schema
How do I configure a post-merge script in a Replit project?

Use setPostMergeConfig with a scriptPath such as scripts/post-merge.sh and an optional timeoutMs. The path is stored in the [postMerge] section of the .replit file, and the script runs automatically with bash after each merge.

How do I fix a post-merge setup failure after a merge?

Call runPostMergeSetup and inspect the stdout and stderr log tails opened into context, along with the scriptPath in the result. Fix or create the script, adjust the timeout if needed, then rerun runPostMergeSetup to confirm the fix.

Why does my post-merge script fail with EOF or input errors?

The script runs with stdin closed, so any command that prompts for input receives EOF and fails immediately. Rewrite those commands with non-interactive flags such as --yes, --force, or -y.

What should a post-merge setup script contain?

Use a bash script with set -e that is idempotent, non-interactive, and fast, for example running pnpm install followed by database migrations. Keep runtime under two minutes or increase the configured timeout.

What happens if the post-merge script exceeds its timeout?

The script is killed and setup fails with a timeout error. Estimate the script's real runtime, add a buffer, and raise the limit with setPostMergeConfig, or optimize the script if it hangs due to a bug.