Skip to content

Commit 5117982

Browse files
committed
docs: document the trigger skills installer (replaces agent rules)
Rewrites the Skills page for the trigger skills command and the four bundled skills, turns the old Agent Rules page into a redirect to Skills, and collapses the Building with AI comparison to Skills vs MCP.
1 parent 8b85da1 commit 5117982

3 files changed

Lines changed: 75 additions & 181 deletions

File tree

docs/building-with-ai.mdx

Lines changed: 15 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -22,40 +22,30 @@ We provide multiple tools to help AI coding assistants write correct Trigger.dev
2222
</Step>
2323

2424
<Step title="Install Skills">
25-
Portable instruction sets that teach any AI coding assistant Trigger.dev best practices. Works with Claude Code, Cursor, Windsurf, VS Code (Copilot), and any tool that supports the [Agent Skills standard](https://agentskills.io).
25+
Portable instruction sets that teach any AI coding assistant Trigger.dev best practices: writing tasks, realtime frontends, and `chat.agent` AI agents. They ship with the CLI, version-matched to your SDK, and install into Claude Code, Cursor, VS Code (Copilot), and Codex / AGENTS.md.
2626

2727
```bash
28-
npx skills add triggerdotdev/skills
28+
npx trigger.dev@latest skills
2929
```
3030

3131
[Learn more →](/skills)
3232
</Step>
3333

34-
<Step title="Install Agent Rules">
35-
Comprehensive rule sets installed directly into your AI client's config files. Works with Cursor, Claude Code, VS Code (Copilot), Windsurf, Gemini CLI, Cline, and more. Claude Code also gets a dedicated subagent for hands-on help.
36-
37-
```bash
38-
npx trigger.dev@latest install-rules
39-
```
40-
41-
[Learn more →](/mcp-agent-rules)
42-
</Step>
43-
4434
</Steps>
4535

46-
## Skills vs Agent Rules vs MCP
36+
## Skills vs MCP
4737

4838
Not sure which tool to use? Here's how they compare:
4939

50-
| | **Skills** | **Agent Rules** | **MCP Server** |
51-
|:--|:-----------|:----------------|:---------------|
52-
| **What it does** | Drops skill files into your project | Installs rule sets into client config | Runs a live server your AI connects to |
53-
| **Installs to** | `.claude/skills/`, `.cursor/skills/`, etc. | `.cursor/rules/`, `CLAUDE.md`, `AGENTS.md`, etc. | `mcp.json`, `~/.claude.json`, etc. |
54-
| **Updates** | Re-run `npx skills add` | Re-run `npx trigger.dev@latest install-rules` or auto-prompted on `trigger dev` | Always latest (uses `@latest`) |
55-
| **Best for** | Teaching patterns and best practices | Comprehensive code generation guidance | Live project interaction (deploy, trigger, monitor) |
56-
| **Works offline** | Yes | Yes | No (calls Trigger.dev API) |
40+
| | **Skills** | **MCP Server** |
41+
|:--|:-----------|:---------------|
42+
| **What it does** | Drops skill files into your project that teach Trigger.dev patterns | Runs a live server your AI connects to |
43+
| **Installs to** | `.claude/skills/`, `.cursor/skills/`, `.github/skills/`, `.agents/skills/` | `mcp.json`, `~/.claude.json`, etc. |
44+
| **Updates** | Re-run `npx trigger.dev@latest skills`, or auto-prompted on `trigger dev` | Always latest (uses `@latest`) |
45+
| **Best for** | Teaching patterns and best practices | Live project interaction (deploy, trigger, monitor) |
46+
| **Works offline** | Yes | No (calls Trigger.dev API) |
5747

58-
**Our recommendation:** Install all three. Skills and Agent Rules teach your AI *how* to write code. The MCP Server lets it *do things* in your project.
48+
**Our recommendation:** Install both. Skills teach your AI *how* to write Trigger.dev code; the MCP Server lets it *do things* in your project.
5949

6050
## Project-level context snippet
6151

@@ -238,7 +228,7 @@ These follow the [llms.txt standard](https://llmstxt.org) and can be fed directl
238228
<AccordionGroup>
239229

240230
<Accordion title="AI keeps generating old v2/v3 code">
241-
Install [Agent Rules](/mcp-agent-rules) or [Skills](/skills) they override the outdated patterns in the AI's training data. The [context snippet](#project-level-context-snippet) above is a quick alternative.
231+
Install [Skills](/skills); they override the outdated patterns in the AI's training data. The [context snippet](#project-level-context-snippet) above is a quick alternative.
242232
</Accordion>
243233

244234
<Accordion title="MCP server won't connect">
@@ -249,9 +239,8 @@ These follow the [llms.txt standard](https://llmstxt.org) and can be fed directl
249239
</Accordion>
250240

251241
<Accordion title="Which tool should I install?">
252-
All three if possible. If you can only pick one:
253-
- **Agent Rules** if you want the broadest code generation improvement
254-
- **Skills** if you use multiple AI tools and want a single install
242+
Both if possible:
243+
- **Skills** to teach your AI how to write Trigger.dev code (tasks, realtime, chat.agent)
255244
- **MCP Server** if you need to trigger tasks, deploy, and search docs from your AI
256245
</Accordion>
257246

@@ -264,10 +253,7 @@ These follow the [llms.txt standard](https://llmstxt.org) and can be fed directl
264253
Install and configure the MCP Server for live project interaction.
265254
</Card>
266255
<Card title="Skills" icon="wand-magic-sparkles" href="/skills">
267-
Portable instruction sets for any AI coding assistant.
268-
</Card>
269-
<Card title="Agent Rules" icon="scroll" href="/mcp-agent-rules">
270-
Comprehensive rule sets installed into your AI client.
256+
Install Trigger.dev agent skills into any AI coding assistant.
271257
</Card>
272258
<Card title="Writing tasks" icon="code" href="/tasks/overview">
273259
Learn the task patterns your AI assistant will follow.

docs/mcp-agent-rules.mdx

Lines changed: 13 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -1,132 +1,41 @@
11
---
22
title: "Agent rules"
3+
description: "Trigger.dev agent rules are now agent skills, installed with the trigger.dev CLI."
34
sidebarTitle: "Agent rules"
4-
description: "Install Trigger.dev agent rules to guide AI assistants toward correct, up-to-date code patterns."
55
---
66

7-
## What are Trigger.dev agent rules?
8-
9-
Trigger.dev agent rules are comprehensive instruction sets that guide AI assistants to write optimal Trigger.dev code. These rules ensure your AI assistant understands best practices, current APIs, and recommended patterns when working with Trigger.dev projects.
10-
117
<Note>
12-
Agent Rules are one of three AI tools we provide. You can also install [Skills](/skills) for portable cross-editor instruction sets or the [MCP Server](/mcp-introduction) for live project interaction. See the [comparison table](/building-with-ai#skills-vs-agent-rules-vs-mcp) for details.
8+
Agent rules are now **agent skills**. The standalone rule files have been replaced by skills that
9+
work across every major AI assistant from a single install. See [Skills](/skills).
1310
</Note>
1411

15-
## Installation
16-
17-
Install the agent rules with the following command:
18-
19-
```bash
20-
npx trigger.dev@latest install-rules
21-
```
22-
23-
## Available rule sets
24-
25-
We provide five specialized rule sets, each optimized for different aspects of Trigger.dev development:
26-
27-
| Rule set | Tokens | Description | GitHub |
28-
|:---------|:-------|:------------|:------------|
29-
| **Basic tasks** | 1,200 | Essential rules for writing basic Trigger.dev tasks and fundamental patterns | [View](https://github.com/triggerdotdev/trigger.dev/blob/main/rules/4.0.0/basic-tasks.md) |
30-
| **Advanced tasks** | 3,000 | Comprehensive rules for complex workflows, error handling, and advanced task patterns | [View](https://github.com/triggerdotdev/trigger.dev/blob/main/rules/4.0.0/advanced-tasks.md) |
31-
| **Scheduled tasks** | 780 | Specialized guidance for cron jobs, scheduled workflows, and time-based triggers | [View](https://github.com/triggerdotdev/trigger.dev/blob/main/rules/4.0.0/scheduled-tasks.md) |
32-
| **Configuration** | 1,900 | Complete guide for trigger.config.ts setup, environment configuration, and project structure | [View](https://github.com/triggerdotdev/trigger.dev/blob/main/rules/4.0.0/config.md) |
33-
| **Realtime** | 1,700 | Using Trigger.dev Realtime features and frontend integration patterns | [View](https://github.com/triggerdotdev/trigger.dev/blob/main/rules/4.0.0/realtime.md) |
34-
35-
## Claude Code subagent
36-
37-
For Claude Code users, we provide a subagent called `trigger-dev-expert` that's an expert at writing well-structured Trigger.dev code.
38-
39-
### Installation
40-
41-
The subagent is available as an option when running the rules installation command. Select "Claude Code" as your client and choose to include the subagent when prompted.
42-
43-
![Claude Code subagent installation](/images/claude-code-subagent.png)
44-
45-
### Usage
46-
47-
Activate the subagent in your prompts by requesting it explicitly:
48-
49-
```markdown
50-
use the trigger-dev-expert subagent to create a trigger.dev job that accepts a video url, processes it with ffmpeg to extract the audio, runs the audio through a text-to-speech API like openai, and then uploads both the transcription and the audio to s3
51-
```
52-
53-
The subagent works best when combined with the appropriate rule sets installed alongside it, providing both high-level architectural guidance and detailed implementation knowledge.
54-
55-
## Supported AI clients
56-
57-
The Trigger.dev rules work across a wide range of AI coding assistants and editors:
58-
59-
| Client | Rule activation | Docs |
60-
|:--------|:----------------|:--------------|
61-
| **Cursor** | Automatic when working in trigger directories | [Link](https://docs.cursor.com/en/context/rules#rules/) |
62-
| **Claude Code** | Context-aware activation + custom subagent | [Link](https://docs.anthropic.com/en/docs/claude-code) |
63-
| **VSCode Copilot** | Integration with GitHub Copilot chat | [Link](https://code.visualstudio.com/docs/copilot/overview) |
64-
| **Windsurf** | Automatic activation in Trigger.dev projects | [Link](https://docs.windsurf.com/windsurf/cascade/memories#rules) |
65-
| **Gemini CLI** | Command-line integration | [Link](https://ai.google.dev/gemini-api/docs) |
66-
| **Cline** | Automatic context detection | [Link](https://github.com/cline/cline) |
67-
| **Sourcegraph AMP** | Code intelligence integration | [Link](https://sourcegraph.com/docs) |
68-
| **Kilo** | Custom rule integration | [Link](https://kilocode.ai/docs/advanced-usage/custom-rules) |
69-
| **Ruler** | Rule management | [Link](https://github.com/intellectronica/ruler) |
70-
| **AGENTS.md** | Universal format for OpenAI Codex, Jules, OpenCode, etc. | |
71-
72-
### Rule activation behavior
73-
74-
Different AI tools handle rules differently:
75-
76-
- **Automatic Activation**: Cursor, Windsurf, VSCode Copilot, and Cline automatically apply relevant rules when working in Trigger.dev projects or when `trigger.config.ts` is detected
77-
- **Context-Aware**: Claude Code intelligently applies rules based on the current context and file types
78-
- **Manual Integration**: AGENTS.md clients and others append rules to configuration files for manual activation
79-
80-
## Keeping rules updated
81-
82-
Trigger.dev rules are regularly updated to reflect new features, API changes, and best practices. The CLI includes automatic update detection.
83-
84-
### Automatic update notifications
85-
86-
When running `npx trigger.dev@latest dev`, you'll receive notifications when newer rule versions are available with a simple update command.
87-
88-
### Manual updates
89-
90-
Update rules anytime with:
91-
92-
```bash
93-
npx trigger.dev@latest install-rules
94-
```
95-
96-
The update process replaces existing rules without creating duplicates, keeping your configuration files clean and organized.
97-
98-
### Why updates matter
99-
100-
- **Current API patterns**: Access the latest Trigger.dev APIs and features
101-
- **Performance optimizations**: Benefit from improved patterns and practices
102-
- **Deprecated pattern avoidance**: Prevent AI assistants from generating outdated code
103-
- **New feature support**: Immediate access to newly released capabilities
12+
## What changed
10413

105-
## Getting started
14+
Trigger.dev used to install per-tool *rule files* (`.cursor/rules/trigger.*.mdc`, regions in `CLAUDE.md`, and so on) fetched from GitHub. That has been replaced by [agent skills](/skills): `SKILL.md` directories in the open [Agent Skills standard](https://agentskills.io) that ship inside the CLI, version-matched to the Trigger.dev version you build against, and load on demand instead of always sitting in your context.
10615

107-
1. Install the rules:
16+
The install command is the same, and now installs skills:
10817

10918
```bash
110-
npx trigger.dev@latest install-rules
19+
npx trigger.dev@latest skills
11120
```
11221

113-
2. Follow the prompts to install the rules for your AI client.
22+
`npx trigger.dev@latest install-rules` still works as an alias, and `trigger dev` offers to install the skills on first run.
11423

115-
3. Consider installing the `trigger-dev-expert` subagent if using Claude Code.
24+
The old task and realtime guidance now lives in the `authoring-tasks` and `realtime-and-frontend` skills, alongside two new skills for building `chat.agent` AI agents. See [Skills](/skills) for the full list and supported assistants.
11625

11726
## Next steps
11827

11928
<CardGroup cols={2}>
12029
<Card title="Skills" icon="wand-magic-sparkles" href="/skills">
121-
Portable instruction sets that work across all AI coding assistants.
30+
Install Trigger.dev agent skills into your AI coding assistant.
12231
</Card>
12332
<Card title="MCP Server" icon="sparkles" href="/mcp-introduction">
12433
Give your AI assistant direct access to Trigger.dev tools and APIs.
12534
</Card>
126-
<Card title="Complete AI setup" icon="layer-group" href="/building-with-ai">
127-
See all AI tools and how they compare.
35+
<Card title="Building with AI" icon="layer-group" href="/building-with-ai">
36+
See how skills and the MCP server compare.
12837
</Card>
12938
<Card title="Writing tasks" icon="code" href="/tasks/overview">
130-
Learn the task patterns that agent rules teach your AI assistant.
39+
Learn the task patterns that skills teach your AI assistant.
13140
</Card>
13241
</CardGroup>

0 commit comments

Comments
 (0)