coding-agent
Qué hace
Guía a un agente de IA para iniciar una herramienta de programación como Codex, Claude Code u OpenCode para crear una función, revisar un pull request o hacer una gran refactorización en segundo plano. Es para personas que quieren delegar tareas de programación más grandes.
Cuándo usarla
- ✓Cuando quieres que se construya en segundo plano una función más grande mientras haces otro trabajo.
- ✓Cuando necesitas que una herramienta de programación revise un pull request o haga una gran refactorización.
- ✓Cuando quieres que un trabajador de programación convierta una incidencia en un pull request.
Link de la skill
https://github.com/openclaw/openclaw/blob/main/skills/coding-agent/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Haz que Codex construya la nueva función de exportación en una copia separada del proyecto y avísame cuando termine.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La skill inicia la herramienta de programación elegida en un proceso en segundo plano, trabajando en una copia aislada del proyecto. Sigue el progreso y te informa cuando el trabajador termina o falla.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
Preguntas frecuentes
¿Editará directamente mi proyecto principal?
No. El trabajo se hace en una copia aislada, no directamente en la carpeta de tu proyecto principal.
¿También sirve para cambios sencillos?
No. Los cambios sencillos y las consultas de solo lectura en el código se hacen mejor directamente, así que esta skill es para trabajos más grandes.
¿Qué pasa si el trabajador se atasca?
La skill lo supervisa y puede reiniciarlo o preguntarte, en lugar de hacer el trabajo a mano en silencio.
Detalles
Descripción original del autor
Delegate coding work to Codex, Claude Code, or OpenCode as background workers; not simple edits or read-only code lookup.
repo: openclaw/openclaw
Popularidad
- Estrellas en GitHub
- 394 mil
- Posición en el ranking
- #49
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
discord-user-post
394 milPermite que tu agente publique en Discord, como tú y desde la app de escritorio, un mensaje que hayas aprobado, después de confirmar el canal exacto.
discrawl
394 milPermite que tu agente busque y resuma un archivo local guardado de mensajes de Discord, revise qué tan actual es y lea mensajes directos.
gitcrawl
394 milPermite que tu agente busque en un archivo guardado de incidencias y pull requests de GitHub, agrupe duplicados y revise su estado actual en GitHub.
graincrawl
394 milPermite que tu agente busque tus notas y transcripciones guardadas de reuniones de Granola, revise qué tan recientes son y las cuente en un periodo.
Skills parecidas
executing-plans
311 milAyuda a tu agente a ejecutar paso a paso un plan de implementación escrito en la sesión actual, probando cada paso antes de avanzar al siguiente.
finishing-a-development-branch
311 milAyuda a tu agente a cerrar código terminado ejecutando las pruebas y ofreciendo opciones claras para fusionar, abrir un pull request o conservar la rama.
receiving-code-review
311 milAyuda a tu agente a valorar con cuidado los comentarios de una revisión de código, comprobando cada punto contra el código antes de cambiar nada.