Skip to main content

create-task

Create a new Trigger.dev task file Arguments: <task-name> [--type basic|schema|cron|agent].

Source facts

Repository
Agents-Store/codex-plugins
Last source activity
November 1, 2026 at 02:46
Detected SKILL.md language
English
Stars
0
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
create-task
description
Create a new Trigger.dev task file Arguments: <task-name> [--type basic|schema|cron|agent].
# Create Task Method and rules: the `trigger-dev:task-development` skill. 1. Parse arguments: - `task-name` (required): kebab-case task identifier - `--type` (optional, default: basic): basic, schema, cron, agent 2. Determine the task directory from `trigger.config.ts` `dirs` field (default: `src/trigger/`) 3. Create the task file at `<dirs>/<task-name>.ts` using the appropriate template: **basic**: Simple task with retry config **schema**: Task with Zod schema validation **cron**: Scheduled task with cron expression **agent**: AI agent task with LLM integration 4. Ensure the task is exported 5. Display: "Task created. Run `npx trigger.dev@latest dev` to register it."
View on GitHub