# Land Git Work Across Many Repos (Go, Deploy-from-Main)

> Read-only inventory of every repo and worktree in a workspace, then a safe landing order: skip stale branches, land the core library before its service, never commit a local go.mod replace, build everything before pushing anything.

Land Git Work Across Many Repos (Go, Deploy-from-Main) is a paid AI agent skill on Agensi by Claude Workflow Lab, in Code Quality & Review. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $6 (one-time purchase)
- Creator: [Claude Workflow Lab](https://www.agensi.io/creators/creator-1578)
- Category: [Code Quality & Review](https://www.agensi.io/skills/code-quality-review)
- Version: 1.0.0
- Last updated: 2026-12-03
- Security: scan passed (2026-12-03); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/land-git-work-across-many-repos-go-deploy-from-main
- Tags: code-review, devops, automation, git, monorepo-workspace, go, merge, release

## What it does

- Scans multiple folders at once to find unpushed code and uncommitted changes
- Identifies and skips stale or abandoned branches so you only focus on real work
- Ensures core libraries are updated and tested before the services that depend on them
- Prevents broken code from reaching your server by running build tests first
- Removes junk files and temporary leftovers to keep your workspace clean
- Protects your live sessions by refusing to touch files currently being edited elsewhere

## Who it's for

- **Traders managing their own codebases:** Keep your trading services and libraries synced without breaking your live deploy. Try: "Check all my repos for unpushed work and tell me what is ready to land."
- **Founders with multiple microservices:** Safely update shared core libraries across all your services in the right order. Try: "Merge the latest core changes into the admin and stats services and push if they build."
- **Solo developers with messy workspaces:** Clean up stale branches and forgotten stashes across dozens of folders at once. Try: "Find all my scratch clones and tell me which ones I can safely delete."

## About this skill

If your trading code lives in several independent clones (services, a shared core library per exchange, a config service, an admin panel) and each deploys from main, "merge everything" is a trap. This skill gives an agent a procedure that avoids reporting a stale picture, merging the wrong thing, breaking a build or racing an active session.

What is inside:
- **SKILL.md** - the steps: fetch and take a read-only inventory of uncommitted and unpushed work in every repo and worktree; triage stale or diverged branches and leave them alone; handle coupled repos (a service that depends on a sibling library through a local replace directive); build and test all of it before pushing any of it; fast-forward merge in dependency order; push; clean up. It includes the go.mod local-replace trap, verifying every sibling replace target against a clean origin/main worktree, and what to say about what a green run actually covered.
- **scripts/survey.sh** - one read-only pass over a workspace printing branch, dirty state, ahead/behind counts and worktrees for every repo.

For developers who keep many Go repos side by side and want one honest report of what is pushable, then a safe landing. Needs git, a Go toolchain and bash; nothing is force-pushed or deleted without your explicit say-so. Also part of the Crypto Trading Ops Playbooks pack at a lower per-skill price.

## Requires

- Git
- Go toolchain (for the go.mod and build checks)
- Bash

## Known limitations

This skill is designed for Go-based workspaces. It requires git to be installed and assumes you deploy from a main branch.

## Technical details

The skill uses a workspace-wide survey via git fetch and status across multiple clones. It handles Go-specific logic like go.mod local replaces and GOWORK. It implements a multi-step integration flow: fetch, classify, dependency ordering, build verification (go test/vet), fast-forward merge, and push. It uses shell scripts for parallel fetching and worktree inspection.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Land Git Work Across Many Repos (Go, Deploy-from-Main) skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What exactly does this skill do to help manage my code?

This skill helps you manage multiple code projects at once by finding unpushed work, identifies which branches are safe to merge, and prevents common mistakes like accidental code overwrites or broken builds across different folders.

### What do I need to have ready in my workspace for this to work?

You will need a workspace directory containing your Git code repositories and a Go programming environment. The skill also looks for specific files like a shared contract document or a list of retired servers to ensure your documentation stays accurate.

### What kind of report or results will I see after it runs?

You get a clear report for every project showing which changes were committed or pushed, a list of verified builds, and a summary of which old files or branches were cleaned up. It will tell you exactly where it stopped if it found a problem like a failing test or a project that was already being worked on.

### Are there any types of code changes or situations this skill won't handle?

It avoids merging diverged branches that look like abandoned experiments and will not touch projects that are currently being edited in another active session. It also refuses to push code if the remote server has newer changes that might cause a conflict.

### How do I tell my agent to start the integration process?

You can ask your agent to show you what is uncommitted or unpushed across your folders, or give a more direct command to merge and push all changes to your main server once the builds pass.

### How does it prevent me from breaking the project for other team members?

The skill specifically checks for local path redirects in your configuration files that would work on your machine but break the project for everyone else. It ensures these temporary redirects are removed before any code is shared.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
