[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-trigger-dev-trigger-setup":3,"mdc--aoh279-key":32,"related-org-trigger-dev-trigger-setup":1287,"related-repo-trigger-dev-trigger-setup":1446},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":21,"repoUrl":22,"updatedAt":23,"license":24,"forks":25,"topics":26,"repo":27,"sourceUrl":30,"mdContent":31},"trigger-setup","set up Trigger.dev in projects","Set up Trigger.dev in your project. Use when adding Trigger.dev for the first time, creating trigger.config.ts, or initializing the trigger directory.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},"trigger-dev","Trigger.dev","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Ftrigger-dev.jpg","triggerdotdev",[13,17,20],{"name":14,"slug":15,"type":16},"Configuration","configuration","tag",{"name":18,"slug":19,"type":16},"Local Development","local-development",{"name":9,"slug":8,"type":16},30,"https:\u002F\u002Fgithub.com\u002Ftriggerdotdev\u002Fskills","2026-04-06T18:54:42.280816",null,5,[],{"repoUrl":22,"stars":21,"forks":25,"topics":28,"description":29},[],"Best practices for building AI agents and background jobs with Trigger.dev. Use when creating durable tasks, scheduling workflows, or integrating with the Trigger.dev SDK.","https:\u002F\u002Fgithub.com\u002Ftriggerdotdev\u002Fskills\u002Ftree\u002FHEAD\u002Ftrigger-setup","---\nname: trigger-setup\ndescription: Set up Trigger.dev in your project. Use when adding Trigger.dev for the first time, creating trigger.config.ts, or initializing the trigger directory.\n---\n\n# Trigger.dev Setup\n\nGet Trigger.dev running in your project in minutes.\n\n## When to Use\n\n- Adding Trigger.dev to an existing project\n- Creating your first task\n- Setting up trigger.config.ts\n- Connecting to Trigger.dev cloud\n\n## Prerequisites\n\n- Node.js 18+ or Bun\n- A Trigger.dev account (https:\u002F\u002Fcloud.trigger.dev)\n\n## Quick Start\n\n### 1. Install the SDK\n\n```bash\nnpm install @trigger.dev\u002Fsdk\n```\n\n### 2. Initialize Your Project\n\n```bash\nnpx trigger init\n```\n\nThis creates:\n- `trigger.config.ts` - project configuration\n- `trigger\u002F` directory - where your tasks live\n- `trigger\u002Fexample.ts` - a sample task\n\n### 3. Configure trigger.config.ts\n\n```ts\nimport { defineConfig } from \"@trigger.dev\u002Fsdk\";\n\nexport default defineConfig({\n  project: \"proj_xxxxx\", \u002F\u002F From dashboard\n  dirs: [\".\u002Ftrigger\"],\n});\n```\n\n### 4. Create Your First Task\n\n```ts\n\u002F\u002F trigger\u002Fmy-task.ts\nimport { task } from \"@trigger.dev\u002Fsdk\";\n\nexport const myFirstTask = task({\n  id: \"my-first-task\",\n  run: async (payload: { name: string }) => {\n    console.log(`Hello, ${payload.name}!`);\n    return { message: `Processed ${payload.name}` };\n  },\n});\n```\n\n### 5. Start Development Server\n\n```bash\nnpx trigger dev\n```\n\n### 6. Trigger Your Task\n\nFrom your app code:\n\n```ts\nimport { tasks } from \"@trigger.dev\u002Fsdk\";\nimport type { myFirstTask } from \".\u002Ftrigger\u002Fmy-task\";\n\nawait tasks.trigger\u003Ctypeof myFirstTask>(\"my-first-task\", {\n  name: \"World\",\n});\n```\n\nOr from the Trigger.dev dashboard \"Test\" tab.\n\n## Project Structure\n\n```\nyour-project\u002F\n├── trigger.config.ts    # Required - project config\n├── trigger\u002F             # Required - task files\n│   ├── my-task.ts\n│   └── another-task.ts\n├── package.json\n└── ...\n```\n\n## Environment Variables\n\nCreate `.env` or set in your environment:\n\n```bash\nTRIGGER_SECRET_KEY=tr_dev_xxxxx  # From dashboard > API Keys\n```\n\n## Common Issues\n\n### \"No tasks found\"\n- Ensure tasks are **exported** from files in `dirs` folders\n- Check `trigger.config.ts` points to correct directories\n\n### \"Project not found\"\n- Verify `project` in config matches dashboard\n- Check `TRIGGER_SECRET_KEY` is set\n\n### \"Task not registered\"\n- Restart `npx trigger dev` after adding new tasks\n- Tasks must use `task()` or `schemaTask()` from `@trigger.dev\u002Fsdk`\n\n## Next Steps\n\n- Add retry logic → see **trigger-tasks** skill\n- Configure build extensions → see **trigger-config** skill\n- Build AI workflows → see **trigger-agents** skill\n- Add real-time UI → see **trigger-realtime** skill\n",{"data":33,"body":34},{"name":4,"description":6},{"type":35,"children":36},"root",[37,46,52,59,84,90,113,119,126,161,167,192,197,233,239,434,440,786,792,815,821,826,1029,1034,1040,1050,1056,1069,1098,1104,1110,1146,1152,1179,1185,1227,1233,1281],{"type":38,"tag":39,"props":40,"children":42},"element","h1",{"id":41},"triggerdev-setup",[43],{"type":44,"value":45},"text","Trigger.dev Setup",{"type":38,"tag":47,"props":48,"children":49},"p",{},[50],{"type":44,"value":51},"Get Trigger.dev running in your project in minutes.",{"type":38,"tag":53,"props":54,"children":56},"h2",{"id":55},"when-to-use",[57],{"type":44,"value":58},"When to Use",{"type":38,"tag":60,"props":61,"children":62},"ul",{},[63,69,74,79],{"type":38,"tag":64,"props":65,"children":66},"li",{},[67],{"type":44,"value":68},"Adding Trigger.dev to an existing project",{"type":38,"tag":64,"props":70,"children":71},{},[72],{"type":44,"value":73},"Creating your first task",{"type":38,"tag":64,"props":75,"children":76},{},[77],{"type":44,"value":78},"Setting up trigger.config.ts",{"type":38,"tag":64,"props":80,"children":81},{},[82],{"type":44,"value":83},"Connecting to Trigger.dev cloud",{"type":38,"tag":53,"props":85,"children":87},{"id":86},"prerequisites",[88],{"type":44,"value":89},"Prerequisites",{"type":38,"tag":60,"props":91,"children":92},{},[93,98],{"type":38,"tag":64,"props":94,"children":95},{},[96],{"type":44,"value":97},"Node.js 18+ or Bun",{"type":38,"tag":64,"props":99,"children":100},{},[101,103,111],{"type":44,"value":102},"A Trigger.dev account (",{"type":38,"tag":104,"props":105,"children":109},"a",{"href":106,"rel":107},"https:\u002F\u002Fcloud.trigger.dev",[108],"nofollow",[110],{"type":44,"value":106},{"type":44,"value":112},")",{"type":38,"tag":53,"props":114,"children":116},{"id":115},"quick-start",[117],{"type":44,"value":118},"Quick Start",{"type":38,"tag":120,"props":121,"children":123},"h3",{"id":122},"_1-install-the-sdk",[124],{"type":44,"value":125},"1. Install the SDK",{"type":38,"tag":127,"props":128,"children":133},"pre",{"className":129,"code":130,"language":131,"meta":132,"style":132},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npm install @trigger.dev\u002Fsdk\n","bash","",[134],{"type":38,"tag":135,"props":136,"children":137},"code",{"__ignoreMap":132},[138],{"type":38,"tag":139,"props":140,"children":143},"span",{"class":141,"line":142},"line",1,[144,150,156],{"type":38,"tag":139,"props":145,"children":147},{"style":146},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[148],{"type":44,"value":149},"npm",{"type":38,"tag":139,"props":151,"children":153},{"style":152},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[154],{"type":44,"value":155}," install",{"type":38,"tag":139,"props":157,"children":158},{"style":152},[159],{"type":44,"value":160}," @trigger.dev\u002Fsdk\n",{"type":38,"tag":120,"props":162,"children":164},{"id":163},"_2-initialize-your-project",[165],{"type":44,"value":166},"2. Initialize Your Project",{"type":38,"tag":127,"props":168,"children":170},{"className":129,"code":169,"language":131,"meta":132,"style":132},"npx trigger init\n",[171],{"type":38,"tag":135,"props":172,"children":173},{"__ignoreMap":132},[174],{"type":38,"tag":139,"props":175,"children":176},{"class":141,"line":142},[177,182,187],{"type":38,"tag":139,"props":178,"children":179},{"style":146},[180],{"type":44,"value":181},"npx",{"type":38,"tag":139,"props":183,"children":184},{"style":152},[185],{"type":44,"value":186}," trigger",{"type":38,"tag":139,"props":188,"children":189},{"style":152},[190],{"type":44,"value":191}," init\n",{"type":38,"tag":47,"props":193,"children":194},{},[195],{"type":44,"value":196},"This creates:",{"type":38,"tag":60,"props":198,"children":199},{},[200,211,222],{"type":38,"tag":64,"props":201,"children":202},{},[203,209],{"type":38,"tag":135,"props":204,"children":206},{"className":205},[],[207],{"type":44,"value":208},"trigger.config.ts",{"type":44,"value":210}," - project configuration",{"type":38,"tag":64,"props":212,"children":213},{},[214,220],{"type":38,"tag":135,"props":215,"children":217},{"className":216},[],[218],{"type":44,"value":219},"trigger\u002F",{"type":44,"value":221}," directory - where your tasks live",{"type":38,"tag":64,"props":223,"children":224},{},[225,231],{"type":38,"tag":135,"props":226,"children":228},{"className":227},[],[229],{"type":44,"value":230},"trigger\u002Fexample.ts",{"type":44,"value":232}," - a sample task",{"type":38,"tag":120,"props":234,"children":236},{"id":235},"_3-configure-triggerconfigts",[237],{"type":44,"value":238},"3. Configure trigger.config.ts",{"type":38,"tag":127,"props":240,"children":244},{"className":241,"code":242,"language":243,"meta":132,"style":132},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { defineConfig } from \"@trigger.dev\u002Fsdk\";\n\nexport default defineConfig({\n  project: \"proj_xxxxx\", \u002F\u002F From dashboard\n  dirs: [\".\u002Ftrigger\"],\n});\n","ts",[245],{"type":38,"tag":135,"props":246,"children":247},{"__ignoreMap":132},[248,299,309,338,377,417],{"type":38,"tag":139,"props":249,"children":250},{"class":141,"line":142},[251,257,263,269,274,279,284,289,294],{"type":38,"tag":139,"props":252,"children":254},{"style":253},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[255],{"type":44,"value":256},"import",{"type":38,"tag":139,"props":258,"children":260},{"style":259},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[261],{"type":44,"value":262}," {",{"type":38,"tag":139,"props":264,"children":266},{"style":265},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[267],{"type":44,"value":268}," defineConfig",{"type":38,"tag":139,"props":270,"children":271},{"style":259},[272],{"type":44,"value":273}," }",{"type":38,"tag":139,"props":275,"children":276},{"style":253},[277],{"type":44,"value":278}," from",{"type":38,"tag":139,"props":280,"children":281},{"style":259},[282],{"type":44,"value":283}," \"",{"type":38,"tag":139,"props":285,"children":286},{"style":152},[287],{"type":44,"value":288},"@trigger.dev\u002Fsdk",{"type":38,"tag":139,"props":290,"children":291},{"style":259},[292],{"type":44,"value":293},"\"",{"type":38,"tag":139,"props":295,"children":296},{"style":259},[297],{"type":44,"value":298},";\n",{"type":38,"tag":139,"props":300,"children":302},{"class":141,"line":301},2,[303],{"type":38,"tag":139,"props":304,"children":306},{"emptyLinePlaceholder":305},true,[307],{"type":44,"value":308},"\n",{"type":38,"tag":139,"props":310,"children":312},{"class":141,"line":311},3,[313,318,323,328,333],{"type":38,"tag":139,"props":314,"children":315},{"style":253},[316],{"type":44,"value":317},"export",{"type":38,"tag":139,"props":319,"children":320},{"style":253},[321],{"type":44,"value":322}," default",{"type":38,"tag":139,"props":324,"children":326},{"style":325},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[327],{"type":44,"value":268},{"type":38,"tag":139,"props":329,"children":330},{"style":265},[331],{"type":44,"value":332},"(",{"type":38,"tag":139,"props":334,"children":335},{"style":259},[336],{"type":44,"value":337},"{\n",{"type":38,"tag":139,"props":339,"children":341},{"class":141,"line":340},4,[342,348,353,357,362,366,371],{"type":38,"tag":139,"props":343,"children":345},{"style":344},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[346],{"type":44,"value":347},"  project",{"type":38,"tag":139,"props":349,"children":350},{"style":259},[351],{"type":44,"value":352},":",{"type":38,"tag":139,"props":354,"children":355},{"style":259},[356],{"type":44,"value":283},{"type":38,"tag":139,"props":358,"children":359},{"style":152},[360],{"type":44,"value":361},"proj_xxxxx",{"type":38,"tag":139,"props":363,"children":364},{"style":259},[365],{"type":44,"value":293},{"type":38,"tag":139,"props":367,"children":368},{"style":259},[369],{"type":44,"value":370},",",{"type":38,"tag":139,"props":372,"children":374},{"style":373},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[375],{"type":44,"value":376}," \u002F\u002F From dashboard\n",{"type":38,"tag":139,"props":378,"children":379},{"class":141,"line":25},[380,385,389,394,398,403,407,412],{"type":38,"tag":139,"props":381,"children":382},{"style":344},[383],{"type":44,"value":384},"  dirs",{"type":38,"tag":139,"props":386,"children":387},{"style":259},[388],{"type":44,"value":352},{"type":38,"tag":139,"props":390,"children":391},{"style":265},[392],{"type":44,"value":393}," [",{"type":38,"tag":139,"props":395,"children":396},{"style":259},[397],{"type":44,"value":293},{"type":38,"tag":139,"props":399,"children":400},{"style":152},[401],{"type":44,"value":402},".\u002Ftrigger",{"type":38,"tag":139,"props":404,"children":405},{"style":259},[406],{"type":44,"value":293},{"type":38,"tag":139,"props":408,"children":409},{"style":265},[410],{"type":44,"value":411},"]",{"type":38,"tag":139,"props":413,"children":414},{"style":259},[415],{"type":44,"value":416},",\n",{"type":38,"tag":139,"props":418,"children":420},{"class":141,"line":419},6,[421,426,430],{"type":38,"tag":139,"props":422,"children":423},{"style":259},[424],{"type":44,"value":425},"}",{"type":38,"tag":139,"props":427,"children":428},{"style":265},[429],{"type":44,"value":112},{"type":38,"tag":139,"props":431,"children":432},{"style":259},[433],{"type":44,"value":298},{"type":38,"tag":120,"props":435,"children":437},{"id":436},"_4-create-your-first-task",[438],{"type":44,"value":439},"4. Create Your First Task",{"type":38,"tag":127,"props":441,"children":443},{"className":241,"code":442,"language":243,"meta":132,"style":132},"\u002F\u002F trigger\u002Fmy-task.ts\nimport { task } from \"@trigger.dev\u002Fsdk\";\n\nexport const myFirstTask = task({\n  id: \"my-first-task\",\n  run: async (payload: { name: string }) => {\n    console.log(`Hello, ${payload.name}!`);\n    return { message: `Processed ${payload.name}` };\n  },\n});\n",[444],{"type":38,"tag":135,"props":445,"children":446},{"__ignoreMap":132},[447,455,495,502,537,566,631,703,761,770],{"type":38,"tag":139,"props":448,"children":449},{"class":141,"line":142},[450],{"type":38,"tag":139,"props":451,"children":452},{"style":373},[453],{"type":44,"value":454},"\u002F\u002F trigger\u002Fmy-task.ts\n",{"type":38,"tag":139,"props":456,"children":457},{"class":141,"line":301},[458,462,466,471,475,479,483,487,491],{"type":38,"tag":139,"props":459,"children":460},{"style":253},[461],{"type":44,"value":256},{"type":38,"tag":139,"props":463,"children":464},{"style":259},[465],{"type":44,"value":262},{"type":38,"tag":139,"props":467,"children":468},{"style":265},[469],{"type":44,"value":470}," task",{"type":38,"tag":139,"props":472,"children":473},{"style":259},[474],{"type":44,"value":273},{"type":38,"tag":139,"props":476,"children":477},{"style":253},[478],{"type":44,"value":278},{"type":38,"tag":139,"props":480,"children":481},{"style":259},[482],{"type":44,"value":283},{"type":38,"tag":139,"props":484,"children":485},{"style":152},[486],{"type":44,"value":288},{"type":38,"tag":139,"props":488,"children":489},{"style":259},[490],{"type":44,"value":293},{"type":38,"tag":139,"props":492,"children":493},{"style":259},[494],{"type":44,"value":298},{"type":38,"tag":139,"props":496,"children":497},{"class":141,"line":311},[498],{"type":38,"tag":139,"props":499,"children":500},{"emptyLinePlaceholder":305},[501],{"type":44,"value":308},{"type":38,"tag":139,"props":503,"children":504},{"class":141,"line":340},[505,509,515,520,525,529,533],{"type":38,"tag":139,"props":506,"children":507},{"style":253},[508],{"type":44,"value":317},{"type":38,"tag":139,"props":510,"children":512},{"style":511},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[513],{"type":44,"value":514}," const",{"type":38,"tag":139,"props":516,"children":517},{"style":265},[518],{"type":44,"value":519}," myFirstTask ",{"type":38,"tag":139,"props":521,"children":522},{"style":259},[523],{"type":44,"value":524},"=",{"type":38,"tag":139,"props":526,"children":527},{"style":325},[528],{"type":44,"value":470},{"type":38,"tag":139,"props":530,"children":531},{"style":265},[532],{"type":44,"value":332},{"type":38,"tag":139,"props":534,"children":535},{"style":259},[536],{"type":44,"value":337},{"type":38,"tag":139,"props":538,"children":539},{"class":141,"line":25},[540,545,549,553,558,562],{"type":38,"tag":139,"props":541,"children":542},{"style":344},[543],{"type":44,"value":544},"  id",{"type":38,"tag":139,"props":546,"children":547},{"style":259},[548],{"type":44,"value":352},{"type":38,"tag":139,"props":550,"children":551},{"style":259},[552],{"type":44,"value":283},{"type":38,"tag":139,"props":554,"children":555},{"style":152},[556],{"type":44,"value":557},"my-first-task",{"type":38,"tag":139,"props":559,"children":560},{"style":259},[561],{"type":44,"value":293},{"type":38,"tag":139,"props":563,"children":564},{"style":259},[565],{"type":44,"value":416},{"type":38,"tag":139,"props":567,"children":568},{"class":141,"line":419},[569,574,578,583,588,594,598,602,607,611,616,621,626],{"type":38,"tag":139,"props":570,"children":571},{"style":325},[572],{"type":44,"value":573},"  run",{"type":38,"tag":139,"props":575,"children":576},{"style":259},[577],{"type":44,"value":352},{"type":38,"tag":139,"props":579,"children":580},{"style":511},[581],{"type":44,"value":582}," async",{"type":38,"tag":139,"props":584,"children":585},{"style":259},[586],{"type":44,"value":587}," (",{"type":38,"tag":139,"props":589,"children":591},{"style":590},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[592],{"type":44,"value":593},"payload",{"type":38,"tag":139,"props":595,"children":596},{"style":259},[597],{"type":44,"value":352},{"type":38,"tag":139,"props":599,"children":600},{"style":259},[601],{"type":44,"value":262},{"type":38,"tag":139,"props":603,"children":604},{"style":344},[605],{"type":44,"value":606}," name",{"type":38,"tag":139,"props":608,"children":609},{"style":259},[610],{"type":44,"value":352},{"type":38,"tag":139,"props":612,"children":613},{"style":146},[614],{"type":44,"value":615}," string",{"type":38,"tag":139,"props":617,"children":618},{"style":259},[619],{"type":44,"value":620}," })",{"type":38,"tag":139,"props":622,"children":623},{"style":511},[624],{"type":44,"value":625}," =>",{"type":38,"tag":139,"props":627,"children":628},{"style":259},[629],{"type":44,"value":630}," {\n",{"type":38,"tag":139,"props":632,"children":634},{"class":141,"line":633},7,[635,640,645,650,654,659,664,669,673,677,682,686,691,695,699],{"type":38,"tag":139,"props":636,"children":637},{"style":265},[638],{"type":44,"value":639},"    console",{"type":38,"tag":139,"props":641,"children":642},{"style":259},[643],{"type":44,"value":644},".",{"type":38,"tag":139,"props":646,"children":647},{"style":325},[648],{"type":44,"value":649},"log",{"type":38,"tag":139,"props":651,"children":652},{"style":344},[653],{"type":44,"value":332},{"type":38,"tag":139,"props":655,"children":656},{"style":259},[657],{"type":44,"value":658},"`",{"type":38,"tag":139,"props":660,"children":661},{"style":152},[662],{"type":44,"value":663},"Hello, ",{"type":38,"tag":139,"props":665,"children":666},{"style":259},[667],{"type":44,"value":668},"${",{"type":38,"tag":139,"props":670,"children":671},{"style":265},[672],{"type":44,"value":593},{"type":38,"tag":139,"props":674,"children":675},{"style":259},[676],{"type":44,"value":644},{"type":38,"tag":139,"props":678,"children":679},{"style":265},[680],{"type":44,"value":681},"name",{"type":38,"tag":139,"props":683,"children":684},{"style":259},[685],{"type":44,"value":425},{"type":38,"tag":139,"props":687,"children":688},{"style":152},[689],{"type":44,"value":690},"!",{"type":38,"tag":139,"props":692,"children":693},{"style":259},[694],{"type":44,"value":658},{"type":38,"tag":139,"props":696,"children":697},{"style":344},[698],{"type":44,"value":112},{"type":38,"tag":139,"props":700,"children":701},{"style":259},[702],{"type":44,"value":298},{"type":38,"tag":139,"props":704,"children":706},{"class":141,"line":705},8,[707,712,716,721,725,730,735,739,743,747,751,756],{"type":38,"tag":139,"props":708,"children":709},{"style":253},[710],{"type":44,"value":711},"    return",{"type":38,"tag":139,"props":713,"children":714},{"style":259},[715],{"type":44,"value":262},{"type":38,"tag":139,"props":717,"children":718},{"style":344},[719],{"type":44,"value":720}," message",{"type":38,"tag":139,"props":722,"children":723},{"style":259},[724],{"type":44,"value":352},{"type":38,"tag":139,"props":726,"children":727},{"style":259},[728],{"type":44,"value":729}," `",{"type":38,"tag":139,"props":731,"children":732},{"style":152},[733],{"type":44,"value":734},"Processed ",{"type":38,"tag":139,"props":736,"children":737},{"style":259},[738],{"type":44,"value":668},{"type":38,"tag":139,"props":740,"children":741},{"style":265},[742],{"type":44,"value":593},{"type":38,"tag":139,"props":744,"children":745},{"style":259},[746],{"type":44,"value":644},{"type":38,"tag":139,"props":748,"children":749},{"style":265},[750],{"type":44,"value":681},{"type":38,"tag":139,"props":752,"children":753},{"style":259},[754],{"type":44,"value":755},"}`",{"type":38,"tag":139,"props":757,"children":758},{"style":259},[759],{"type":44,"value":760}," };\n",{"type":38,"tag":139,"props":762,"children":764},{"class":141,"line":763},9,[765],{"type":38,"tag":139,"props":766,"children":767},{"style":259},[768],{"type":44,"value":769},"  },\n",{"type":38,"tag":139,"props":771,"children":773},{"class":141,"line":772},10,[774,778,782],{"type":38,"tag":139,"props":775,"children":776},{"style":259},[777],{"type":44,"value":425},{"type":38,"tag":139,"props":779,"children":780},{"style":265},[781],{"type":44,"value":112},{"type":38,"tag":139,"props":783,"children":784},{"style":259},[785],{"type":44,"value":298},{"type":38,"tag":120,"props":787,"children":789},{"id":788},"_5-start-development-server",[790],{"type":44,"value":791},"5. Start Development Server",{"type":38,"tag":127,"props":793,"children":795},{"className":129,"code":794,"language":131,"meta":132,"style":132},"npx trigger dev\n",[796],{"type":38,"tag":135,"props":797,"children":798},{"__ignoreMap":132},[799],{"type":38,"tag":139,"props":800,"children":801},{"class":141,"line":142},[802,806,810],{"type":38,"tag":139,"props":803,"children":804},{"style":146},[805],{"type":44,"value":181},{"type":38,"tag":139,"props":807,"children":808},{"style":152},[809],{"type":44,"value":186},{"type":38,"tag":139,"props":811,"children":812},{"style":152},[813],{"type":44,"value":814}," dev\n",{"type":38,"tag":120,"props":816,"children":818},{"id":817},"_6-trigger-your-task",[819],{"type":44,"value":820},"6. Trigger Your Task",{"type":38,"tag":47,"props":822,"children":823},{},[824],{"type":44,"value":825},"From your app code:",{"type":38,"tag":127,"props":827,"children":829},{"className":241,"code":828,"language":243,"meta":132,"style":132},"import { tasks } from \"@trigger.dev\u002Fsdk\";\nimport type { myFirstTask } from \".\u002Ftrigger\u002Fmy-task\";\n\nawait tasks.trigger\u003Ctypeof myFirstTask>(\"my-first-task\", {\n  name: \"World\",\n});\n",[830],{"type":38,"tag":135,"props":831,"children":832},{"__ignoreMap":132},[833,873,919,926,985,1014],{"type":38,"tag":139,"props":834,"children":835},{"class":141,"line":142},[836,840,844,849,853,857,861,865,869],{"type":38,"tag":139,"props":837,"children":838},{"style":253},[839],{"type":44,"value":256},{"type":38,"tag":139,"props":841,"children":842},{"style":259},[843],{"type":44,"value":262},{"type":38,"tag":139,"props":845,"children":846},{"style":265},[847],{"type":44,"value":848}," tasks",{"type":38,"tag":139,"props":850,"children":851},{"style":259},[852],{"type":44,"value":273},{"type":38,"tag":139,"props":854,"children":855},{"style":253},[856],{"type":44,"value":278},{"type":38,"tag":139,"props":858,"children":859},{"style":259},[860],{"type":44,"value":283},{"type":38,"tag":139,"props":862,"children":863},{"style":152},[864],{"type":44,"value":288},{"type":38,"tag":139,"props":866,"children":867},{"style":259},[868],{"type":44,"value":293},{"type":38,"tag":139,"props":870,"children":871},{"style":259},[872],{"type":44,"value":298},{"type":38,"tag":139,"props":874,"children":875},{"class":141,"line":301},[876,880,885,889,894,898,902,906,911,915],{"type":38,"tag":139,"props":877,"children":878},{"style":253},[879],{"type":44,"value":256},{"type":38,"tag":139,"props":881,"children":882},{"style":253},[883],{"type":44,"value":884}," type",{"type":38,"tag":139,"props":886,"children":887},{"style":259},[888],{"type":44,"value":262},{"type":38,"tag":139,"props":890,"children":891},{"style":265},[892],{"type":44,"value":893}," myFirstTask",{"type":38,"tag":139,"props":895,"children":896},{"style":259},[897],{"type":44,"value":273},{"type":38,"tag":139,"props":899,"children":900},{"style":253},[901],{"type":44,"value":278},{"type":38,"tag":139,"props":903,"children":904},{"style":259},[905],{"type":44,"value":283},{"type":38,"tag":139,"props":907,"children":908},{"style":152},[909],{"type":44,"value":910},".\u002Ftrigger\u002Fmy-task",{"type":38,"tag":139,"props":912,"children":913},{"style":259},[914],{"type":44,"value":293},{"type":38,"tag":139,"props":916,"children":917},{"style":259},[918],{"type":44,"value":298},{"type":38,"tag":139,"props":920,"children":921},{"class":141,"line":311},[922],{"type":38,"tag":139,"props":923,"children":924},{"emptyLinePlaceholder":305},[925],{"type":44,"value":308},{"type":38,"tag":139,"props":927,"children":928},{"class":141,"line":340},[929,934,938,942,947,952,956,961,965,969,973,977,981],{"type":38,"tag":139,"props":930,"children":931},{"style":253},[932],{"type":44,"value":933},"await",{"type":38,"tag":139,"props":935,"children":936},{"style":265},[937],{"type":44,"value":848},{"type":38,"tag":139,"props":939,"children":940},{"style":259},[941],{"type":44,"value":644},{"type":38,"tag":139,"props":943,"children":944},{"style":325},[945],{"type":44,"value":946},"trigger",{"type":38,"tag":139,"props":948,"children":949},{"style":259},[950],{"type":44,"value":951},"\u003Ctypeof",{"type":38,"tag":139,"props":953,"children":954},{"style":265},[955],{"type":44,"value":893},{"type":38,"tag":139,"props":957,"children":958},{"style":259},[959],{"type":44,"value":960},">",{"type":38,"tag":139,"props":962,"children":963},{"style":265},[964],{"type":44,"value":332},{"type":38,"tag":139,"props":966,"children":967},{"style":259},[968],{"type":44,"value":293},{"type":38,"tag":139,"props":970,"children":971},{"style":152},[972],{"type":44,"value":557},{"type":38,"tag":139,"props":974,"children":975},{"style":259},[976],{"type":44,"value":293},{"type":38,"tag":139,"props":978,"children":979},{"style":259},[980],{"type":44,"value":370},{"type":38,"tag":139,"props":982,"children":983},{"style":259},[984],{"type":44,"value":630},{"type":38,"tag":139,"props":986,"children":987},{"class":141,"line":25},[988,993,997,1001,1006,1010],{"type":38,"tag":139,"props":989,"children":990},{"style":344},[991],{"type":44,"value":992},"  name",{"type":38,"tag":139,"props":994,"children":995},{"style":259},[996],{"type":44,"value":352},{"type":38,"tag":139,"props":998,"children":999},{"style":259},[1000],{"type":44,"value":283},{"type":38,"tag":139,"props":1002,"children":1003},{"style":152},[1004],{"type":44,"value":1005},"World",{"type":38,"tag":139,"props":1007,"children":1008},{"style":259},[1009],{"type":44,"value":293},{"type":38,"tag":139,"props":1011,"children":1012},{"style":259},[1013],{"type":44,"value":416},{"type":38,"tag":139,"props":1015,"children":1016},{"class":141,"line":419},[1017,1021,1025],{"type":38,"tag":139,"props":1018,"children":1019},{"style":259},[1020],{"type":44,"value":425},{"type":38,"tag":139,"props":1022,"children":1023},{"style":265},[1024],{"type":44,"value":112},{"type":38,"tag":139,"props":1026,"children":1027},{"style":259},[1028],{"type":44,"value":298},{"type":38,"tag":47,"props":1030,"children":1031},{},[1032],{"type":44,"value":1033},"Or from the Trigger.dev dashboard \"Test\" tab.",{"type":38,"tag":53,"props":1035,"children":1037},{"id":1036},"project-structure",[1038],{"type":44,"value":1039},"Project Structure",{"type":38,"tag":127,"props":1041,"children":1045},{"className":1042,"code":1044,"language":44},[1043],"language-text","your-project\u002F\n├── trigger.config.ts    # Required - project config\n├── trigger\u002F             # Required - task files\n│   ├── my-task.ts\n│   └── another-task.ts\n├── package.json\n└── ...\n",[1046],{"type":38,"tag":135,"props":1047,"children":1048},{"__ignoreMap":132},[1049],{"type":44,"value":1044},{"type":38,"tag":53,"props":1051,"children":1053},{"id":1052},"environment-variables",[1054],{"type":44,"value":1055},"Environment Variables",{"type":38,"tag":47,"props":1057,"children":1058},{},[1059,1061,1067],{"type":44,"value":1060},"Create ",{"type":38,"tag":135,"props":1062,"children":1064},{"className":1063},[],[1065],{"type":44,"value":1066},".env",{"type":44,"value":1068}," or set in your environment:",{"type":38,"tag":127,"props":1070,"children":1072},{"className":129,"code":1071,"language":131,"meta":132,"style":132},"TRIGGER_SECRET_KEY=tr_dev_xxxxx  # From dashboard > API Keys\n",[1073],{"type":38,"tag":135,"props":1074,"children":1075},{"__ignoreMap":132},[1076],{"type":38,"tag":139,"props":1077,"children":1078},{"class":141,"line":142},[1079,1084,1088,1093],{"type":38,"tag":139,"props":1080,"children":1081},{"style":265},[1082],{"type":44,"value":1083},"TRIGGER_SECRET_KEY",{"type":38,"tag":139,"props":1085,"children":1086},{"style":259},[1087],{"type":44,"value":524},{"type":38,"tag":139,"props":1089,"children":1090},{"style":152},[1091],{"type":44,"value":1092},"tr_dev_xxxxx",{"type":38,"tag":139,"props":1094,"children":1095},{"style":373},[1096],{"type":44,"value":1097},"  # From dashboard > API Keys\n",{"type":38,"tag":53,"props":1099,"children":1101},{"id":1100},"common-issues",[1102],{"type":44,"value":1103},"Common Issues",{"type":38,"tag":120,"props":1105,"children":1107},{"id":1106},"no-tasks-found",[1108],{"type":44,"value":1109},"\"No tasks found\"",{"type":38,"tag":60,"props":1111,"children":1112},{},[1113,1134],{"type":38,"tag":64,"props":1114,"children":1115},{},[1116,1118,1124,1126,1132],{"type":44,"value":1117},"Ensure tasks are ",{"type":38,"tag":1119,"props":1120,"children":1121},"strong",{},[1122],{"type":44,"value":1123},"exported",{"type":44,"value":1125}," from files in ",{"type":38,"tag":135,"props":1127,"children":1129},{"className":1128},[],[1130],{"type":44,"value":1131},"dirs",{"type":44,"value":1133}," folders",{"type":38,"tag":64,"props":1135,"children":1136},{},[1137,1139,1144],{"type":44,"value":1138},"Check ",{"type":38,"tag":135,"props":1140,"children":1142},{"className":1141},[],[1143],{"type":44,"value":208},{"type":44,"value":1145}," points to correct directories",{"type":38,"tag":120,"props":1147,"children":1149},{"id":1148},"project-not-found",[1150],{"type":44,"value":1151},"\"Project not found\"",{"type":38,"tag":60,"props":1153,"children":1154},{},[1155,1168],{"type":38,"tag":64,"props":1156,"children":1157},{},[1158,1160,1166],{"type":44,"value":1159},"Verify ",{"type":38,"tag":135,"props":1161,"children":1163},{"className":1162},[],[1164],{"type":44,"value":1165},"project",{"type":44,"value":1167}," in config matches dashboard",{"type":38,"tag":64,"props":1169,"children":1170},{},[1171,1172,1177],{"type":44,"value":1138},{"type":38,"tag":135,"props":1173,"children":1175},{"className":1174},[],[1176],{"type":44,"value":1083},{"type":44,"value":1178}," is set",{"type":38,"tag":120,"props":1180,"children":1182},{"id":1181},"task-not-registered",[1183],{"type":44,"value":1184},"\"Task not registered\"",{"type":38,"tag":60,"props":1186,"children":1187},{},[1188,1201],{"type":38,"tag":64,"props":1189,"children":1190},{},[1191,1193,1199],{"type":44,"value":1192},"Restart ",{"type":38,"tag":135,"props":1194,"children":1196},{"className":1195},[],[1197],{"type":44,"value":1198},"npx trigger dev",{"type":44,"value":1200}," after adding new tasks",{"type":38,"tag":64,"props":1202,"children":1203},{},[1204,1206,1212,1214,1220,1222],{"type":44,"value":1205},"Tasks must use ",{"type":38,"tag":135,"props":1207,"children":1209},{"className":1208},[],[1210],{"type":44,"value":1211},"task()",{"type":44,"value":1213}," or ",{"type":38,"tag":135,"props":1215,"children":1217},{"className":1216},[],[1218],{"type":44,"value":1219},"schemaTask()",{"type":44,"value":1221}," from ",{"type":38,"tag":135,"props":1223,"children":1225},{"className":1224},[],[1226],{"type":44,"value":288},{"type":38,"tag":53,"props":1228,"children":1230},{"id":1229},"next-steps",[1231],{"type":44,"value":1232},"Next Steps",{"type":38,"tag":60,"props":1234,"children":1235},{},[1236,1248,1259,1270],{"type":38,"tag":64,"props":1237,"children":1238},{},[1239,1241,1246],{"type":44,"value":1240},"Add retry logic → see ",{"type":38,"tag":1119,"props":1242,"children":1243},{},[1244],{"type":44,"value":1245},"trigger-tasks",{"type":44,"value":1247}," skill",{"type":38,"tag":64,"props":1249,"children":1250},{},[1251,1253,1258],{"type":44,"value":1252},"Configure build extensions → see ",{"type":38,"tag":1119,"props":1254,"children":1255},{},[1256],{"type":44,"value":1257},"trigger-config",{"type":44,"value":1247},{"type":38,"tag":64,"props":1260,"children":1261},{},[1262,1264,1269],{"type":44,"value":1263},"Build AI workflows → see ",{"type":38,"tag":1119,"props":1265,"children":1266},{},[1267],{"type":44,"value":1268},"trigger-agents",{"type":44,"value":1247},{"type":38,"tag":64,"props":1271,"children":1272},{},[1273,1275,1280],{"type":44,"value":1274},"Add real-time UI → see ",{"type":38,"tag":1119,"props":1276,"children":1277},{},[1278],{"type":44,"value":1279},"trigger-realtime",{"type":44,"value":1247},{"type":38,"tag":1282,"props":1283,"children":1284},"style",{},[1285],{"type":44,"value":1286},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":1288,"total":1445},[1289,1308,1321,1331,1348,1360,1371,1388,1400,1406,1416,1430],{"slug":1290,"name":1290,"fn":1291,"description":1292,"org":1293,"tags":1294,"stars":1305,"repoUrl":1306,"updatedAt":1307},"trigger-authoring-chat-agent","author durable AI chat agents with Trigger.dev","Author and run a durable AI chat agent with chat.agent from @trigger.dev\u002Fsdk\u002Fai: the per-turn run loop, why you MUST spread ...chat.toStreamTextOptions() first, returning a StreamTextResult vs calling chat.pipe(), the two server actions (chat.createStartSessionAction + auth.createPublicToken), and wiring useChat to useTriggerChatTransport. Load this when building, modifying, or debugging a chat backend (the agent task or its lifecycle hooks) or its React transport, when declaring typed tools or custom data parts, or when migrating a plain AI SDK streamText route to chat.agent.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1295,1298,1301,1302],{"name":1296,"slug":1297,"type":16},"Agents","agents",{"name":1299,"slug":1300,"type":16},"SDK","sdk",{"name":9,"slug":8,"type":16},{"name":1303,"slug":1304,"type":16},"Workflow Automation","workflow-automation",14401,"https:\u002F\u002Fgithub.com\u002Ftriggerdotdev\u002Ftrigger.dev","2026-07-02T17:12:52.307135",{"slug":1309,"name":1309,"fn":1310,"description":1311,"org":1312,"tags":1313,"stars":1305,"repoUrl":1306,"updatedAt":1320},"trigger-authoring-tasks","author backend Trigger.dev tasks","Covers writing backend Trigger.dev tasks with @trigger.dev\u002Fsdk: defining task() and schemaTask(), the run function and its ctx, retries, waits, queues and concurrency, idempotency keys, run metadata, logging, triggering other tasks (and the Result shape), scheduled\u002Fcron tasks, and the essentials of trigger.config.ts. Load this whenever you are authoring or editing code inside a \u002Ftrigger directory, defining a task, or writing backend code that triggers tasks. Realtime\u002FReact hooks and AI chat are covered by separate skills.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1314,1317,1318,1319],{"name":1315,"slug":1316,"type":16},"Backend","backend",{"name":1299,"slug":1300,"type":16},{"name":9,"slug":8,"type":16},{"name":1303,"slug":1304,"type":16},"2026-07-02T17:12:48.396964",{"slug":1322,"name":1322,"fn":1323,"description":1324,"org":1325,"tags":1326,"stars":1305,"repoUrl":1306,"updatedAt":1330},"trigger-chat-agent-advanced","manage Trigger.dev chat sessions and transports","Advanced and operational chat.agent capabilities for Trigger.dev, loaded on demand. Load this when working on the raw Sessions primitive (sessions \u002F SessionHandle), a custom chat transport or the realtime wire protocol, durable sub-agents (AgentChat, chat.stream.writer), human-in-the-loop, steering, actions, background injection (chat.defer \u002F chat.inject), fast starts (preload, Head Start via @trigger.dev\u002Fsdk\u002Fchat-server), context resilience (compaction, recovery boot, OOM, large payloads), chat.local run-scoped state, offline testing with mockChatAgent, or prerelease\u002Fversion upgrades. For the everyday chat.agent({...}) definition and the useTriggerChatTransport happy path, use the trigger-authoring-chat-agent skill instead.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1327,1328,1329],{"name":1296,"slug":1297,"type":16},{"name":9,"slug":8,"type":16},{"name":1303,"slug":1304,"type":16},"2026-07-02T17:12:51.03018",{"slug":1332,"name":1332,"fn":1333,"description":1334,"org":1335,"tags":1336,"stars":1305,"repoUrl":1306,"updatedAt":1347},"trigger-realtime-and-frontend","subscribe to Trigger.dev runs in realtime","Trigger.dev client\u002Ffrontend surface: subscribe to runs in realtime (runs.subscribeToRun and the @trigger.dev\u002Freact-hooks hook useRealtimeRun), consume metadata and AI\u002Ftext streams in React (useRealtimeStream), trigger tasks from the browser (useTaskTrigger, useRealtimeTaskTrigger), and mint scoped frontend credentials with auth.createPublicToken \u002F auth.createTriggerPublicToken. Load when wiring a frontend (React\u002FNext.js\u002FRemix) or backend-for-frontend to show live run progress, status badges, token streams, trigger buttons, or wait-token approval UIs. NOT for writing the backend task itself (streams.define \u002F metadata.set is trigger-authoring-tasks territory); this is the consumer side.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1337,1340,1343,1346],{"name":1338,"slug":1339,"type":16},"Frontend","frontend",{"name":1341,"slug":1342,"type":16},"React","react",{"name":1344,"slug":1345,"type":16},"Real-time","real-time",{"name":9,"slug":8,"type":16},"2026-07-02T17:12:49.717706",{"slug":1268,"name":1268,"fn":1349,"description":1350,"org":1351,"tags":1352,"stars":21,"repoUrl":22,"updatedAt":1359},"orchestrate AI agents with Trigger.dev","AI agent patterns with Trigger.dev - orchestration, parallelization, routing, evaluator-optimizer, and human-in-the-loop. Use when building LLM-powered tasks that need parallel workers, approval gates, tool calling, or multi-step agent workflows.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1353,1354,1357,1358],{"name":1296,"slug":1297,"type":16},{"name":1355,"slug":1356,"type":16},"Multi-Agent","multi-agent",{"name":9,"slug":8,"type":16},{"name":1303,"slug":1304,"type":16},"2026-04-06T18:54:46.023553",{"slug":1257,"name":1257,"fn":1361,"description":1362,"org":1363,"tags":1364,"stars":21,"repoUrl":22,"updatedAt":1370},"configure Trigger.dev project settings","Configure Trigger.dev projects with trigger.config.ts. Use when setting up build extensions for Prisma, Playwright, FFmpeg, Python, or customizing deployment settings.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1365,1366,1369],{"name":14,"slug":15,"type":16},{"name":1367,"slug":1368,"type":16},"Deployment","deployment",{"name":9,"slug":8,"type":16},"2026-04-06T18:54:44.764258",{"slug":1372,"name":1372,"fn":1373,"description":1374,"org":1375,"tags":1376,"stars":21,"repoUrl":22,"updatedAt":1387},"trigger-cost-savings","optimize Trigger.dev task costs","Analyze Trigger.dev tasks, schedules, and runs for cost optimization opportunities. Use when asked to reduce spend, optimize costs, audit usage, right-size machines, or review task efficiency. Requires Trigger.dev MCP tools for run analysis.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1377,1380,1383,1386],{"name":1378,"slug":1379,"type":16},"Analytics","analytics",{"name":1381,"slug":1382,"type":16},"Cost Optimization","cost-optimization",{"name":1384,"slug":1385,"type":16},"Operations","operations",{"name":9,"slug":8,"type":16},"2026-04-06T18:54:48.555552",{"slug":1279,"name":1279,"fn":1389,"description":1390,"org":1391,"tags":1392,"stars":21,"repoUrl":22,"updatedAt":1399},"monitor Trigger.dev tasks in real-time","Subscribe to Trigger.dev task runs in real-time from frontend and backend. Use when building progress indicators, live dashboards, streaming AI\u002FLLM responses, or React components that display task status.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1393,1394,1397,1398],{"name":1338,"slug":1339,"type":16},{"name":1395,"slug":1396,"type":16},"Observability","observability",{"name":1344,"slug":1345,"type":16},{"name":9,"slug":8,"type":16},"2026-04-06T18:54:47.293822",{"slug":4,"name":4,"fn":5,"description":6,"org":1401,"tags":1402,"stars":21,"repoUrl":22,"updatedAt":23},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1403,1404,1405],{"name":14,"slug":15,"type":16},{"name":18,"slug":19,"type":16},{"name":9,"slug":8,"type":16},{"slug":1245,"name":1245,"fn":1407,"description":1408,"org":1409,"tags":1410,"stars":21,"repoUrl":22,"updatedAt":1415},"build durable background tasks with Trigger.dev","Build AI agents, workflows and durable background tasks with Trigger.dev. Use when creating tasks, triggering jobs, handling retries, scheduling cron jobs, or implementing queues and concurrency control.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1411,1412,1413,1414],{"name":1296,"slug":1297,"type":16},{"name":1315,"slug":1316,"type":16},{"name":9,"slug":8,"type":16},{"name":1303,"slug":1304,"type":16},"2026-04-06T18:54:43.514369",{"slug":1417,"name":1417,"fn":1418,"description":1419,"org":1420,"tags":1421,"stars":311,"repoUrl":1428,"updatedAt":1429},"staff-engineering-skills-backpressure","implement backpressure in streaming pipelines","Prevent unbounded resource growth when producers outpace consumers. Use when writing producer-consumer code, queue processing, batch operations, fan-out patterns, streaming pipelines, or any code where work is generated faster than it can be processed. Activates on patterns like Promise.all on dynamic-sized arrays, unbounded in-memory queues, producer loops without depth checks, fire-and-forget async calls in loops, or any buffer between a producer and consumer without a size limit.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1422,1425],{"name":1423,"slug":1424,"type":16},"Architecture","architecture",{"name":1426,"slug":1427,"type":16},"Performance","performance","https:\u002F\u002Fgithub.com\u002Ftriggerdotdev\u002Fstaff-engineering-skills","2026-06-17T08:40:42.723559",{"slug":1431,"name":1431,"fn":1432,"description":1433,"org":1434,"tags":1435,"stars":311,"repoUrl":1428,"updatedAt":1444},"staff-engineering-skills-cache-invalidation","implement cache invalidation strategies","Prevent stale data bugs caused by missing or incomplete cache invalidation. Use when adding caching layers (Redis, in-memory Map, CDN, HTTP cache headers), optimizing read performance, or reviewing code that caches query results, API responses, or computed values. Activates on patterns like cache.set without cache.delete on write paths, unbounded Map\u002Fobject caches, TTL-only invalidation on security-sensitive data, Cache-Control headers on mutable content, or any caching where the write path doesn't invalidate the read cache.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1436,1437,1440,1443],{"name":1423,"slug":1424,"type":16},{"name":1438,"slug":1439,"type":16},"Caching","caching",{"name":1441,"slug":1442,"type":16},"Engineering","engineering",{"name":1426,"slug":1427,"type":16},"2026-06-17T08:40:45.194583",26,{"items":1447,"total":419},[1448,1455,1461,1468,1475,1481],{"slug":1268,"name":1268,"fn":1349,"description":1350,"org":1449,"tags":1450,"stars":21,"repoUrl":22,"updatedAt":1359},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1451,1452,1453,1454],{"name":1296,"slug":1297,"type":16},{"name":1355,"slug":1356,"type":16},{"name":9,"slug":8,"type":16},{"name":1303,"slug":1304,"type":16},{"slug":1257,"name":1257,"fn":1361,"description":1362,"org":1456,"tags":1457,"stars":21,"repoUrl":22,"updatedAt":1370},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1458,1459,1460],{"name":14,"slug":15,"type":16},{"name":1367,"slug":1368,"type":16},{"name":9,"slug":8,"type":16},{"slug":1372,"name":1372,"fn":1373,"description":1374,"org":1462,"tags":1463,"stars":21,"repoUrl":22,"updatedAt":1387},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1464,1465,1466,1467],{"name":1378,"slug":1379,"type":16},{"name":1381,"slug":1382,"type":16},{"name":1384,"slug":1385,"type":16},{"name":9,"slug":8,"type":16},{"slug":1279,"name":1279,"fn":1389,"description":1390,"org":1469,"tags":1470,"stars":21,"repoUrl":22,"updatedAt":1399},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1471,1472,1473,1474],{"name":1338,"slug":1339,"type":16},{"name":1395,"slug":1396,"type":16},{"name":1344,"slug":1345,"type":16},{"name":9,"slug":8,"type":16},{"slug":4,"name":4,"fn":5,"description":6,"org":1476,"tags":1477,"stars":21,"repoUrl":22,"updatedAt":23},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1478,1479,1480],{"name":14,"slug":15,"type":16},{"name":18,"slug":19,"type":16},{"name":9,"slug":8,"type":16},{"slug":1245,"name":1245,"fn":1407,"description":1408,"org":1482,"tags":1483,"stars":21,"repoUrl":22,"updatedAt":1415},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1484,1485,1486,1487],{"name":1296,"slug":1297,"type":16},{"name":1315,"slug":1316,"type":16},{"name":9,"slug":8,"type":16},{"name":1303,"slug":1304,"type":16}]