搜索

PythonReactSEOPDF
OpenClaw

Async Task

OpenClaw Async Task

enderfga0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install enderfga/async-task

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

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 "<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"

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

来源信息

Source
github
Repository
openclaw/skills
Path
skills/enderfga/async-task
Version
—
Commit
5c20b0e4d8310537debf10667cc6efcbda01f1dc
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

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

npm install -g openclaw-async-task

Or manually:

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

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

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

Expected endpoint interface:

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

来源内容

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

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

相关技能

OpenClaw

bambu-studio-ai

heyixuan2

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 pi...

OpenClaw

geo-optimization

capt-marbles

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 discove...

OpenClaw

0protocol

0isone

Agents can sign plugins, rotate credentials without losing identity, and publicly attest to behavior.

OpenClaw

0x0-messenger

eijiac24

Send and receive P2P messages using disposable numbers and PINs. No servers, no accounts. Use for human notifications, approval flows, and agent-to-agent communication.