Enderfga

Async Task

AI 智慧體v0.1.0
作者:Enderfga更新於 2026-05-17async-task@clawhub_enderfga/async-task
任務自動化工作流編排

據 AlphaMoat 統計,截至 2026-10,Async Task 累計下載 5,978 次、獲 1 個星標,按累計下載量在本次參與排名的 10,914 個 AI 技能中排名第 4,828 位,在「AI 智慧體」分類(1,632 個)中排名第 654 位。

列表預設按累計下載量排序,也可按星標排序;詳情頁排名按累計下載量計算。

累計下載
5978
星標
1
全站下載量排名
#4,828
全站前 45% · 「AI 智慧體」前 41%
平台累計下載星標評論
ClawHub ↗44461-
SkillHub ↗59781—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

命令負責記錄任務狀態,實際工作需另行執行;可將進度、完成或失敗訊息推送到 OpenClaw 會話或自定義端點。為避免誤發,應明確指定目標會話、保護令牌並避免傳送機密;本地歷史可能保留任務內容。需要 Node.js 和 OpenClaw 或 Clawdbot CLI。

資料釋出於 2026-10-29

可以用來做什麼

  • 記錄長任務的開始和結束
  • 推送經審閱的進度或結果
  • 查詢任務狀態

什麼時候用

  • 目標會話及接收方已核即時
  • 訊息內容和本地留存歷史適合共享時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

說明如何記錄任務狀態和推送結果,以及如何核對目標會話;不要執行命令或傳送訊息。

月度資料趨勢

累計下載5978
3429479861672026-05 · 累計下載 36182026-06 · 累計下載 37572026-07 · 累計下載 40432026-08 · 累計下載 41742026-09 · 累計下載 45392026-10 · 累計下載 597826-0526-0926-10
星標1
0122026-05 · 星標 12026-06 · 星標 12026-07 · 星標 12026-08 · 星標 12026-09 · 星標 12026-10 · 星標 126-0526-0926-10

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-105978—1
2026-094539—1
2026-084174+3.2%1
2026-074043+7.6%1
2026-063757+3.8%1
2026-053618—1

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

2.8 KB · ClawHub v0.1.0
# 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
展開全部(共 108 行)
**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

```bash
# 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

```bash
async-task start "<description>"  # Start task, returns immediately
async-task done "<result>"        # Complete task, push result to user
async-task fail "<error>"         # Task failed, push error message
async-task push "<message>"       # 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"

```bash
# 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:

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

The endpoint receives:
```json
{
  "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

- [GitHub](https://github.com/Enderfga/openclaw-async-task)
- [OpenClaw](https://openclaw.ai)

「AI 智慧體」分類下的熱門技能

Enderfga 的其他技能

資料月份:2026-10 · 下載/星標數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。