将编码任务委派给后台智能编程代理,自动完成开发与修改工作
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "coding-agent" 技能: 1. 下载 https://raw.githubusercontent.com/openclaw/openclaw/main/skills/coding-agent/SKILL.md 2. 保存为 ~/.claude/skills/coding-agent/SKILL.md 3. 装好后重载技能,告诉我可以用了
请把“用户资料导出为 CSV”功能委派给后台 coding-agent 完成。技术栈是 Node.js + Express,要求新增导出接口、字段映射、权限校验和单元测试,并在完成后汇总改动文件与运行方式。
返回已完成的功能实现结果,包括代码改动说明、涉及文件、测试情况与后续操作建议。
请委派 coding-agent 重构这个 Python 支付模块,目标是拆分过长函数、补充类型注解、移除重复逻辑,并确保现有 API 行为不变。请输出重构说明、风险点和建议验证步骤。
得到结构更清晰的重构方案与代码结果,并附带兼容性说明和验证建议。
请将这个 Django 接口的 500 报错修复任务交给 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.
background:true.pty:true.claude --permission-mode bypassPermissions --print.openclaw message send.process; do not kill slow workers without cause.~/Projects/openclaw; use an isolated checkout.Append this shape to every worker prompt with real values:
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.
Write the worker prompt to a temp file first. This avoids shell quoting bugs when the required notification block contains quotes or newlines.
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 pty:true background:true workdir:/path/repo command:"codex exec - < \"$PROMPT\""
Claude Code:
bash background:true workdir:/path/repo command:"claude --permission-mode bypassPermissions --print < \"$PROMPT\""
OpenCode:
bash pty:true background:true workdir:/path/repo command:"opencode run < \"$PROMPT\""
sessionId immediately.process; cancel through Task Registry if mirrored there.Codex needs a trusted git repo:
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\""
list: running/recent sessions.poll: status.log: output.submit: send input + Enter.write: raw stdin.paste: paste text.kill: terminate.sessionId.通过 Obsidian CLI 读写检索知识库笔记、任务、链接与插件配置
让开发者异步并行运行 Codex 任务,节省上下文并提升编码效率。