← 返回 Skills 市场
enderfga

Async Task

作者 Enderfga · GitHub ↗ · v0.1.0
cross-platform ⚠ suspicious
3095
总下载
1
收藏
12
当前安装
1
版本数
在 OpenClaw 中安装
/install async-task
功能描述
Run and manage long tasks exceeding HTTP timeouts by starting, updating, and completing them asynchronously with immediate responses.
使用说明 (SKILL.md)

OpenClaw Async Task

Description

Execute long-running tasks without HTTP timeouts. Use when you need to:

  • Run commands that may take more than 5 seconds
  • Analyze large files or codebases
  • Perform multi-step operations
  • Call external APIs with unpredictable latency

IMPORTANT: When a task might timeout, you MUST use this skill to avoid empty response from server errors.

Triggers: "async task", "long running", "timeout", "background task", "push result"

Installation

# Clone and link globally
git clone https://github.com/Enderfga/openclaw-async-task.git
cd openclaw-async-task
npm link

# Or just copy async-task.js to your PATH
chmod +x async-task.js
cp async-task.js /usr/local/bin/async-task

Commands

async-task start "\x3Cdescription>"  # Start task, returns immediately
async-task done "\x3Cresult>"        # Complete task, push result to user
async-task fail "\x3Cerror>"         # Task failed, push error message
async-task push "\x3Cmessage>"       # Push message directly (no start needed)
async-task status                 # Show current task status

Usage Flow (MUST follow strictly)

  1. Start: async-task start "Scanning files..."
  2. Execute: Run your actual commands
  3. Push result: async-task done "Found 42 files"

Example

User asks: "Count all TypeScript files in this project"

# Step 1: Acknowledge immediately
async-task start "Counting TypeScript files..."

# Step 2: Do the actual work
count=$(find . -name "*.ts" | wc -l)

# Step 3: Push the result
async-task done "Found $count TypeScript files"

How It Works

  1. start saves task state and returns confirmation immediately
  2. You execute whatever commands needed
  3. done/fail uses OpenClaw/Clawdbot CLI to push result to the active session

Zero configuration required - automatically detects active session via openclaw sessions or clawdbot sessions.

Advanced: Custom Push Endpoint

For custom webchat or notification systems:

export ASYNC_TASK_PUSH_URL="https://your-server.com/api/push"
export ASYNC_TASK_AUTH_TOKEN="your-token"

The endpoint receives:

{
  "sessionId": "session-id",
  "content": "message",
  "role": "assistant"
}

Environment Variables

Variable Required Description
OPENCLAW_SESSION No Target session (auto-detected)
ASYNC_TASK_PUSH_URL No Custom HTTP push endpoint
ASYNC_TASK_AUTH_TOKEN No Auth token for custom endpoint

Requirements

  • Node.js 16+
  • OpenClaw or Clawdbot CLI installed

Critical Rules

  • MUST pair start with done or fail
  • NEVER start without completing
  • NEVER say "will push later" then forget

Links

安全使用建议
This skill appears coherent with its purpose and is implemented as a simple CLI wrapper. Before installing: (1) Inspect async-task.js yourself (it's included) and only copy it to system PATH if you trust it. (2) Be cautious if you set ASYNC_TASK_PUSH_URL — messages (sessionId and content) will be POSTed to that endpoint, so do not point it at untrusted servers or leak sensitive output there. (3) The tool uses your openclaw/clawdbot CLI when available; ensure that CLI is configured correctly. (4) The script stores state under ~/.openclaw by default; if that is a concern, configure OPENCLAW_STATE_DIR. Overall this is internally consistent and doesn’t request unrelated secrets.
功能分析
Type: OpenClaw Skill Name: async-task Version: 0.1.0 The skill is classified as suspicious due to its use of high-risk capabilities, specifically the ability to send session IDs and task results to an arbitrary, user-defined HTTP endpoint (`ASYNC_TASK_PUSH_URL` and `ASYNC_TASK_AUTH_TOKEN` in `async-task.js`). While this feature is explicitly documented as 'Advanced' and requires user configuration, it presents a clear vector for data exfiltration if configured maliciously. Additionally, the script uses `execSync` to retrieve active session keys via the `openclaw sessions` or `clawdbot sessions` CLI, which are then used for pushing messages, further highlighting sensitive data handling.
能力评估
Purpose & Capability
Name/behavior match: the skill implements start/done/push/status commands, auto-detects OpenClaw/Clawdbot CLI sessions, and optionally posts to a custom HTTP endpoint. It does not request unrelated credentials or system access.
Instruction Scope
SKILL.md instructs only to run the async-task CLI, optionally configure a push endpoint, and to pair start/done; the runtime instructions and examples stay within the stated purpose and do not direct the agent to read unrelated host files or credentials.
Install Mechanism
There is no automated install spec in the registry (instruction-only). SKILL.md suggests manual npm install/git clone or copying the script to PATH — user-executed steps only. The included code is plain JS from a GitHub repo; no opaque download URLs or automatic extraction are present.
Credentials
Only optional env vars are documented (OPENCLAW_SESSION, ASYNC_TASK_PUSH_URL, ASYNC_TASK_AUTH_TOKEN, and state-dir fallbacks). These are proportionate to the feature set. The script writes a small state file under a per-user directory (default ~/.openclaw), which is expected for tracking tasks.
Persistence & Privilege
Skill is not always-loaded and does not request elevated privileges. It persists a local state file in the user's home directory (normal for a CLI helper) and does not modify other skills or global agent configuration.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install async-task
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /async-task 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
- Initial release of async-task skill. - Enables execution of long-running tasks without HTTP timeouts. - Provides CLI commands for starting, updating, and completing background tasks. - Supports integration with OpenClaw, Clawdbot, and custom webhook endpoints. - Automatic session detection—zero configuration required. - Includes critical usage rules to ensure task lifecycle consistency.
元数据
Slug async-task
版本 0.1.0
许可证
累计安装 14
当前安装数 12
历史版本数 1
常见问题

Async Task 是什么?

Run and manage long tasks exceeding HTTP timeouts by starting, updating, and completing them asynchronously with immediate responses. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 3095 次。

如何安装 Async Task?

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

Async Task 是免费的吗?

是的,Async Task 完全免费(开源免费),可自由下载、安装和使用。

Async Task 支持哪些平台?

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

谁开发了 Async Task?

由 Enderfga(@enderfga)开发并维护,当前版本 v0.1.0。

💬 留言讨论