360 Secure SkillHub
360 安全技能中心

Acpx Coding Default

该 Skill 规定编码、调试、重构、测试与仓库任务默认经由 exec 调用插件本地的 acpx 命令行工具,给出 Codex 与 Claude 两种适配器的一次性调用与命名会话模板、显式 --cwd、quiet 输出格式及失败处理约定;若任务明确要求 ACP runtime 线程或会话行为则改用 ACP runtime。

chaoyang78
chaoyang78
热度 16.02
最近更新 2026-05-21 18:42:37
分类:开发依赖:代码执行应用场景:代码生成 / 调试排错 / 代码审查

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add acpx-coding-default
Metadata
name
acpx-coding-default
description
Use direct acpx CLI via exec as the default coding execution path for Codex- and Claude-focused agents.

acpx-coding-default

Use direct acpx CLI through exec for coding work.

Binary

Always prefer the plugin-local binary:

/opt/homebrew/lib/node_modules/openclaw/extensions/acpx/node_modules/.bin/acpx

Core rules

  • acpx is invoked through exec; it is not a separate built-in tool.
  • For coding, debugging, refactoring, test-running, and repo tasks, default to direct acpx.
  • Always pass explicit --cwd.
  • Prefer --format quiet unless verbose output is requested.
  • Reuse named sessions when continued context is useful.
  • If acpx fails, report the exact failing command and reason before falling back.
  • If the task explicitly asks for ACP runtime thread/session behavior, use ACP runtime instead of this skill.

Adapter defaults

  • Codex-focused agent -> codex
  • Claude-focused agent -> claude

Templates

Codex one-shot

cd "<repo>" && /opt/homebrew/lib/node_modules/openclaw/extensions/acpx/node_modules/.bin/acpx codex exec "<prompt>"

Claude one-shot

cd "<repo>" && /opt/homebrew/lib/node_modules/openclaw/extensions/acpx/node_modules/.bin/acpx claude exec "<prompt>"

Codex session

cd "<repo>" && /opt/homebrew/lib/node_modules/openclaw/extensions/acpx/node_modules/.bin/acpx codex sessions show <name> \
  || /opt/homebrew/lib/node_modules/openclaw/extensions/acpx/node_modules/.bin/acpx codex sessions new --name <name>

cd "<repo>" && /opt/homebrew/lib/node_modules/openclaw/extensions/acpx/node_modules/.bin/acpx codex -s <name> "<prompt>"

Claude session

cd "<repo>" && /opt/homebrew/lib/node_modules/openclaw/extensions/acpx/node_modules/.bin/acpx claude sessions show <name> \
  || /opt/homebrew/lib/node_modules/openclaw/extensions/acpx/node_modules/.bin/acpx claude sessions new --name <name>

cd "<repo>" && /opt/homebrew/lib/node_modules/openclaw/extensions/acpx/node_modules/.bin/acpx claude -s <name> "<prompt>"

Failure handling

  • NO_SESSION: create the named session, then retry once.
  • Binary missing/version issue: check plugin-local binary first.
  • Adapter/toolchain missing: report the exact missing command.
  • Do not silently switch to another execution path and pretend acpx was used. eck plugin-local binary first.
  • Adapter/toolchain missing: report the exact missing command.
  • Do not silently switch to another execution path and pretend acpx was used.