Skip to content

Commit 5f35578

Browse files
committed
Document SDK rules and Claude Code skill in CLAUDE.md
1 parent 36c16f9 commit 5f35578

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

CLAUDE.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,25 @@ export const myTask = task({
198198
});
199199
```
200200

201+
### SDK Documentation Rules
202+
203+
The `rules/` directory contains versioned documentation for writing Trigger.dev tasks, distributed to users via the SDK installer. Current version is defined in `rules/manifest.json`.
204+
205+
- `rules/4.3.0/` - Latest: batch trigger v2 (1,000 items, 3MB payloads), debouncing
206+
- `rules/4.1.0/` - Realtime streams v2, updated config
207+
- `rules/4.0.0/` - Base v4 SDK documentation
208+
209+
When adding new SDK features, create a new version directory with only the files that changed from the previous version. Update `manifest.json` to point unchanged files to previous versions.
210+
211+
### Claude Code Skill
212+
213+
The `.claude/skills/trigger-dev-tasks/` skill provides Claude Code with Trigger.dev task expertise. It includes:
214+
215+
- `SKILL.md` - Core instructions and patterns
216+
- Reference files for basic tasks, advanced tasks, scheduled tasks, realtime, and config
217+
218+
Keep the skill in sync with the latest rules version when SDK features change.
219+
201220
## Testing with hello-world Reference Project
202221

203222
First-time setup:

0 commit comments

Comments
 (0)