Skill
  • Claude Code
  • Codex
  • OpenCode
  • Grok
  • OpenClaw
  • Antigravity
  • Kimi Code
  • Qwen Code
  • +27agentes más

Gh pr merge worktree checkout trap

wan-huiyan/agent-traffic-control

Diagnose and bypass `gh pr merge --squash --delete-branch` failing with "failed to run git: fatal: 'main' is already used by worktree at .…

Una skill en «Comercio electrónico y ventas». Comandos listos para Claude Code, Codex, OpenCode y 32 agentes más.

Descripción completa

Diagnose and bypass `gh pr merge --squash --delete-branch` failing with "failed to run git: fatal: 'main' is already used by worktree at ..." when another git worktree has main checked out. Use when: (1) you run gh pr merge and see this exact error, (2) you have multiple worktrees in the repo (e.g. `.claude/worktrees/*`), (3) the error appears even though the GitHub merge itself looks fine. The merge SUCCEEDED on GitHub — only gh's local-side effect (post-merge `git checkout main`) failed. Verify via `gh pr view N --json state,mergedAt`; if state=MERGED, you're done. This also applies to `gh pr checkout` and any other `gh` subcommand that tries to touch the local main branch while another worktree has it claimed. v1.2.0 (2026-05-26) adds the sequential-error variant: if you re-run from the main-repo worktree after the first error, you can then hit "cannot delete branch <feature-branch> used by worktree at <feature-worktree>" — same one-checkout-per-branch invariant, this time applied to the feature branch. Cleanup order: `git worktree remove` BEFORE `git branch -D`. v1.3.0 (2026-05-27) adds the `--auto --delete-branch` enable-time variant: when checks are still pending, `gh pr merge N --auto --squash --delete-branch` fails locally (same "main is already used by worktree" message) BEFORE the auto-merge intent is registered server-side — `gh pr view N --json autoMergeRequest` returns null. Workaround: drop `--delete-branch` (`gh pr merge N --auto --squash`), then `git worktree remove` + `git branch -D` manually after the merge lands. The post-merge variant in v1.0-1.2 succeeds the merge first then chokes on cleanup; this v1.3 variant chokes BEFORE the server-side enable, so verifying with `--json autoMergeRequest` (not just `state`) is required.

  • Skill
  • Comercio electrónico y ventas
  • 35 agentes
  • 5 estrellas
  • MIT

Esta entrada viene del GitSkills conjunto de datos abierto (CC-BY-4.0). ANG no ejecutó ni auditó esta skill; revisa la fuente antes de instalar.

Instalar

Elige tu programa y el comando se escribe solo.

git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control

Luego copia la carpeta plugins/agent-traffic-control/skills/gh-pr-merge-worktree-checkout-trap en .claude/skills.

Los comandos se generan a partir de los datos del registro del publicador; ANG skills no los ha ejecutado ni auditado.

Compatibilidad de agentes

Qué agentes pueden leer esta entrada y cuáles no.

Compatible 35

  • Claude CodeComando listo. Claude Code admite SKILL.md.Fuente
  • CodexComando listo. Codex admite SKILL.md.Fuente
  • OpenCodeComando listo. OpenCode admite SKILL.md.Fuente
  • GrokComando listo. Grok admite SKILL.md.Fuente
  • OpenClawComando listo. OpenClaw admite SKILL.md.Fuente
  • AntigravityComando listo. Antigravity admite SKILL.md.Fuente
  • Kimi CodeComando listo. Kimi Code admite SKILL.md.Fuente
  • Qwen CodeComando listo. Qwen Code admite SKILL.md.Fuente
  • Gemini CLIComando listo. Gemini CLI admite SKILL.md.Fuente
  • PiComando listo. Pi admite SKILL.md.Fuente
  • GooseComando listo. Goose admite SKILL.md.Fuente
  • AmpComando listo. Amp admite SKILL.md.Fuente
  • Factory DroidComando listo. Factory Droid admite SKILL.md.Fuente
  • Mistral VibeComando listo. Mistral Vibe admite SKILL.md.Fuente
  • CrushComando listo. Crush admite SKILL.md.Fuente
  • Hermes AgentComando listo. Hermes Agent admite SKILL.md.Fuente
  • CodebuffComando listo. Codebuff admite SKILL.md.Fuente
  • Rovo DevComando listo. Rovo Dev admite SKILL.md.Fuente
  • QoderComando listo. Qoder admite SKILL.md.Fuente
  • TRAEComando listo. TRAE admite SKILL.md.Fuente
  • MiniMax CodeComando listo. MiniMax Code admite SKILL.md.Fuente
  • MiMo CodeComando listo. MiMo Code admite SKILL.md.Fuente
  • CursorComando listo. Cursor admite SKILL.md.Fuente
  • GitHub CopilotComando listo. GitHub Copilot admite SKILL.md.Fuente
  • KiroComando listo. Kiro admite SKILL.md.Fuente
  • ClineComando listo. Cline admite SKILL.md.Fuente
  • Kilo CodeComando listo. Kilo Code admite SKILL.md.Fuente
  • JunieComando listo. Junie admite SKILL.md.Fuente
  • Augment CodeComando listo. Augment Code admite SKILL.md.Fuente
  • ZedComando listo. Zed admite SKILL.md.Fuente
  • CodeBuddyComando listo. CodeBuddy admite SKILL.md.Fuente
  • BLACKBOX AIComando listo. BLACKBOX AI admite SKILL.md.Fuente
  • DevinComando listo. Devin admite SKILL.md.Fuente
  • OpenHandsComando listo. OpenHands admite SKILL.md.Fuente
  • Replit AgentComando listo. Replit Agent admite SKILL.md.Fuente

No documentado 8

  • AiderNo hay compatibilidad documentada con SKILL.md para Aider.Fuente
  • PlandexNo hay compatibilidad documentada con SKILL.md para Plandex.Fuente
  • CodeGPTNo hay compatibilidad documentada con SKILL.md para CodeGPT.Fuente
  • SWE-agentNo hay compatibilidad documentada con SKILL.md para SWE-agent.Fuente
  • mini-SWE-agentNo hay compatibilidad documentada con SKILL.md para mini-SWE-agent.Fuente
  • JulesNo hay compatibilidad documentada con SKILL.md para Jules.Fuente
  • Open SWENo hay compatibilidad documentada con SKILL.md para Open SWE.Fuente
  • GitLab DuoNo hay compatibilidad documentada con SKILL.md para GitLab Duo.Fuente

La compatibilidad viene de la documentación oficial de cada agente sobre SKILL.md y MCP; ANG no ha ejecutado esta entrada en todos los agentes.

En pocas palabras

No hace falta saber de tecnología.

¿Qué es?
Un skill es un paquete de instrucciones que cargas en tu agente (como Claude Code o Codex). Es como instalar una app en el móvil: lo instalas una vez y el agente sabe hacer ese trabajo.
¿Para qué sirve?
Se usa para trabajos de “Comercio electrónico y ventas”. En palabras del publicador: Diagnose and bypass `gh pr merge --squash --delete-branch` failing with "failed to run git: fatal: 'main' is already used by worktree at ..." when another gi…
Ejemplo de petición
“Actualiza las descripciones de los productos de la tienda.”
Agentes
Comandos listos para Claude Code, Codex, OpenCode y 32 agentes más.
¿Puedo confiar en ella?
5 estrellas en GitHub · MIT. Revisa la fuente antes de instalar.

Uso

Últimos 30 días, en el sitio y en los agentes.

Una puntuación de uso real necesita al menos 20 usuarios y 50 tareas desde la app de ANG; ahora hay 0 usuarios y 0 tareas. Hasta entonces, la potencia se estima con los datos de la ficha.

Benchmark

¿Qué tan fuerte es en cada agente?

46potencia · 35 agentes

El seguimiento acaba de empezar Abrir gráfico
  • Claude Code46
  • Codex46
  • OpenCode46
  • Grok46
  • OpenClaw46
  • Antigravity46
  • Kimi Code46
  • Qwen Code46
  • Gemini CLI46
  • Pi46
  • Goose46
  • Amp46
  • Factory Droid46
  • Mistral Vibe46
  • Crush46
  • Hermes Agent46
  • Codebuff46
  • Rovo Dev46
  • Qoder46
  • TRAE46
  • MiniMax Code46
  • MiMo Code46
  • Cursor46
  • GitHub Copilot46
  • Kiro46
  • Cline46
  • Kilo Code46
  • Junie46
  • Augment Code46
  • Zed46
  • CodeBuddy46
  • BLACKBOX AI46
  • Devin46
  • OpenHands46
  • Replit Agent46

¿Cómo se calcula la puntuación?

En la comunidad

Pregunta y cuenta cómo la usaste.

Abre un tema sobre esta skill

Similares

Del campo Comercio electrónico y ventas.

Codified expertise for demand forecasting, safety stock optimization, replenishment planning, a…Haz clic para instalar

Skill315.8KEstrellas de GitHub

Inventory demand planning

affaan-m/ecc

  • Claude Code
  • Codex
  • +33: OpenCode, Grok, OpenClaw, Antigravity, Kimi Code, Qwen Code, Gemini CLI, Pi, Goose, Amp, Factory Droid, Mistral Vibe, Crush, Hermes Agent, Codebuff, Rovo Dev, Qoder, TRAE, MiniMax Code, MiMo Code, Cursor, GitHub Copilot, Kiro, Cline, Kilo Code, Junie, Augment Code, Zed, CodeBuddy, BLACKBOX AI, Devin, OpenHands, Replit Agent

Reference-product ecommerce image workflow for generating a compact set of product-faithful mai…Haz clic para instalar

Skill110.9KEstrellas de GitHub

Ecommerce image workflow

nexu-io/open-design

  • Claude Code
  • Codex
  • +33: OpenCode, Grok, OpenClaw, Antigravity, Kimi Code, Qwen Code, Gemini CLI, Pi, Goose, Amp, Factory Droid, Mistral Vibe, Crush, Hermes Agent, Codebuff, Rovo Dev, Qoder, TRAE, MiniMax Code, MiMo Code, Cursor, GitHub Copilot, Kiro, Cline, Kilo Code, Junie, Augment Code, Zed, CodeBuddy, BLACKBOX AI, Devin, OpenHands, Replit Agent

Breaks work into ordered tasks.Haz clic para instalar

Skill122.4KEstrellas de GitHub

Planning and task breakdown

addyosmani/agent-skills

  • Claude Code
  • Codex
  • +33: OpenCode, Grok, OpenClaw, Antigravity, Kimi Code, Qwen Code, Gemini CLI, Pi, Goose, Amp, Factory Droid, Mistral Vibe, Crush, Hermes Agent, Codebuff, Rovo Dev, Qoder, TRAE, MiniMax Code, MiMo Code, Cursor, GitHub Copilot, Kiro, Cline, Kilo Code, Junie, Augment Code, Zed, CodeBuddy, BLACKBOX AI, Devin, OpenHands, Replit Agent

Audit Amazon Ads profiles, regions, Sponsored Products, Sponsored Brands, Sponsored Display, DS…Haz clic para instalar

Skill11.5KEstrellas de GitHub

Ads amazon

agricidaniel/claude-ads

  • Claude Code
  • Codex
  • +33: OpenCode, Grok, OpenClaw, Antigravity, Kimi Code, Qwen Code, Gemini CLI, Pi, Goose, Amp, Factory Droid, Mistral Vibe, Crush, Hermes Agent, Codebuff, Rovo Dev, Qoder, TRAE, MiniMax Code, MiMo Code, Cursor, GitHub Copilot, Kiro, Cline, Kilo Code, Junie, Augment Code, Zed, CodeBuddy, BLACKBOX AI, Devin, OpenHands, Replit Agent

¿Lista para instalar?Instalar