coding-agent
Ce qu’il fait
Elle guide un agent IA pour lancer un outil de code tel que Codex, Claude Code ou OpenCode, afin de développer une fonctionnalité, relire une pull request ou faire une grande refonte en arrière-plan. Elle s'adresse aux personnes qui veulent déléguer des tâches de programmation plus larges.
Quand l’utiliser
- ✓Quand vous voulez qu'une fonctionnalité plus importante soit développée en arrière-plan pendant que vous travaillez sur autre chose.
- ✓Quand vous avez besoin qu'un outil de code relise une pull request ou réalise une grande refonte.
- ✓Quand vous voulez qu'un ticket soit transformé en pull request par un travailleur de code.
Lien du skill
https://github.com/openclaw/openclaw/blob/main/skills/coding-agent/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Demande à Codex de développer la nouvelle fonctionnalité d'export dans une copie séparée du projet, et préviens-moi quand c'est terminé.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
La skill lance l'outil de code choisi dans un processus en arrière-plan, en travaillant dans une copie isolée du projet. Elle surveille la progression et vous informe lorsque le travailleur termine ou échoue.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
Coding Agent
Use for background feature builds, PR reviews, large refactors, and issue-to-PR loops. Do not use for simple edits, read-only lookup, ACP thread-bound work, or any run inside ~/.openclaw, $OPENCLAW_STATE_DIR, or active OpenClaw state dirs.
Hard rules
- Always launch with
background:true. - Codex and OpenCode: use
pty:true. - Codex: never inherit ambient
CODEX_HOMEor the default~/.codex. Use a separately authenticated coding-agent home and scope it to each Codex command. - Claude Code: no PTY; use
claude --permission-mode bypassPermissions --print. - Capture a real notification route before spawning.
- Worker must send completion/failure via
openclaw message send. - Do not rely on heartbeat, system events, or notify-on-exit.
- Monitor with
process; do not kill slow workers without cause. - If user asked for a specific agent, use that agent.
- If worker fails/hangs, respawn or ask; do not silently hand-code instead.
- Never checkout branches or run background coding agents in
~/Projects/openclaw; use an isolated checkout. - Classify the source ref as trusted or untrusted before any checkout or worktree creation. Never materialize a contributor-controlled ref outside the repository's approved untrusted-PR sandbox/review workflow, and never launch a permission-bypassed worker in it.
- For tasks that modify a Git-backed project, prepare and verify the Git worktree before launch, then include the exact Git preparation block below in the worker prompt.
Mandatory Git preparation
Before launching Codex, Claude Code, or OpenCode for work that modifies a Git-backed project:
- Establish the intended target repository, then select its canonical remote. Prefer
upstreamwhen it exists and matches that target; otherwise verifyorigin. Resolve the selected remote's default branch dynamically. Determine the target base from an explicit task branch or authoritative existing-PR metadata; for other shared branches, prove the configured/tracked base or ask. Use the canonical default only for new work with no other specified base. Stop if the repository, remote, or target base cannot be proven. - Classify the source ref as trusted or untrusted before any checkout or worktree creation. For contributor-controlled refs, use the repository's approved untrusted-PR sandbox/review workflow, which must own ref materialization inside the sandbox, or stop. The remaining steps and launch forms are for trusted refs only.
- For trusted new work, run
git fetch --prune <canonical>immediately before creating a new isolated worktree and branch from<canonical>/<targetBaseBranch>. - For trusted new work, verify the worktree's initial
HEADequals the fetched target-base SHA. Record the canonical remote, canonical default branch, target base branch, base SHA, worktree path, and branch. - For a trusted existing PR or shared branch, fetch the canonical target base and source branch immediately before creating an isolated worktree from the fetched source branch. Record that source ref and starting SHA, report its divergence from the refreshed target base, and do not automatically rebase, merge, reset, force-push, or otherwise rewrite shared history.
- Launch the worker in the isolated worktree, never the primary checkout. For OpenClaw, the primary checkout under
~/Projects/openclawremains forbidden.
For tasks that modify a Git-backed project, append this block to the worker prompt with real values:
Git preparation (mandatory before edits):
- canonical remote: <canonicalRemote>
- canonical default branch: <canonicalDefaultBranch>
- target base branch: <targetBaseBranch>
- fetched target base SHA: <targetBaseSha>
- preparation mode: <new work | existing PR/shared branch>
- checkout trust: trusted
- prepared source ref: <canonicalRemote/targetBaseBranch | fetched trusted source ref>
- prepared start SHA: <preparedStartSha>
- isolated worktree: <worktreePath>
- working branch: <branch>
- preparation receipt: <new work: `git fetch --prune <canonicalRemote>` ran immediately before creation from `<canonicalRemote>/<targetBaseBranch>` | existing branch: the canonical target base and trusted source ref were fetched immediately before the worktree was created from `<preparedSourceRef>` at `<preparedStartSha>`>
Before editing, verify the current directory is the isolated worktree and its initial HEAD equals <preparedStartSha>. For new work, that SHA must equal <targetBaseSha>. Never edit the
Questions fréquentes
Modifiera-t-elle directement mon projet principal ?
Non. Le travail s'effectue dans une copie isolée, et non directement dans le dossier de votre projet principal.
Gère-t-elle aussi les modifications simples ?
Non. Les modifications simples et les consultations de code en lecture seule se font mieux directement, cette skill est donc réservée aux travaux plus importants.
Que se passe-t-il si le travailleur se bloque ?
La skill surveille le travailleur et peut le relancer ou vous demander votre avis, plutôt que de faire le travail discrètement à la main.
Détails
Description originale de l’auteur
Delegate coding work to Codex, Claude Code, or OpenCode as background workers; not simple edits or read-only code lookup.
repo: openclaw/openclaw
Popularité
- Étoiles GitHub
- 394k
- Position au classement
- #49
- Licence
- MIT
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
discord-user-post
394kPermet à votre agent de publier sur Discord un message approuvé, en votre nom, via l'application de bureau, après confirmation du salon exact.
discrawl
394kPermet à votre agent de rechercher et de résumer une archive locale des messages Discord, de vérifier sa fraîcheur et de lire les messages privés.
gitcrawl
394kPermet à votre agent de chercher dans une archive de tickets et pull requests GitHub, de regrouper les doublons et de vérifier leur statut actuel.
graincrawl
394kPermet à votre agent de chercher dans vos notes et transcriptions de réunions Granola sauvegardées, de vérifier leur fraîcheur et de les compter sur une période.
Skills similaires
executing-plans
311kAide votre agent à exécuter un plan de mise en œuvre écrit, étape par étape, dans la session en cours, en testant chaque étape avant de passer à la suivante.
finishing-a-development-branch
311kAide votre agent à finaliser un code terminé en lançant les tests, puis en proposant des options claires : fusionner, ouvrir une pull request ou conserver la branche.
receiving-code-review
311kAide votre agent à examiner avec soin les retours de relecture de code, en vérifiant chaque point par rapport au code avant de modifier quoi que ce soit.