# Webiny API Tasks Catalog

Api/tasks, 2 abstractions.

- Repository: https://github.com/webiny/webiny-js (8051 stars)
- Category: Engineering
- License: see repository
- Last updated: 2026-10-30
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add webiny/webiny-js --skill webiny-api-tasks-catalog -g -a claude-code -y`
Codex: `npx skills add webiny/webiny-js --skill webiny-api-tasks-catalog -g -a codex -y`
Cursor: `npx skills add webiny/webiny-js --skill webiny-api-tasks-catalog -g -a cursor -y`
Gemini CLI: `npx skills add webiny/webiny-js --skill webiny-api-tasks-catalog -g -a gemini-cli -y`

## Description

api/tasks, 2 abstractions.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# api/tasks

## How to Use

1. Find the abstraction you need below
2. You MUST read the source file to get the exact interface and types!
3. Import: `import { Name } from "<importPath>";`
4. See `webiny-use-case-pattern` or `webiny-event-handler-pattern` skills for implementation patterns

## Abstractions

---

**Name:** `TaskDefinition`
**Import:** `import { TaskDefinition } from "webiny/api/tasks"`
**Source:** `@webiny/api-core/features/task/TaskDefinition/index.ts`
**Description:** Define a long-running background task with lifecycle hooks.

---

**Name:** `TaskService`
**Import:** `import { TaskService } from "webiny/api/tasks"`
**Source:** `@webiny/api-core/features/task/TaskService/index.ts`
**Description:** Trigger and manage long-running background tasks.

---

