AgentSkillsCN

coding-agent

运行 Codex CLI、Claude Code、OpenCode 或 Pi Coding Agent,实现程序化代码生成与审查。

SKILL.md
--- frontmatter
name: coding-agent
description: Run Codex CLI, Claude Code, OpenCode, or Pi Coding Agent for programmatic code generation and review.
metadata: {"openclaw":{"emoji":"🧩","requires":{"anyBins":["claude","codex","opencode","pi"]}}}

Coding Agent

Use coding agents (Codex, Claude Code, OpenCode, Pi) for automated development tasks.

Quick Start

bash
# Codex (needs git repo)
codex exec "Add error handling to API calls"

# Claude Code
claude "Refactor the auth module"

# OpenCode
opencode run "Write unit tests"

# Pi
pi "Add dark mode support"

Background Mode

For longer tasks, run in background and monitor:

bash
# Start in background
codex exec --full-auto "Build a REST API" &

# Monitor output
tail -f /tmp/codex-output.log

Best Practices

  • Always run in a git repository
  • Use --full-auto for autonomous work
  • Monitor progress for long-running tasks
  • Review changes before committing