← Back to Skills Marketplace
enderfga

Async Task

by Enderfga · GitHub ↗ · v0.1.0
cross-platform ⚠ suspicious
3095
Downloads
1
Stars
12
Active Installs
1
Versions
Install in OpenClaw
/install async-task
Description
Run and manage long tasks exceeding HTTP timeouts by starting, updating, and completing them asynchronously with immediate responses.
README (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

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install async-task
  3. After installation, invoke the skill by name or use /async-task
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug async-task
Version 0.1.0
License
All-time Installs 14
Active Installs 12
Total Versions 1
Frequently Asked Questions

What is Async Task?

Run and manage long tasks exceeding HTTP timeouts by starting, updating, and completing them asynchronously with immediate responses. It is an AI Agent Skill for Claude Code / OpenClaw, with 3095 downloads so far.

How do I install Async Task?

Run "/install async-task" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Async Task free?

Yes, Async Task is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Async Task support?

Async Task is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Async Task?

It is built and maintained by Enderfga (@enderfga); the current version is v0.1.0.

💬 Comments