Coding Agent
Delegate coding work to Codex, Claude Code, or OpenCode as background workers; not simple edits or read-only code lookup.
MCP get_skill({ skillId: "coding-agent-acc9f22e" })Use this skill with your agent
Create a free account and connect via MCP
# 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`. - 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. ## Notification block Append this shape to every worker prompt with real values: ```text Notification route: - channel: <notifyChannel> - target: <notifyTarget> - account: <notifyAccount or omit> - reply_to: <notifyReplyTo or omit> - thread_id: <notifyThreadId or omit> When finished, send exactly one completion or failure message using: openclaw message send --channel <channel> --target '<target>' --message '<brief result>' Add --account, --reply-to, or --thread-id only when present above. Do not use openclaw system event or heartbeat. ``` If no trustworthy route exists, say completion auto-notify is unavailable. ## Launch forms Write the worker prompt to a temp file first. This avoids shell quoting bugs when the required notification block contains quotes or newlines. ```bash PROMPT=$(mktemp -t openclaw-worker-prompt.XXXXXX) cat >"$PROMPT" <<'EOF' Task. <notification block> EOF printf 'prompt file: %s\n' "$PROMPT" ``` Use `$PROMPT` when launching from the same shell/session. If using a separate tool call, substitute the printed path. Codex: ```bash bash pty:true background:true workdir:/path/repo command:"codex exec - < \"$PROMPT\"" ``` Claude Code: ```bash bash background:true workdir:/path/repo command:"claude --permission-mode bypassPermissions --print < \"$PROMPT\"" ``` OpenCode: ```bash bash pty:true background:true workdir:/path/repo command:"opencode run < \"$PROMPT\"" ``` ## Long issue-to-PR work 1. Create/reuse a GitHub issue as durable spec. 2. Include issue URL, repo, base branch, expected PR, proof, and notification route. 3. Tell worker to branch, implement, test, run review until no accepted actionable findings, open PR. 4. Return issue URL and `sessionId` immediately. 5. Monitor with `process`; cancel through Task Registry if mirrored there. ## Scratch Codex Codex needs a trusted git repo: ```bash SCRATCH=$(mktemp -d) git -C "$SCRATCH" init PROMPT=$(mktemp -t openclaw-worker-prompt.XXXXXX) cat >"$PROMPT" <<'EOF' Build X. <notification block> EOF printf 'prompt file: %s\n' "$PROMPT" bash pty:true background:true workdir:$SCRATCH command:"codex exec - < \"$PROMPT\"" ``` ## Process actions - `list`: running/recent sessions. - `poll`: status. - `log`: output. - `submit`: send input + Enter. - `write`: raw stdin. - `paste`: paste text. - `kill`: terminate. ## Status to user - Say what started, where, and `sessionId`. - Update only on milestone, worker question, error, user action needed, or finish. - If killed, say why.
Related Skills
More skills in Software Engineering
Accessibility Standards
Comprehensive web accessibility standards based on WCAG 2.2 AA, with 38+ anti-patterns, legal enforcement context (EAA, ADA Title II), WAI-ARIA patterns, and framework-specific fixes for modern web frameworks and libraries.
Accord
Authoring unified specification packages across Business/Development/Design teams via staged elaboration (L0 Vision → L1 Requirements → L2 Team Detail → L3 Acceptance Criteria). No code. Use when authoring cross-team specs, building L0-L3 packages, or aligning Biz/Dev/Design on a single source of truth.
Acquire Codebase Knowledge
Use this skill when the user explicitly asks to map, document, or onboard into an existing codebase. Trigger for prompts like "map this codebase", "document this architecture", "onboard me to this repo", or "create codebase docs". Do not trigger for routine feature implementation, bug fixes, or narrow code edits unless the user asks for repository-level discovery.
Acreadiness Assess
Run the AgentRC readiness assessment on the current repository and produce a static HTML dashboard at reports/index.html. Wraps `npx github:microsoft/agentrc readiness` and hands off rendering to the @ai-readiness-reporter custom agent. Supports policies (--policy) for org-specific scoring. Use when asked to assess, audit, or score the AI readiness of a repo.
Acreadiness Generate Instructions
Generate tailored AI agent instruction files via AgentRC instructions command. Produces .github/copilot-instructions.md (default, recommended for Copilot in VS Code) plus optional per-area .instructions.md files with applyTo globs for monorepos. Use after running /acreadiness-assess to close gaps in the AI Tooling pillar.
Acreadiness Policy
Help the user pick, write, or apply an AgentRC policy. Policies customise readiness scoring by disabling irrelevant checks, overriding impact/level, setting pass-rate thresholds, or chaining org baselines with team overrides. Use when the user asks about strict mode, AI-only scoring, custom weights, CI gating, or wants org-wide standardisation.
Explore Other Categories
Skills from other categories with shared topics
Node Connect
Diagnose OpenClaw Android, iOS, or macOS node pairing, QR/setup code, route, auth, and connection failures.
Acp Router
Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.
Apple Notes
Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.