Skip to content
cccskills
FreePublished on GitHub

open

Recreate a worktree for a given PR to test it locally — useful after /implement auto-cleaned the worktree. Usage: /open <PR>

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md2.4 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

/open <PR>

Recreate the egapro worktree associated with a PR — typically one that was auto-cleaned by /implement after the sub-agent returned validated. Use this to test the PR's code locally : run the dev server, exercise the feature, debug issues before merging.

Arguments

$ARGUMENTS — PR number (#3341, 3341). Required.


Ton rôle

Tu es un thin wrapper. Toute la logique est dans scripts/orchestration/open_worktree.sh. Tu dois :

  1. Valider que l'argument est un nombre de PR
  2. Lancer le script
  3. Relayer son output à l'utilisateur (path + URLs)
PR=$ARGUMENTS  # strip leading #
PR=${PR#\#}

if ! [[ "$PR" =~ ^[0-9]+$ ]]; then
    echo "ERROR: argument must be a PR number"
    exit 1
fi

bash scripts/orchestration/open_worktree.sh "$PR"

Le script :

  • Résout la branche head + le ticket linked + l'epic parent
  • Choisit le premier slot libre dans [0, EPIC_MAX_PARALLEL[
  • Recrée le worktree (idempotent : réutilise s'il existe)
  • Lance setup-worktree.sh si .env.local est manquant (pnpm install + docker stack + migrations)
  • Affiche le path + les URLs (dev server, mailpit, minio, postgres)

Cas d'usage typiques

  • Tester une PR ouverte avant de la merger : /open 3341 → worktree recréé, dev server prêt sur http://localhost:3001 (ou autre selon le slot)
  • Reprendre un debug sur une PR rejetée par CI : /open <PR> puis cd <path> et bidouiller
  • Reproduire un bug sur le code d'une PR mergée mais qui pose problème en preprod : /open <PR> même après merge — la branche reste sur le remote

Limitations

  • Si tous les slots [0, EPIC_MAX_PARALLEL[ sont occupés (par d'autres worktrees actifs), le script retourne une erreur. Libérer un slot via git worktree remove ../egapro-epic*-tXXX ou augmenter EPIC_MAX_PARALLEL.
  • Si la PR a été créée hors de la pipeline /implement (pas de ticket lié, pas d'epic parent), le script échoue. Cas limite — créer le worktree à la main dans ce cas.

Référence

  • Script : scripts/orchestration/open_worktree.sh
  • Setup docker : scripts/setup-worktree.sh
  • Cleanup auto par la pipeline : scripts/orchestration/cleanup_terminal_worktrees.sh (appelé à chaque tick par epic_loop.sh)

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Conception pipeline. Détecte le mode (epic/task/bug) selon le type d'issue ou le prompt et invoque les agents appropriés. Usage: /analyse [<issue#>] [<description>]

The English summary is being prepared. Showing the original description.

SocialGouv/egapro12Updated Oct 19, 2026

Conception pipeline for Codex. Equivalent to the repository's Claude skill: detect epic/task/bug mode, then delegate to the existing repo agents and workflows. Usage: /analyse [<issue#>] [<description>]

The English summary is being prepared. Showing the original description.

SocialGouv/egapro12Updated Oct 19, 2026

doc

Free

Documentation regeneration for Codex. Equivalent to the repository's Claude skill: regenerate user-facing docs from current code state. Usage: /doc or /doc <issue#>

The English summary is being prepared. Showing the original description.

SocialGouv/egapro12Updated Oct 19, 2026

doc

Free

Régénère la documentation utilisateur (`docs/*.md`) à partir de l'état courant du code. Usage : /doc (sur la branche courante) ou /doc <issue#> (sur la branche linkée à un epic / ticket).

The English summary is being prepared. Showing the original description.

SocialGouv/egapro12Updated Oct 19, 2026

Phase exécution. Détecte le mode (epic/task/bug) selon le type d'issue et lance le bon mécanisme : loop driver background pour epic, code-dev synchrone pour task/bug. Usage: /implement <issue#>

The English summary is being prepared. Showing the original description.

SocialGouv/egapro12Updated Oct 19, 2026

Execution pipeline for Codex. Detect epic/task/bug mode and implement with Codex models only. Usage: /implement <issue#>

The English summary is being prepared. Showing the original description.

SocialGouv/egapro12Updated Oct 19, 2026

See all skills by SocialGouv

Report a problem with this skill