← 返回 Skills 市场
engibarian

Acp Fallback

作者 engibarian · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
152
总下载
0
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install acp-fallback
功能描述
Automatically retries ACP vendors in priority order (codex, claude, pi, API) on failure, returning the first successful result with fallback logging.
使用说明 (SKILL.md)

ACP Fallback System - Resilient Agent Execution\r

\r

Overview\r

This skill provides automatic fallback for ACP vendors (Codex → Claude → Pi → API) and model fallback for subagents. If one vendor fails, it automatically tries the next.\r \r

Usage\r

\r

For Agents - Use acp_exec Function\r

\r

# Instead of direct acpx calls, use this wrapper\r
source scripts/acp-fallback.sh && acp_exec "your task here"\r
```\r
\r
### ACP Vendor Priority (in order):\r
1. **codex** - Primary (fast, reliable)\r
2. **claude** - Fallback #1 (high quality)\r
3. **pi** - Fallback #2 (lightweight)\r
4. **direct-api** - Final fallback (uses OpenClaw's built-in models)\r
\r
### What Happens on Failure:\r
- Vendor fails → Auto-retry with next vendor\r
- All vendors fail → Log error, return failure status\r
- Success → Return result immediately\r
\r
## Implementation\r
\r
### Core Functions\r
\r
```bash\r
# acp_exec - Main entry point\r
# Usage: acp_exec "task description"\r
# Returns: Vendor used + result\r
\r
# acp_exec_with_fallback - Full fallback chain\r
# Tries: codex → claude → pi → direct-api\r
# Returns: First successful result\r
\r
# model_fallback - For subagent model switching\r
# Tries: MiniMax → DeepSeek → OpenAI → GLM-5\r
```\r
\r
### Agent Integration\r
\r
Agents should call these functions instead of direct acpx commands:\r
- Replace `npx acpx codex exec "..."` with `acp_exec "..."`\r
- Replace single-model subagent with fallback-enabled wrapper\r
\r
## Error Handling\r
\r
- Network errors: Retry with next vendor after 3s\r
- Auth errors: Skip to next vendor immediately  \r
- Rate limits: Wait 10s, then retry\r
- Timeout (>120s): Move to next vendor\r
\r
## Logging\r
\r
All fallback attempts logged to:\r
- `logs/acp-fallback.log`\r
\r
## Success Metrics\r
\r
Tracked:\r
- Vendor used\r
- Number of retries\r
- Total time\r
- Success/failure status\r
安全使用建议
This skill's README-style instructions describe a useful fallback wrapper but the package contains no implementation, no install steps, and declares no API keys — yet its behavior requires them. Before installing or using this skill: 1) ask the publisher for the actual scripts (scripts/acp-fallback.sh and any helpers) and an install procedure; 2) require an explicit list of all environment variables/API keys needed and how they are used; 3) inspect the implementation for network endpoints and any code that transmits logs or secrets; 4) be cautious about replacing direct acpx calls globally — ensure you can opt out or revert; and 5) avoid supplying credentials until you can audit the script. The current package is incomplete and should not be trusted to run without those clarifications.
功能分析
Type: OpenClaw Skill Name: acp-fallback Version: 1.0.1 The skill bundle references a critical execution wrapper script, 'scripts/acp-fallback.sh', which is missing from the provided files. This script is intended to intercept and manage agent commands via the 'acp_exec' function, creating a high risk for command interception or data exfiltration. The instructions in SKILL.md explicitly direct the agent to bypass standard execution methods (npx acpx) in favor of this unverified wrapper, which is a common pattern for masking malicious redirection or credential harvesting.
能力评估
Purpose & Capability
The SKILL.md claims automated fallback between multiple ACP vendors (codex, claude, pi, direct-api). However, the skill bundle contains no code, no helper script, and no declared credentials. Implementing multi-vendor calls would normally require vendor-specific credentials, SDK/CLIs, or shipped scripts — none are present or requested. This mismatch suggests missing pieces or incomplete packaging.
Instruction Scope
Instructions tell agents to 'source scripts/acp-fallback.sh' and to replace direct acpx calls with acp_exec, and to log to logs/acp-fallback.log. Because no scripts or install steps are provided, these runtime instructions are not actionable as-is. The doc also references model and vendor names (MiniMax, DeepSeek, OpenAI, GLM-5, etc.) that imply external credentials or APIs but never instruct how to obtain or store those secrets.
Install Mechanism
There is no install spec (instruction-only). That is low-risk by itself, but the SKILL.md explicitly expects a local script at scripts/acp-fallback.sh to be present and sourced; without an install step to place that file, the skill is incomplete. The lack of an install mechanism prevents verification of what would actually run.
Credentials
The metadata declares no required environment variables or credentials, yet the described functionality (calling Codex, Claude, Pi, OpenClaw's API, OpenAI, etc.) normally requires API keys/tokens. The omission of any declared secrets is disproportionate to the claimed cross-vendor behavior and is an inconsistency that should be resolved before use.
Persistence & Privilege
The skill does not request always:true and is not requesting elevated platform privileges. It does suggest writing fallback logs to logs/acp-fallback.log on disk, which is a limited persistence action but not inherently privileged. No evidence it modifies other skills or global agent config.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install acp-fallback
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /acp-fallback 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Fixed minor typo in agent integration instructions: changed `acp_exec "..."` for clarity. - No functional or behavioral changes to the skill itself.
v1.0.0
ACP Fallback System v1.0.0 – Automatic fallback execution for ACP agents - Introduces acp_exec function: executes tasks with vendor fallback (Codex → Claude → Pi → API). - Ensures seamless retry logic—if one vendor fails, the next is automatically attempted. - Provides subagent model fallback (MiniMax → DeepSeek → OpenAI → GLM-5). - Centralized error handling for network, auth, rate limit, and timeout issues. - All attempts and results are logged for traceability (logs/acp-fallback.log). - Tracks success metrics: vendor used, retries, total execution time, and status.
元数据
Slug acp-fallback
版本 1.0.1
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 2
常见问题

Acp Fallback 是什么?

Automatically retries ACP vendors in priority order (codex, claude, pi, API) on failure, returning the first successful result with fallback logging. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 152 次。

如何安装 Acp Fallback?

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

Acp Fallback 是免费的吗?

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

Acp Fallback 支持哪些平台?

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

谁开发了 Acp Fallback?

由 engibarian(@engibarian)开发并维护,当前版本 v1.0.1。

💬 留言讨论