Token导航 LogoToken导航TokenDH.com
AI 工具执行命令github未标认证来源可访问clear审计异常

coding-agent编码剂

Agent Skill

coding-agent 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

32,592

周安装

1,418

GitHub Stars

366,406

下载量

11,424
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:coding-agent(编码剂)
来源仓库:https://github.com/steipete/clawdis
仓库路径:skills/coding-agent
安装命令:
npx skills add https://github.com/steipete/clawdis --skill coding-agent
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/steipete/clawdis --skill coding-agent

简介

通过后台 bash 进程将编码任务委托给 Codex、Claude Code、Pi 或 OpenCode 代理。

  • 支持四种编码代理(Codex、Claude Code、Pi、OpenCode),具有特定于代理的执行模式:Codex/Pi/OpenCode 需要 PTY;克劳德代码使用 --print --permission-modebypassPermissions
  • 无PTY
  • 通过流程工具操作(日志、轮询、写入、提交、终止)对长时间运行的任务进行后台执行和会话监控
  • 专为功能构建、PR 审查、重构和文件探索迭代编码而设计;包括使用 git worktrees 并行修复问题的模式
  • Codex 需要 git 存储库(使用 temp init 进行临时工作);尊重工作目录隔离以防止不相关的文件访问

SKILL.md

Coding Agent (always backgrounded)

Use bash with background:true for all coding-agent work. Do not use a foreground one-shot path here. Start the agent, get the sessionId, monitor with process, and require the worker to notify the user directly when it finishes.

⚠️ PTY Mode: Codex/Pi/OpenCode yes, Claude Code no

For Codex, Pi, and OpenCode, PTY is required:

# Correct for Codex/Pi/OpenCode
bash pty:true background:true command:"codex exec 'Your prompt'"

For Claude Code (claude CLI), use --print --permission-mode bypassPermissions instead. Do not use PTY for Claude Code here.

# Correct for Claude Code
bash background:true command:"claude --permission-mode bypassPermissions --print 'Your task'"

# Wrong for Claude Code (PTY, wrong flags, no background)
bash pty:true command:"claude --dangerously-skip-permissions 'task'"

Bash Tool Parameters

ParameterTypeDescription
commandstringThe shell command to run
ptybooleanUse for Codex/Pi/OpenCode
workdirstringWorking directory
backgroundbooleanAlways true for this skill
timeoutnumberTimeout in seconds
elevatedbooleanRun on host instead of sandbox (if allowed)

Process Tool Actions

ActionDescription
listList all running/recent sessions
pollCheck if session is still running
logGet session output (with optional offset/limit)
writeSend raw data to stdin
submitSend data + newline (like typing and pressing Enter)
send-keysSend key tokens or hex bytes
pastePaste text (with optional bracketed mode)
killTerminate the session

Mandatory Pattern

Every coding-agent run follows this pattern:

  1. Capture the notification route from the current conversation before spawning:

- notifyChannel - notifyTarget - notifyAccount (if applicable) - notifyReplyTo (if replying to a specific message is desired) - notifyThreadId (Telegram topic / Slack thread when applicable)

  1. Start the coding CLI with background:true immediately.
  2. Include the notification route in the worker prompt and require the worker to call openclaw message send on completion.
  3. Monitor with process action:log / poll.
  4. If the worker needs input or fails before notifying, handle that explicitly yourself. Do not rely on heartbeat.

If you do not have a trustworthy notification route, say so and do not claim that completion will notify the user automatically.


Notification Route

Do not rely on:

  • openclaw system event
  • tools.exec.notifyOnExit
  • heartbeat delivery
  • HEARTBEAT.md

Use a direct outbound completion message instead:

openclaw message send --channel <channel> --target '<target>' --message '<text>'

Add optional routing flags only when they are real and applicable:

  • --account <id>
  • --reply-to <messageId>
  • --thread-id <threadId>

openclaw message send is a direct outbound send. It does not depend on heartbeat being enabled.

Completion Prompt Snippet

Append something like this to every worker prompt:

Notification route for completion:
- channel: <notifyChannel>
- target: <notifyTarget>
- account: <notifyAccount or omit>
- reply_to: <notifyReplyTo or omit>
- thread_id: <notifyThreadId or omit>

When the task is completely finished, send exactly one completion message back to the user with openclaw message send using that route.
If the task fails fatally, send exactly one failure message back to the user with openclaw message send using that route.
Do not use openclaw system event. Do not rely on heartbeat. Do not skip the completion/failure message.

Completion Command Template

openclaw message send \
  --channel <notifyChannel> \
  --target '<notifyTarget>' \
  --message 'Done: <brief summary>'

Optional additions:

  --account <notifyAccount> \
  --reply-to <notifyReplyTo> \
  --thread-id <notifyThreadId>

Quick Start

For scratch Codex work, create a temp git repo first, then start the worker in the background with the completion route injected into the prompt:

SCRATCH=$(mktemp -d)
cd "$SCRATCH" && git init

bash pty:true workdir:$SCRATCH background:true command:"codex exec 'Your prompt here.

Notification route for completion:
- channel: <notifyChannel>
- target: <notifyTarget>
- account: <notifyAccount or omit>
- reply_to: <notifyReplyTo or omit>
- thread_id: <notifyThreadId or omit>

When the task is completely finished, send exactly one completion message back to the user with openclaw message send using that route.
If the task fails fatally, send exactly one failure message back to the user with openclaw message send using that route.
Do not use openclaw system event. Do not rely on heartbeat. Do not skip the completion/failure message.'"

Codex refuses to run outside a trusted git directory. Reuse this same notify-route injection block in every example below; only the task-specific prompt body should change.


Codex CLI

Model: gpt-5.2-codex is the default (set in ~/.codex/config.toml)

Flags

FlagEffect
exec "prompt"One-shot execution inside the worker CLI
--full-autoSandboxed but auto-approves in workspace
--yoloNo sandbox, no approvals

Building/Creating

# Always background immediately
bash pty:true workdir:~/project background:true command:"codex exec --full-auto 'Build a dark mode toggle'"

# More autonomy
bash pty:true workdir:~/project background:true command:"codex --yolo 'Refactor the auth module'"

Reviewing PRs

Never review PRs in OpenClaw's own project folder. Clone to a temp folder or use a worktree.

REVIEW_DIR=$(mktemp -d)
git clone https://github.com/user/repo.git $REVIEW_DIR
cd $REVIEW_DIR && gh pr checkout 130

bash pty:true workdir:$REVIEW_DIR background:true command:"codex review --base origin/main"

Or:

git worktree add /tmp/pr-130-review pr-130-branch
bash pty:true workdir:/tmp/pr-130-review background:true command:"codex review --base main"

Batch PR Reviews

git fetch origin '+refs/pull/*/head:refs/remotes/origin/pr/*'

bash pty:true workdir:~/project background:true command:"codex exec 'Review PR #86. git diff origin/main...origin/pr/86'"
bash pty:true workdir:~/project background:true command:"codex exec 'Review PR #87. git diff origin/main...origin/pr/87'"

process action:list
process action:log sessionId:XXX

Claude Code

bash workdir:~/project background:true command:"claude --permission-mode bypassPermissions --print 'Your task'"

OpenCode

bash pty:true workdir:~/project background:true command:"opencode run 'Your task'"

Pi Coding Agent

# Install: npm install -g @mariozechner/pi-coding-agent
bash pty:true workdir:~/project background:true command:"pi 'Your task'"

# Non-interactive mode
bash pty:true workdir:~/project background:true command:"pi -p 'Summarize src/'"

# Different provider/model
bash pty:true workdir:~/project background:true command:"pi --provider openai --model gpt-4o-mini -p 'Your task'"

Parallel Issue Fixing with git worktrees

git worktree add -b fix/issue-78 /tmp/issue-78 main
git worktree add -b fix/issue-99 /tmp/issue-99 main

bash pty:true workdir:/tmp/issue-78 background:true command:"pnpm install && codex --yolo 'Fix issue #78: <description>. Commit and push after review. Send the completion message with openclaw message send using the provided notify route.'"
bash pty:true workdir:/tmp/issue-99 background:true command:"pnpm install && codex --yolo 'Fix issue #99 from the approved ticket summary. Implement only the in-scope edits. Send the completion message with openclaw message send using the provided notify route.'"

process action:list
process action:log sessionId:XXX

⚠️ Rules

  1. Use the right execution mode per agent:

- Codex/Pi/OpenCode: pty:true - Claude Code: --print --permission-mode bypassPermissions (no PTY required)

  1. Respect tool choice - if user asks for Codex, use Codex.

- Orchestrator mode: do NOT hand-code patches yourself. - If an agent fails/hangs, respawn it or ask the user for direction, but don't silently take over.

  1. Be patient - don't kill sessions because they're "slow"
  2. Monitor with process:log - check progress without interfering
  3. --full-auto for building - auto-approves changes
  4. vanilla for reviewing - no special flags needed
  5. Parallel is OK - run many Codex processes at once for batch work
  6. NEVER start Codex inside your OpenClaw state directory ($OPENCLAW_STATE_DIR, default ~/.openclaw) - it'll read your soul docs and get weird ideas about the org chart!
  7. NEVER checkout branches in ~/Projects/openclaw/ - that's the LIVE OpenClaw instance!
  8. Always inject the Completion Prompt Snippet into the worker prompt before spawning. The simplified examples below omit it for brevity — never spawn a worker without it.

Progress Updates (Critical)

When you spawn a coding agent in the background, keep the user in the loop.

  • Send 1 short message when you start: what is running and where.
  • Update only when something changes:

- a milestone completes - the worker asks a question - you hit an error or need user action - the worker finishes

  • If you kill a session, immediately say you killed it and why.
  • If you are expecting the worker to self-notify with openclaw message send, say that clearly in your start update.

This prevents the user from seeing only a missing reply and having no idea what happened.


Rules

  1. Always background immediately.

- Use background:true for every coding-agent launch. - Do not use the foreground one-shot path in this skill.

  1. Use the right execution mode per agent.

- Codex/Pi/OpenCode: pty:true - Claude Code: --print --permission-mode bypassPermissions

  1. Respect tool choice.

- If the user asked for Codex, use Codex. - Orchestrator mode: do not hand-code the patch yourself instead of using the requested coding agent.

  1. Capture notify routing before spawn.

- Completion messaging must have a real route.

  1. Use direct completion messaging.

- Require openclaw message send. - Do not rely on openclaw system event or heartbeat.

  1. Do not silently take over.

- If a worker fails or hangs, respawn it or ask for direction. Do not quietly switch to hand-editing.

  1. Monitor with process.

- process action:log is the default low-friction check.

  1. Be patient.

- Do not kill sessions just because they are slow.

  1. Parallel is OK.

- Many background Codex sessions can run at once.

  1. Never start Codex in ~/.openclaw/.
  2. Never checkout branches in ~/Projects/openclaw/.

Learnings

  • PTY is essential for Codex/Pi/OpenCode.
  • Git repo required: Codex needs a trusted git directory.
  • Use exec under background orchestration: short and long tasks follow the same path now.
  • submit vs write: use submit to send input plus Enter.
  • Direct message send beats heartbeat for completion notification when the user must be told immediately and heartbeat may be disabled.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

28.59%
按下载量换算3,266

openclaw

21.09%
按下载量换算2,409

Gemini CLI

16.96%
按下载量换算1,938

Codex

12.73%
按下载量换算1,454

OpenCode

8.37%
按下载量换算956

Antigravity

3.26%
按下载量换算372

安全审计

Gen Agent Trust Hub

可疑

Socket

可疑

Snyk

未通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/steipete/clawdis --skill coding-agent;npx skills add steipete/clawdis --skill "coding-agent" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills