AutomationPython

Async Task Pattern

by doccker

Async Task Pattern is an Automation skill for Claude Code, published by doccker in cc-use-exp.

1K stars105 forkson doccker/cc-use-expAdded 2026/08/21Repository updated 2026/06/30
antigravityclaude-codecodexcursorgemini-cligithub-copilot
Install in seconds
Install Async Task Pattern
Copy Async Task Pattern into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/doccker/cc-use-exp/tree/main/.antigravity/skills/async-task-pattern ~/.claude/skills/async-task-pattern

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/doccker/cc-use-exp.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
.antigravity/skills/async-task-pattern/SKILL.md in doccker/cc-use-exp
Installs to
~/.claude/skills/async-task-pattern
Collection
One of 23 skills cataloged from this repository
Category
Automation1523 skills

What Async Task Pattern does

Async Task Pattern provides a standard triggerAsync/getStatus flow for operations that may run longer than 10 seconds. Use it for batch processing, remote API fan-out, or scans that would otherwise time out or be triggered twice.

Async Task Pattern is cataloged under Automation on DirSkills. Async Task Pattern comes from a repository tagged antigravity, claude-code, codex, cursor and gemini-cli.

Documentation

README

异步任务模式规范

当一个操作可能跑超过 10 秒,必须改成 triggerAsync() + getStatus() 的异步状态机模式。 不要让用户盯着一个会超时的 loading 转圈,更不要让他点第二下。

query-performance-safety 配合:先用后者把同步性能压到能跑完的范围;只有"再优化也压不到 10s 以内"时,才走本规范。


触发条件

只要满足任一条件,就属于本 skill 的覆盖范围:

  • 单次操作处理数据量 ≥ 1000 条(批量导入、全表扫描、跨租户聚合)
  • 链路里有远程 API 批量调用,且 batch size × 单次延迟 > 5s
  • 历史上同步实现已经出过 504/502/30s timeout
  • 用户描述里出现"卡住"、"转圈很久"、"点完没反应"

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Async Task Pattern

  • What else does doccker publish alongside Async Task Pattern?

    Async Task Pattern is one of 23 skills that DirSkills catalogs from doccker/cc-use-exp, the repository it ships in. Its siblings there include API Design Safety, Api Design Safety and Api Proxy Safety. Each one is a separate skill with its own page in this directory, installs the same way Async Task Pattern does, and is maintained by doccker in that same repository. The rest of the collection is listed on the doccker/cc-use-exp page.

  • How does Async Task Pattern compare to other Automation skills?

    Async Task Pattern ranks #839 by stars among the 1523 Automation skills in this catalog. The most-starred ones next to it are Autonomous Loops, Autonomous Agent Harness and Automation Audit Ops. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Async Task Pattern against them. Open each page to compare what they document and how they install.

More from doccker/cc-use-exp

Async Task Pattern is one of 23 skills cataloged on DirSkills from doccker/cc-use-exp.

See all 23 skills
🛡️
1w ago

API Design Safety

API Design Safety helps you design REST API responses and generated outputs with consistent field semantics, null handling, and status codes. It also checks required fields before exporting files or sending downstream payloads to avoid silent failures.
Quality
1K105
🧩
1w ago

Api Design Safety

Api Design Safety helps prevent REST API response design mistakes such as field mix-ups, ambiguous return types, and inconsistent empty values. Use it when designing or changing API responses and handling returned data.
AI Engineering
1K105
🛡️
1w ago

Api Proxy Safety

Api Proxy Safety defines safe keyword matching for gateways, proxies, WAFs, and CDNs so normal content is not misclassified as an error. It is used when implementing heuristic checks for response bodies, status codes, and error schemas.
DevOps
1K105
🐚
1w ago

Bash Style

Bash Style provides shell scripting and command-writing conventions for .sh files, Dockerfiles, Makefiles, YAML, and Markdown bash blocks. Use it to format commands, heredocs, file writes, permissions, and script safety.
Writing
1K105
🧩
1w ago

Code Quality Principles

Code Quality Principles provides a checklist for modular design, refactoring, and code review. Use it to assess module size, call depth, fan-in/fan-out, boundaries, scope cohesion, and predictability.
Quality
1K105
🧪
1w ago

External System Debugging

External System Debugging helps debug code that depends on browsers, editors, CDNs/WAFs, IM platforms, clipboards, or third-party SaaS. It requires collecting real environment data first, then using that evidence to diagnose paste, rendering, API, and cross-platform issues.
Quality
1K105