TopRank Skills

Home / Claw Skills / Git / GitHub / Async Task
Official OpenClaw rules 54%

Async Task

OpenClaw Async Task

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 Async Task 技能。 若已安装,则直接安装 Async Task 技能。

Overview

Skill Key
enderfga/async-task
Author
enderfga
Source Repo
openclaw/skills
Version
-
Source Path
skills/enderfga/async-task
Latest Commit SHA
5c20b0e4d8310537debf10667cc6efcbda01f1dc

Extracted Content

SKILL.md excerpt

# 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

```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:...

README excerpt

# OpenClaw Async Task

> Execute long-running tasks without HTTP timeouts

When AI agents execute commands that take more than a few seconds, HTTP connections often timeout, resulting in `empty response from server` errors. This tool solves that problem.

## How It Works

```
User: "Analyze this large codebase"

AI Agent:
  1. async-task start "Analyzing codebase..."  → Returns immediately ✓
  2. <runs actual analysis>
  3. async-task done "Found 150 issues"        → Pushes to user ✓
```

## Installation

```bash
npm install -g openclaw-async-task
```

Or manually:

```bash
git clone https://github.com/Enderfga/openclaw-async-task.git
chmod +x openclaw-async-task/async-task.js
ln -s $(pwd)/openclaw-async-task/async-task.js /usr/local/bin/async-task
```

## Usage

```bash
# Start a task (returns immediately)
async-task start "Processing data..."

# Complete with result (pushes to active session)
async-task done "Processed 1,234 records successfully"

# Or report failure
async-task fail "Connection timeout after 3 retries"

# Direct push (no start needed)
async-task push "Quick update: 50% complete"

# Check status
async-task status
```

## Zero Configuration

Works out of the box with OpenClaw/Clawdbot:
- Automatically detects CLI (`openclaw` or `clawdbot`)
- Automatically finds active session
- Uses native `sessions send` to push messages

## Advanced: Custom Endpoint

For custom webchat implementations:

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

Expected endpoint interface:
```http
POST /api/push
Authorization: Bearer <token>
Content-Type: application/json

{
  "sessionId": "abc123",
  "content": "Your message",
  "role": "assistant"
}
```

## As a Clawdbot/OpenClaw Skill

This package includes `SKILL.md` for automatic skill discovery. The AI learns when and how to use async tasks.

## License

MIT

Related Claw Skills

heyixuan2

bambu-studio-ai

★ 41

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pipeline: search → generate → analyze → colorize → preview → open BS → user slice → print → monitor. Supports all 9 Bambu Lab printers (A1 Mini, A1, P1S, P2S, X1C, X1E, H2C, H2S, H2D).

capt-marbles

geo-optimization

★ 1

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discoverability and citation.

carlulsoe

parakeet-stt

★ 0

Local speech-to-text with NVIDIA Parakeet TDT 0.6B v3 (ONNX on CPU). 30x faster than Whisper, 25 languages, auto-detection, OpenAI-compatible API. Use when transcribing audio files, converting speech to text, or processing voice recordings locally without cloud APIs.

carlzhao007

feishu-process-feedback

★ 0

飞书消息自动处理与进度反馈技能。安装后后台运行,监听飞书任务消息并自动创建独立进程处理。 在处理前后发送实时进度反馈(任务确认、进度百分比、完成通知)。 支持任务类型识别、智能解析、错误重试、并发控制、状态持久化。 使用场景:飞书自动化工作流、任务进度追踪、批量任务处理、需要实时反馈的场景。

cartoonitunes

bottyfans

★ 0

BottyFans agent skill for autonomous creator monetization. Lets AI agents register, build a profile, publish posts (public, subscriber-only, or pay-to-unlock), upload media, accept USDC subscriptions and tips on Base, send and receive DMs, track earnings, and appear on the creator leaderboard. Use this skill when an agent needs to monetize content, interact with fans, manage a creator profile, handle payments in USDC, or operate as an autonomous creator on the BottyFans platform.

camopel

arxivkb

★ 0

Local arXiv paper manager with semantic search. Crawls arXiv categories, downloads PDFs, chunks content, and indexes with FAISS + Ollama embeddings. No cloud API keys required — everything runs locally.