coding-agent
O que ela faz
Orienta um agente de IA a iniciar uma ferramenta de programação, como Codex, Claude Code ou OpenCode, para criar uma funcionalidade, revisar um pull request ou fazer uma refatoração grande em segundo plano. É para quem quer delegar tarefas de programação maiores.
Quando usar
- ✓Quando você quer uma funcionalidade maior sendo criada em segundo plano enquanto faz outras coisas.
- ✓Quando você precisa que um pull request seja revisado ou que uma refatoração grande seja feita por uma ferramenta de programação.
- ✓Quando você quer que uma issue vire um pull request feito por um worker de programação.
Link da skill
https://github.com/openclaw/openclaw/blob/main/skills/coding-agent/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Peça ao Codex para criar a nova funcionalidade de exportação em uma cópia separada do projeto e me avise quando terminar.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A skill inicia a ferramenta de programação escolhida em um processo em segundo plano, trabalhando em uma cópia isolada do projeto. Ela acompanha o andamento e informa quando o worker termina ou falha.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
Ela vai editar diretamente meu projeto principal?
Não. O trabalho é feito em um checkout isolado, e não diretamente na pasta do seu projeto principal.
Ela também lida com edições simples?
Não. Edições simples e consultas somente leitura no código são melhor feitas diretamente, por isso esta skill serve para trabalhos maiores.
O que acontece se o worker travar?
A skill monitora o worker e pode reiniciá-lo ou perguntar a você, em vez de fazer o trabalho manualmente em silêncio.
Detalhes
Descrição original do autor
Delegate coding work to Codex, Claude Code, or OpenCode as background workers; not simple edits or read-only code lookup.
repo: openclaw/openclaw
Popularidade
- Estrelas no GitHub
- 394 mil
- Posição no ranking
- #49
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
discord-user-post
394 milPermite que seu agente publique no Discord uma mensagem que você aprovou, como você, pelo app de desktop do Discord, depois de confirmar o canal exato.
discrawl
394 milPermite que seu agente pesquise e resuma um arquivo local salvo de mensagens do Discord, verifique quão atualizado ele está e leia mensagens diretas.
gitcrawl
394 milPermite que seu agente pesquise um arquivo salvo de issues e pull requests do GitHub, agrupe os duplicados e verifique o status atual deles no GitHub.
graincrawl
394 milPermite que seu agente pesquise suas anotações e transcrições salvas de reuniões do Granola, verifique quão atualizadas elas estão e as conte em um período.
Skills parecidas
executing-plans
311 milAjuda seu agente a executar um plano de implementação escrito, passo a passo, na sessão atual, testando cada etapa antes de seguir em frente.
finishing-a-development-branch
311 milAjuda seu agente a concluir um código pronto, rodando os testes e depois oferecendo opções claras para fazer merge, abrir um pull request ou manter a branch.
receiving-code-review
311 milAjuda seu agente a avaliar com cuidado o feedback de uma revisão de código, conferindo cada ponto no código antes de mudar qualquer coisa.