Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Cpa Agents

БесплатноБез исполняемых скриптовНе проверен

Manage AI agent workflows using concurrent process algebra patterns like parallel tasks, branch-fix loops, fan-out comparisons, and session status tracking.

jose-compuот jose-compu1 074 установки в других каталогах

Об этом скилле

CPA Agents for OpenClaw

Skill version: 2.1.0
Requires: [email protected] exactly

Use concurrent process algebra for multi-agent orchestration in OpenClaw: parallel execution, branch-fix loops, model fan-out, retries, fallbacks, rollback sagas, and session-tree introspection.

Safety

This skill can change the current workspace and can send task text to more than one model provider.

  • branch-fix and saga may create branches, write files, and request rollback. Run them only after the user explicitly asks for that repository change in this session. Show the planned steps before applying them.
  • Stay in the current workspace. Do not read other skill folders, other repositories, or other session transcripts.
  • fan-out sends the task text to every named model. Do not put secrets, credentials, tokens, private keys, or private file contents in that text.
  • Do not call fan-out with an empty models list. The library would otherwise send the task to claude-sonnet-4-20250514 and gpt-4o. Ask the user which models to use.
  • Do not install a floating package range, enable user-global hooks, spawn background agents, or send cross-session messages from this skill.

Install

1) Install library

Install the reviewed package exactly. Do not use npm install cpa-agents or a range such as ^0.4.0.

npm install [email protected] --save-exact

Expected integrity:

sha512-hx2Nnqk1g9cZgSO9uVZRlh4zKr7YbZPbNapV3tcU302EI+BqkCzUMhNuXVv88esVuyKn55ni13O2/sb4YYHuoQ==

Commit package-lock.json and install from it with npm ci. The code that runs is that npm package, not this markdown file.

2) Create skill entrypoint

import { createOpenClawSkill } from "cpa-agents/adapters/openclaw";

export default createOpenClawSkill();

The skill object exposes:

  • name — "cpa-agents"
  • version — library version from the installed package (0.4.0; distinct from this skill doc 2.1.0)
  • skillMd — embedded markdown reference
  • handleCommand(command, args, openclawCtx) — runs CPA workflows

3) Host runtime (required)

Commands delegate to the OpenClaw host agent. Your skill host must provide:

interface OpenClawContext {
  session?: {
    id: string;
    appendEvent?: (event: TraceEvent) => void; // trace streaming
  };
  agent: {
    run: (
      task: string,
      opts?: { signal?: AbortSignal; model?: string }
    ) => Promise<{ output: string; errors?: string[] }>;
  };
}
  • agent.run() is required for all skill commands.
  • Return { errors: [...] } from run() to signal fixable failures (used by branch-fix).
  • session.appendEvent is optional but recommended for live trace trees.

4) Standalone factories (optional)

For custom workflows outside handleCommand, wire gateway helpers explicitly:

import { configureOpenClawBridge, openclawTool, workspaceAgent } from "cpa-agents/adapters/openclaw";

configureOpenClawBridge({
  runTool: async (tool, args, signal) => gateway.callTool(tool, args, { signal }),
  readMemory: async (key, signal) => gateway.readMemory(key, { signal }),
  writeMemory: async (input, signal) => gateway.writeMemory(input, { signal }),
});

Without configureOpenClawBridge() (or a per-factory bridge option), openclawTool and workspaceAgent throw "OpenClaw bridge not connected".

Invoking commands

Call skill.handleCommand(command, args, ctx) with these command names:

Command Purpose
parallel Run independent tasks concurrently
branch-fix Run task, fix on errors, continue
fan-out Same task across multiple models
retry Exponential backoff + per-attempt timeout
fallback Primary task with fallback on failure
saga Multi-step workflow with rollback
status Current session process tree

Global default: timeout = 300000 ms (5 min) on any command that accepts it.


parallel

{
  "tasks": ["analyze failing tests", "draft fix proposal", "write migration notes"],
  "timeout": 300000
}

Returns merged parallel results via SchedulerResult.


branch-fix

Run one task; if agent.run() returns errors, branch into a fix subprocess, then resume.

Do this only after the user explicitly asks to change this workspace. Describe the branch and files before writing them.

{
  "task": "implement auth middleware and resolve lint issues",
  "timeout": 300000
}

Fix prompt sent to agent: Fix the following issues: {errors joined by "; "}.


fan-out

Run the same task across models the user named, then merge outputs. models is required. Do not rely on the library default, which would send the task to two providers.

{
  "task": "propose API surface for agent orchestration",
  "models": ["claude-sonnet-4-20250514", "gpt-4o"],
  "timeout": 300000
}

Do not omit models. Omitting it sends the task to claude-sonnet-4-20250514 and gpt-4o.

Merge shape: `{ results: string[], conse

Полный SKILL.md на ClawHub

Установить Cpa Agents в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Cpa Agents?

Manage AI agent workflows using concurrent process algebra patterns like parallel tasks, branch-fix loops, fan-out comparisons, and session status tracking.

Как установить скилл Cpa Agents?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Cpa Agents запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Cpa Agents с