跳到正文
cccskills
免费在 GitHub 公开

open

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

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md2.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

/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)

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

analyse

免费

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>]

中文简介正在准备中。当前显示原文说明。

SocialGouv/egapro122026年10月19日 更新

analyse

免费

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>]

中文简介正在准备中。当前显示原文说明。

SocialGouv/egapro122026年10月19日 更新

doc

免费

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

中文简介正在准备中。当前显示原文说明。

SocialGouv/egapro122026年10月19日 更新

doc

免费

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).

中文简介正在准备中。当前显示原文说明。

SocialGouv/egapro122026年10月19日 更新

implement

免费

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#>

中文简介正在准备中。当前显示原文说明。

SocialGouv/egapro122026年10月19日 更新

implement

免费

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

中文简介正在准备中。当前显示原文说明。

SocialGouv/egapro122026年10月19日 更新

查看 SocialGouv 的全部技能

报告此技能的问题