← 返回 Skills 市场
spyfree

ACPX Codex Playbook

作者 Li Xin · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
339
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install acpx-codex-playbook
功能描述
Practical playbook for running Codex through acpx in persistent sessions, especially when the task needs reliable file creation, local dependency installs, s...
使用说明 (SKILL.md)

acpx-codex-playbook

Use acpx as a structured control plane for Codex. Prefer persistent sessions, prompt files, and shell-based file generation over fragile one-shot prompts and tool-native file writes.

Quick start

Run this default flow for any non-trivial task:

acpx codex sessions new --name task
acpx codex set-mode -s task full-access
acpx codex -s task -f prompt.txt

Prefer this over acpx codex exec ... when the task needs iteration, file output, validation, or retries.

Workflow

1. Choose session type

Use exec only for small one-shot tasks.

Use a persistent session when the task involves any of the following:

  • generating files
  • multiple retries
  • long prompts
  • validation steps
  • local installs or virtual environments
  • deliverables such as .pptx, .docx, reports, videos, or scripts

2. Set mode explicitly

For practical work, set mode before prompting:

acpx codex set-mode -s task full-access

Interpretation:

  • read-only: inspect only
  • auto: moderate default behavior
  • full-access: broader session capability, including easier file edits and broader path/network freedom

Do not assume full-access means sudo or root. It relaxes the ACP session; it does not guarantee system-level privilege escalation.

3. Use prompt files, not huge shell strings

For long or delicate instructions, always write a prompt file and pass -f:

cat > prompt.txt \x3C\x3C'TXT'
Task: ...
Constraints: ...
Outputs: ...
Validation: ...
TXT

acpx codex -s task -f prompt.txt

This avoids shell quoting failures and makes retries reproducible.

4. Prefer shell/Python file writes over ACP fs writes

If the task must create or rewrite files, instruct Codex to prefer:

  • shell heredocs
  • python - \x3C\x3C'PY' ... PY
  • direct command-line generation

Prefer these over tool-native fs/write_text_file style edits when prior attempts showed permission failures.

Recommended instruction snippet:

If built-in file-editing tools fail, write files via shell heredoc or Python scripts instead of ACP fs write calls.

5. Use writable output paths first

For fragile generation tasks, write outputs under /tmp first, validate them, then move/copy them into the target workspace.

Recommended pattern:

  • generate under /tmp/...
  • validate structure and existence
  • copy to final destination only after success

This is especially useful for generated binaries like .pptx.

6. Validate before declaring success

Always ask Codex to verify outputs.

Examples:

  • file exists
  • zip/XML structure parses for .pptx
  • image dimensions or PDF page count
  • report file with output path, validation result, and model if visible

Practical patterns

Pattern: generated deliverables

For PPT/report/document generation, require all of the following in the prompt:

  • exact output path
  • exact report path
  • validation steps
  • final two-line summary with model/path if possible

See references/ppt-playbook.md for a concrete template.

Pattern: local dependency installs

If non-stdlib packages are needed, prefer project-local installs:

python3 -m venv .venv
. .venv/bin/activate
pip install \x3Cpackage>

Avoid assuming global install rights. Use system-level installs only when explicitly intended and actually permitted by the host.

Pattern: troubleshooting failed writes

If touch or shell writes work but ACP file edits fail, treat it as an ACP handler or sandbox-path issue, not proof that Codex itself lacks capability. Switch the generation strategy to shell/Python writes.

Decision rules

  • If the task is small and read-heavy: exec is acceptable.
  • If the task must create deliverables: use a persistent session.
  • If the prompt is long: use -f prompt.txt.
  • If file editing fails once: switch to shell/Python write strategy.
  • If dependencies are missing: try local .venv install before changing system state.
  • If a binary artifact is required: generate in /tmp, validate, then move.

Anti-patterns

Avoid these common failure modes:

  • stuffing long multilingual prompts directly into one shell string
  • assuming full-access equals sudo/root
  • relying only on ACP fs writes for large generated files
  • declaring success before validating output structure
  • writing the final artifact directly into a path that may be sandbox-restricted

References

  • Read references/ppt-playbook.md when the task is to generate a PPT or similar structured binary deliverable via acpx/Codex.
  • Read references/troubleshooting.md when acpx sessions start but file creation, mode behavior, or sandbox boundaries are unclear.
安全使用建议
This is a how-to playbook and appears internally consistent. Before using it, understand that following its advice will cause the agent (or you) to run shell commands, create files under /tmp, and potentially install Python packages into a local venv — these actions modify system state and may require network access for pip installs. If you are concerned about safety: run the workflow in an isolated/test environment, avoid placing secrets into prompt files, review generated commands before execution (or run in read-only/exec mode for verification), and validate artifacts in /tmp before moving them to persistent locations. The skill does not request credentials or hidden network endpoints.
功能分析
Type: OpenClaw Skill Name: acpx-codex-playbook Version: 1.0.0 The skill bundle provides a playbook for using the 'acpx' tool to execute code and manage files, explicitly encouraging the use of 'full-access' modes and shell-based bypasses for sandbox or permission restrictions (SKILL.md, references/troubleshooting.md). While these instructions facilitate arbitrary code execution and file system manipulation, they appear intended for task automation and reliability rather than clear malicious exploitation or data exfiltration.
能力评估
Purpose & Capability
Name/description (acpx + Codex persistent sessions, file creation, local installs, deliverables) align with the actual content: only runtime guidance for using acpx, using /tmp, using venvs, and preferring shell/Python file writes. There are no unrelated env variables, binaries, or config paths required.
Instruction Scope
The SKILL.md explicitly instructs the agent/operator to set session mode to 'full-access', run shell heredocs, create files under /tmp, and prefer project-local pip installs in virtualenvs. These are coherent with the playbook's purpose but mean the agent (or operator following it) will run shell commands and may install packages — actions that change system state. The instructions do not direct reading or exfiltrating unrelated system secrets or contacting unexpected external endpoints.
Install Mechanism
No install spec is present (instruction-only), so nothing is written to disk by the skill itself. The playbook recommends runtime actions (creating a .venv and pip installing) which are normal operational guidance; there is no packaged download URL or extract step in the skill metadata to raise additional install risk.
Credentials
The skill requests no environment variables, credentials, or config paths. Recommendations to use /tmp, local .venv, and 'full-access' are proportional to the stated goal of producing local artifacts and resolving filesystem/sandbox issues.
Persistence & Privilege
The skill is not always-enabled and is user-invocable (defaults). It does recommend setting an acpx session to 'full-access' during operation; while that expands session-level capabilities, the skill itself does not request persistent platform-level privileges or modify other skills or system-wide agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install acpx-codex-playbook
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /acpx-codex-playbook 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: practical acpx+Codex workflow, prompt-file pattern, full-access guidance, shell-write fallback, troubleshooting, and PPT generation playbook.
元数据
Slug acpx-codex-playbook
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

ACPX Codex Playbook 是什么?

Practical playbook for running Codex through acpx in persistent sessions, especially when the task needs reliable file creation, local dependency installs, s... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 339 次。

如何安装 ACPX Codex Playbook?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install acpx-codex-playbook」即可一键安装,无需额外配置。

ACPX Codex Playbook 是免费的吗?

是的,ACPX Codex Playbook 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

ACPX Codex Playbook 支持哪些平台?

ACPX Codex Playbook 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 ACPX Codex Playbook?

由 Li Xin(@spyfree)开发并维护,当前版本 v1.0.0。

💬 留言讨论