Webiny API Tasks Catalog
Developmentwebiny-api-tasks-catalogWebiny API Tasks Catalog is an Agent Skill for development published in the webiny/webiny-js repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
api/tasks — 2 abstractions.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/webiny/webiny-js/blob/HEAD/skills/user-skills/generated/api/tasks/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/webiny-api-tasks-catalog, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
api/tasks
How to Use
- Find the abstraction you need below
- You MUST read the source file to get the exact interface and types!
- Import:
import { Name } from "<importPath>"; - See
webiny-use-case-patternorwebiny-event-handler-patternskills 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.