trigger-chat-agent-advanced — Claude Code skill: what it does
trigger-chat-agent-advanced — a skill for the operational layer of Trigger.dev chat.agent: raw sessions, durable sub-agents, background injection, fast starts, and context compaction.
no license 265 installs ★ 35 updated 2026-11-01
npx skills add triggerdotdev/skills --skill trigger-chat-agent-advanced -a claude-codeWhat trigger-chat-agent-advanced does
Gives agents access to the primitives that power chat.agent: the sessions API (durable, bi-directional I/O channels keyed on externalId), server-side AgentChat for running agents from tasks or webhooks, and chat.forwardSubAgent for streaming sub-agent replies to the frontend. Handles durable sub-agents as tools (AgentChat inside tool()), background injection (chat.defer, chat.inject), and fast starts via preload and Head Start from @trigger.dev/sdk/chat-server.
Covers context compaction when hitting limits, recovery after OOM, testing with mockChatAgent, and version upgrades. For the standard chat.agent({...}) definition and frontend binding via useTriggerChatTransport, there is a separate trigger-authoring-chat-agent skill.
What it helps with
- run an agent from a server task or webhook with
AgentChat - delegate work to a durable sub-agent and stream its reply
- run background work alongside streaming with
chat.defer - recover a session after OOM or context compaction
- test an agent offline with
mockChatAgent
Example prompts for the agent
- Start agent
my-chatwith message "Review PR #42" usingAgentChat - Add
research-agentas a tool and stream its reply to the frontend - Set up preload for fast agent start on user signal
How to install trigger-chat-agent-advanced
1Skills CLI (Vercel)
npx skills add triggerdotdev/skills --skill trigger-chat-agent-advanced -a claude-code2Manually: put the files in place
~/.claude/skills/trigger-chat-agent-advanced/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/trigger-chat-agent-advanced/
1Skills CLI (Vercel)
npx skills add triggerdotdev/skills --skill trigger-chat-agent-advanced -a codex2Manually: put the files in place
.agents/skills/trigger-chat-agent-advanced/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add triggerdotdev/skills --skill trigger-chat-agent-advanced -a cursor2Manually: put the files in place
.cursor/skills/trigger-chat-agent-advanced/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install triggerdotdev/skills trigger-chat-agent-advanced2Manually: put the files in place
.github/skills/trigger-chat-agent-advanced/SKILL.md1Skills CLI (Vercel)
npx skills add triggerdotdev/skills --skill trigger-chat-agent-advanced -a gemini-cli2Platform CLI
gemini skills install https://github.com/triggerdotdev/skills --path trigger-chat-agent-advancedManually: put the files in place
.devin/skills/trigger-chat-agent-advanced/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add triggerdotdev/skills --skill trigger-chat-agent-advanced -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about trigger-chat-agent-advanced
How to install trigger-chat-agent-advanced in Claude Code?
Run npx skills add triggerdotdev/skills --skill trigger-chat-agent-advanced -a claude-code. The skill will appear in ~/.claude/skills/trigger-chat-agent-advanced/SKILL.md.
What does trigger-chat-agent-advanced do?
Provides access to the operational layer of Trigger.dev: raw sessions, server-side agent execution, durable sub-agents, background injection, context compaction, and recovery after failures.
What is the difference between trigger-chat-agent-advanced and trigger-authoring-chat-agent?
This skill covers primitives under the agent: raw sessions, sub-agents, background tasks. For standard agent definition and frontend binding, use trigger-authoring-chat-agent.