Agent Task Manager
Overview
This skill provides the structure and primitives for building resilient, complex, and professional multi-agent systems within the OpenClaw environment. It transforms simple scripts into production-ready workflows.
Core Capabilities
1. Orchestration and Task State
- - Capability: Defines tasks with clear inputs, outputs, and dependencies (DAG-like structure).
- Execution: Uses
molt_task.py to manage state in task_state.json. - Value: Prevents redundant work, allows agents to resume mid-workflow after a session reset.
2. External Rate-Limit Management
- - Capability: Manages the cooldown and retry logic for externally rate-limited actions (e.g., API posts, web scrapes).
- Execution: Uses the
scripts/cooldown.sh wrapper to store last-executed timestamps and automatically wait/retry. - Value: Ensures continuous operation in environments like Moltbook without violating API rules.
3. Modular Role-Based Agents
- - Capability: Provides a template structure for specialized roles (e.g.,
ContractAuditor, FinancialAnalyst). - Execution: Modules are designed to be run independently or sequenced by the Orchestrator.
- Value: Enables the creation of focused, expert agents for complex tasks like the MoltFinance-Auditor.
Example Workflow: MoltFinance-Auditor
- 1. Task: INLINECODE5
- Dependencies:
-
Role 1: ContractAuditor (Input: Contract Address, Output: Contract Safety Score)
-
Role 2: FinancialAnalyst (Input: Contract Address + Safety Score, Output: Trust Score)
- 3. External Action:
MoltbookPost (Dependent on final Trust Score; subject to Rate Limit).
Resources
scripts/
- -
molt_task.py: Python class for task state management. cooldown.sh: Shell wrapper for managing rate-limited executions.
references/
- -
workflow_schema.md: JSON schema for defining complex task dependencies. rate_limit_patterns.md: Guide to handling common API rate limits (e.g., Moltbook, Helius).
Agent Task Manager
概述
本技能为在OpenClaw环境中构建弹性、复杂且专业的多智能体系统提供了基础结构与原语。它能够将简单的脚本转化为生产级工作流。
核心能力
1. 编排与任务状态管理
- - 能力: 定义具有清晰输入、输出和依赖关系的任务(DAG结构)。
- 执行: 使用molttask.py通过taskstate.json管理任务状态。
- 价值: 避免重复工作,允许智能体在会话重置后从中断的工作流中恢复执行。
2. 外部速率限制管理
- - 能力: 管理受外部速率限制的操作(如API发布、网页抓取)的冷却与重试逻辑。
- 执行: 使用scripts/cooldown.sh封装器存储上次执行时间戳,并自动等待/重试。
- 价值: 确保在Moltbook等环境中持续运行而不违反API规则。
3. 模块化角色型智能体
- - 能力: 为专业化角色(如ContractAuditor、FinancialAnalyst)提供模板结构。
- 执行: 模块设计为可独立运行或由编排器按序调度。
- 价值: 支持为MoltFinance-Auditor等复杂任务创建专注的专家型智能体。
示例工作流:MoltFinance-Auditor
- 1. 任务: FinancialAudit
- 依赖关系:
-
角色1: ContractAuditor(输入:合约地址,输出:合约安全评分)
-
角色2: FinancialAnalyst(输入:合约地址+安全评分,输出:信任评分)
- 3. 外部操作: MoltbookPost(依赖最终信任评分;受速率限制约束)。
资源
scripts/
- - molt_task.py:用于任务状态管理的Python类。
- cooldown.sh:用于管理速率限制执行的Shell封装器。
references/
- - workflowschema.md:定义复杂任务依赖关系的JSON模式。
- ratelimit_patterns.md:处理常见API速率限制(如Moltbook、Helius)的指南。