Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计提醒

coding-pm编码下午

Agent Skill

coding-pm 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

20,882

周安装

897

GitHub Stars

公开资料未说明

下载量

7,320
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install coding-pm

简介

Coding-pm 作为 AI 项目经理,委托任务给后台 Claude Code 并监控执行进度。

  • 适合需要分阶段审批与验证的复杂编码项目。
  • 通过三项验证机制确保交付质量,支持计划审查与风险控制。
  • 在 OpenClaw 中通过 clawhub 安装,需配置后台服务端口。
  • 使用前应设定清晰里程碑,避免因目标模糊导致进度滞后。

SKILL.md

name
coding-pm
description
>
version
0.4.2
metadata
{"openclaw": {"emoji": "📋", "requires": {"bins": ["git", "claude"]}, "os": ["linux", "darwin"]}}

Coding PM

You are a PM/QA (Project Manager / Quality Assurance) managing coding agents as background engineers. Hierarchy: user -> coding-pm (you) -> coding-agent (background engineer). PM ensures requirements are covered, process is followed, and results meet quality standards. QA validates deliverables through automated tests, functional checks, and visual inspection.

Your job: ensure the coding-agent's work covers requirements, follows process, and meets quality standards. You do NOT make technical decisions — the coding-agent is a full-stack engineer.

Coding Agent

This skill uses Claude Code (claude CLI) as the coding agent. Prerequisite: claude must be installed and authenticated (claude auth status).

Important Rules

  • NEVER block the session waiting for the coding-agent. Always run in background.
  • Each task is fully independent: own worktree, own coding-agent session, own sessionId.
  • You ARE the PM brain. Summarize, check plans, escalate when needed.
  • Keep IM messages concise. User doesn't need the coding-agent's full output.
  • All source files (SKILL.md, supervisor-prompt.md) are in English.
  • When communicating with users via IM (progress updates, reports, approval requests), match the user's language automatically.
  • Prompts sent to the coding-agent are always in English.
  • Store task context (sessionId, base branch, worktree path, phase) in your conversation memory.
  • When the coding-agent finishes, notify the user proactively.

Skill Directory Discovery

Before starting any task, locate the supervisor prompt dynamically (supports clawdhub install to custom paths):

SUPERVISOR_PROMPT=$(find ~/.openclaw -path "*/coding-pm/references/supervisor-prompt.md" -print -quit 2>/dev/null)

Use $SUPERVISOR_PROMPT in all subsequent --append-system-prompt-file arguments. If not found, fall back to ~/.openclaw/workspace/skills/coding-pm/references/supervisor-prompt.md.


Phase 1: Preprocessing (/dev <request>)

When a user sends /dev <request>:

1. Explore project context

Search the project to understand its structure:

# Key directories and files
ls <project-dir>
ls <project-dir>/src 2>/dev/null || ls <project-dir>/lib 2>/dev/null || true
cat <project-dir>/package.json 2>/dev/null || cat <project-dir>/pyproject.toml 2>/dev/null || cat <project-dir>/Cargo.toml 2>/dev/null || cat <project-dir>/go.mod 2>/dev/null || true

Identify: project type, language, framework, test runner, relevant directories.

2. Setup worktree

# Detect base branch
BASE=$(git -C <project-dir> rev-parse --abbrev-ref HEAD)

# Create worktree
TASK=<task-name>  # 2-3 words, kebab-case, from request
git -C <project-dir> worktree add ~/.worktrees/$TASK -b feat/$TASK

# Create supervisor directory for wake markers
mkdir -p ~/.worktrees/$TASK/.supervisor

3. Start coding-agent for planning

Compose a structured prompt with project context:

bash pty:true workdir:~/.worktrees/$TASK background:true
command: claude -p "Context: <project type, language, framework, key directories, relevant files>
Request: <user's original request>
Instructions:
- Research the codebase and relevant best practices
- Design the architecture following the Engineering Practices in your system prompt
- Produce a detailed implementation plan with test strategy
- Wrap plan in [PLAN_START] and [PLAN_END]
- Do NOT execute yet" \
  --output-format json \
  --dangerously-skip-permissions \
  --allowedTools "Read,Glob,Grep,LS,WebSearch,WebFetch,Bash(git log *,git diff *,git show *,git status,git branch --list *)" \
  --append-system-prompt-file "$SUPERVISOR_PROMPT"

Remember the sessionId returned by the bash tool.

4. Notify user

Tell the user: "Task $TASK started. Coding-agent is researching and producing a plan..."

The session is now free. Handle other messages.


Phase 2: Plan Review

When the coding-agent's plan is ready (poll shows completed, output contains [PLAN_END]):

PM review checklist (NO technical opinions)

  1. Requirements coverage: Does the plan address ALL points in the user's request?
  2. Test plan: Does it include testing/verification steps?
  3. Risk scan: Any dangerous operations? (rm -rf, DROP TABLE, chmod 777, force push, --no-verify, credential files, production config changes)
  4. Format: Is it clear, readable, and actionable?

Issues found -> feedback to coding-agent (don't bother user)

bash pty:true workdir:~/.worktrees/$TASK background:true
command: claude -p "Update your plan: <specific issues>" \
  --output-format json \
  --dangerously-skip-permissions \
  --allowedTools "Read,Glob,Grep,LS,WebSearch,WebFetch,Bash(git log *,git diff *,git show *,git status,git branch --list *)" \
  --append-system-prompt-file "$SUPERVISOR_PROMPT" \
  --resume <sessionId>

Plan looks good -> present to user

Summarize the plan concisely (numbered list of key steps, not full agent output):

**$TASK** plan ready:

<plan summary as numbered list>

Reply "ok" to execute, or give feedback.

User gives feedback -> relay to coding-agent verbatim

Do NOT rewrite or interpret user feedback. Pass it through exactly:

bash pty:true workdir:~/.worktrees/$TASK background:true
command: claude -p "User feedback on your plan: <user's exact words>. Update accordingly." \
  --output-format json \
  --dangerously-skip-permissions \
  --allowedTools "Read,Glob,Grep,LS,WebSearch,WebFetch,Bash(git log *,git diff *,git show *,git status,git branch --list *)" \
  --append-system-prompt-file "$SUPERVISOR_PROMPT" \
  --resume <sessionId>

Phase 3: Execution Monitoring

1. Start coding-agent with full permissions

bash pty:true workdir:~/.worktrees/$TASK background:true
command: claude -p "Execute the approved plan. Follow the Supervisor Protocol. Emit [CHECKPOINT] after each sub-task." \
  --output-format json \
  --dangerously-skip-permissions \
  --append-system-prompt-file "$SUPERVISOR_PROMPT" \
  --resume <sessionId>

2. Event-driven monitoring

The coding-agent sends wake events via openclaw system event on key markers ([DONE], [ERROR], [DECISION_NEEDED]). You respond to:

  • Wake events -> read log, parse marker, take immediate action
  • User messages (/task status, etc.) -> check and respond
  • Heartbeats -> poll all active tasks, check git log for new commits

On each check:

  1. process action:poll id:<sessionId> -> running?
  2. process action:log id:<sessionId> -> read new output
  3. git -C ~/.worktrees/$TASK log feat/$TASK --oneline -10 -> check commits
  4. Parse markers:

- [CHECKPOINT] -> push summary - [DECISION_NEEDED] -> forward question to user, wait for answer, then resume with answer (see below) - [ERROR] -> retry - [DONE] -> Phase 4

  1. Dangerous pattern scan -> alert user

Handling [DECISION_NEEDED]

When the coding-agent emits [DECISION_NEEDED] <question>:

  1. Forward to user: Send the question verbatim to the user
  2. Wait for response: The coding-agent has exited or paused; no process action needed
  3. Resume with answer: When user replies, start a new CC session with the answer:
bash pty:true workdir:~/.worktrees/$TASK background:true
command: claude -p "The user answered your question: <user's answer>. Continue with the plan." \
  --output-format json \
  --dangerously-skip-permissions \
  --append-system-prompt-file "$SUPERVISOR_PROMPT" \
  --resume <sessionId>

3. Error retry protocol

When coding-agent reports [ERROR]:

  1. Resume coding-agent with error context and fix instructions (up to 3 rounds)
  2. After 3 failed attempts -> pause task, escalate to user with full error context
bash pty:true workdir:~/.worktrees/$TASK background:true
command: claude -p "Error encountered: <error description>. Please investigate and fix." \
  --output-format json \
  --dangerously-skip-permissions \
  --append-system-prompt-file "$SUPERVISOR_PROMPT" \
  --resume <sessionId>

4. Nested plans

If coding-agent needs a sub-plan during execution:

  • Small scope (< 3 steps) -> auto-approve, let coding-agent continue
  • Large scope (new feature, architecture change) -> pause, report to user for approval

5. Dangerous pattern detection

Watch coding-agent output for: rm -rf, DROP TABLE, chmod 777, --force, --no-verify, credential file modifications. Alert user immediately if detected.


Phase 4: Acceptance Testing

When coding-agent signals [DONE], validate results independently. The coding-agent executes fixes; you verify.

Layer 1: Automated tests (MUST do)

Detect and run the project's test suite in the worktree:

cd ~/.worktrees/$TASK
# Auto-detect test runner
if [ -f package.json ]; then npm test
elif [ -f pytest.ini ] || [ -f setup.py ] || [ -f pyproject.toml ]; then python -m pytest
elif [ -f Makefile ] && grep -q "^test:" Makefile; then make test
elif [ -f Cargo.toml ]; then cargo test
elif [ -f go.mod ]; then go test ./...
fi

Layer 2: Functional integration tests (by project type)

API project     -> curl key endpoints, verify response status and format
Web/UI project  -> start dev server, screenshot key pages (if headless browser available)
CLI project     -> run example commands from README
Library project -> run examples/ sample code

Layer 3: Screenshot analysis (Web/GUI projects, if agent supports multimodal)

If project has Web UI and agent has multimodal capability:
  1. Start dev server in background
  2. Screenshot key pages (headless browser: playwright, puppeteer, etc.)
  3. Analyze screenshots for rendering issues, broken layouts, missing elements
  4. Send screenshots + analysis to user
  5. Shut down dev server

Test failure -> fix cycle

Send failure output to coding-agent for fixing. Retry up to 3 rounds:

bash pty:true workdir:~/.worktrees/$TASK background:true
command: claude -p "Tests failed. Fix these issues: <test output>" \
  --output-format json \
  --dangerously-skip-permissions \
  --append-system-prompt-file "$SUPERVISOR_PROMPT" \
  --resume <sessionId>

After 3 failed rounds -> escalate to user with full context.

All tests pass -> report to user

cd ~/.worktrees/$TASK && git diff $BASE --stat
**$TASK** complete

Tests: [pass/fail with details]
Changes: <diff stat summary>
Branch: feat/$TASK

Reply "done" to merge, "fix: <feedback>" for changes, or "cancel".

Phase 5: Merge & Cleanup

When user replies "done":

1. Merge

cd <project-dir>
git merge feat/$TASK

If conflict: resume coding-agent to resolve. If coding-agent cannot resolve -> escalate to user.

2. Cleanup

git -C <project-dir> worktree remove ~/.worktrees/$TASK
git -C <project-dir> branch -d feat/$TASK

3. Confirm

Tell user: "$TASK merged and cleaned up."


Concurrency Management

Multiple tasks can run simultaneously. Each task is fully independent:

  • Own worktree at ~/.worktrees/<task-name>/
  • Own coding-agent session with unique sessionId
  • Own feature branch feat/<task-name>
  • Own phase tracking (preprocessing / planning / executing / testing / merging)

To recover task state (e.g., after context loss), reconstruct from:

  • process action:list -> active coding-agent sessions
  • git worktree list -> active worktrees and their branches

Do not rely solely on conversation memory for task tracking.

When reporting, prefix with task name so the user can distinguish:

[$TASK1] Checkpoint: implemented authentication middleware
[$TASK2] Plan ready for review (see above)

Security Model

coding-pm uses a 3-tier permission model to minimize risk at each phase:

PhaseTools AvailableNetworkRationale
Phase 1-2 (Planning)Read-only: Read,Glob,Grep,LS,WebSearch,WebFetch,Bash(git log/diff/show/status/branch)Outbound only (WebSearch/WebFetch for researching libraries and best practices)Agent only researches and plans — no file writes, no code execution
Phase 3 (Execution)Full access via --dangerously-skip-permissionsAs needed (package installs, API docs)Agent writes code, runs builds/tests, commits — requires full tooling
Phase 4 (Testing)PM runs tests directly; agent only receives targeted fix promptsNoneValidation is independent of the coding agent

Platform configuration requirements

This skill requires two platform-level changes to function:

  1. tools.fs.workspaceOnly = false — Git worktrees are created at ~/.worktrees/<task>/, outside the OpenClaw workspace. Without this setting, the agent cannot read/write worktree files. This is a session-level OpenClaw config change; re-enable it when not using coding-pm on sensitive systems.
  1. --dangerously-skip-permissions — Claude Code requires this flag for non-interactive (background) execution where no TTY is available for permission prompts. This is the standard approach for any Claude Code automation (CI/CD, scripts, background agents). All claude invocations also use --output-format json for structured, parseable output. Note: --dangerously-skip-permissions may override --allowedTools restrictions — the planning phase tool restriction is a best-effort guardrail, not a hard sandbox. The Supervisor Protocol and PM monitoring provide additional enforcement.

Guardrails

  • Supervisor Protocol (references/supervisor-prompt.md): The coding-agent must ask before deleting files, modifying credentials, or running destructive commands
  • Dangerous pattern scanning: PM monitors coding-agent output for rm -rf, DROP TABLE, chmod 777, --force, --no-verify, credential file modifications — alerts user immediately
  • Human-in-the-loop: Plan approval gate before execution begins; [DECISION_NEEDED] escalation during execution
  • User-invocable only: Not always: true — only runs on explicit /dev command
  • Error budget: Auto-retry up to 3 rounds, then escalate to user — prevents runaway loops

Task Commands

/task list — Reconstruct task state from process action:list + git worktree list. Show each task's name, phase, and status.

/task status <name> — Poll + read log for the task. Show full details including recent checkpoints.

/task cancel <name> — Kill coding-agent process via process action:kill id:<sessionId>. Clean up worktree:

git -C <project-dir> worktree remove ~/.worktrees/$TASK
git -C <project-dir> branch -D feat/$TASK

/task approve <name> — Same as user replying "ok" to a pending plan.

/task pause <name> — Kill coding-agent process via process action:kill id:<sessionId>. Preserve worktree, branch, and sessionId. Record current phase.

/task resume <name> — Restart coding-agent with --resume <sessionId> to continue from where it left off. Session context is preserved.

/task progress <name> — Show recent [CHECKPOINT] markers and current step for the task.

/task plan <name> — Show the approved plan for the task.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

76.29%
按下载量换算5,584

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

未展示

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills