remote-triggers
Skill7 starsChanged 21 days agoMITView on GitHub
Cross-session automation using RemoteTrigger API. Create, manage, and run scheduled remote agents that execute on cron schedules and survive session exit. Auto-activates on remote trigger, scheduled agent, cross-session, persistent schedule, automated agent, trigger API.
In this repository31 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- api-contract-testingSkill
- browser-testingSkill
- ci-cd-templatesSkill
- code-review-checklistSkill
- context-escalationSkill
- deep-analysisSkill
- deep-readSkill
- deliverySkill
- deployment-runbookSkill
- divergeSkill
- docker-deploymentSkill
- executeSkill
- experiment-loopSkill
- git-workflowSkill
- handoffSkill
- infrastructure-as-codeSkill
- investigateSkill
- kubernetes-opsSkill
- library-docsSkill
- multi-agent-orchestrationSkill
- observability-stackSkill
- repo-contextSkill
- scheduled-tasksSkill
- security-scanSkill
- skill-creatorSkill
- sre-runbooksSkill
- ui-guidelinesSkill
- verified-handoffSkill
- worktree-workflowSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 4 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Create and manage remote agent triggers that execute on schedules and survive session exit.
- Distinctive: line 14
Scheduled agents: Run specific prompts on cron schedules in the background
- Very specific: line 30
Rule of thumb: Use CronCreate for in-session monitoring.
- Very specific: line 49
Create a routine. There is no top-level cron or prompt field — the schedule field is cron_expression, and the prompt is carried inside …
- Distinctive: line 97
Update an existing routine (partial update — send only the fields that change).
- Very specific: line 117
Not available. There is no delete action — remove routines at https://claude.ai/code/routines, or use update with enabled: false to pause …
- Very specific: line 150
Use descriptive trigger names — they appear in list output
- Very specific: line 151
Test a routine with action: "run" before relying on its schedule
- Distinctive: line 152
Avoid scheduling during peak hours — spread triggers across off-peak times
- Very specific: line 153
Use update with enabled: false to pause a routine — this is the only in-tool way to stop one, since there is no delete action
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Remote Triggers
Create and manage remote agent triggers that execute on schedules and survive session exit.
When to Use
- Persistent schedules: Tasks that must run even after the session ends
- Cross-session automation: Recurring code reviews, automated deploys, health checks
- Scheduled agents: Run specific prompts on cron schedules in the background
- Team automation: Set up shared triggers that benefit the whole team
How It Differs from CronCreate
| Feature | CronCreate | RemoteTrigger |
| Survives session exit | No (session-only, in-memory) | Yes (server-side routine) |
| Runs while REPL idle | Yes | Yes (server-side) |
| Lifetime | Recurring jobs auto-expire after 7 days | No documented expiry; removed only at https://claude.ai/code/routines |
| Minimum interval | Any (5-field cron, per-minute) | 1 hour — */30 * * * * is rejected |
| Timezone | User's local time | UTC |
| Runs where | The user's local session | Isolated cloud session with its own git checkout — no local files, services, or env vars |
| Setup complexity | Low | Medium (needs environment_id + a full job_config) |
| Requires auth | No | Yes — OAuth injected in-process by the tool, never exposed |
Rule of thumb: Use CronCreate for in-session monitoring. Use RemoteTrigger for anything that must persist. For sub-hourly or event-driven watching, use neither — see Monitor in the scheduled-tasks skill.
Tool: RemoteTrigger
Actions:
list
List all configured triggers.
RemoteTrigger: { action: "list" }get
Get details of a specific trigger.
RemoteTrigger: { action: "get", trigger_id: "my-trigger" }create
Create a routine. There is no top-level cron or prompt field — the schedule field is cron_expression, and the prompt is carried inside job_config.
Required: name, exactly ONE of cron_expression / run_once_at, and job_config.
{
"action": "create",
"body": {
"name": "nightly-security-scan",
"cron_expression": "0 2 * * *",
"enabled": true,
"job_config": {
"ccr": {
"environment_id": "<environment id>",
"session_context": {
"model": "claude-sonnet-5",
"sources": [
{"git_repository": {"url": "https://github.com/<org>/<repo>"}}
],
"allowed_tools": ["Bash", "Read", "Write", "Edit", "Glob", "Grep"]
},
"events": [
{"data": {
"uuid": "<fresh lowercase v4 uuid>",
"session_id": "",
"type": "user",
"parent_tool_use_id": null,
"message": {"content": "Run /security-scan on the entire codebase and report findings", "role": "user"}
}}
]
}
}
}
}Field notes:
cron_expression— 5-field cron in UTC, minimum interval 1 hourrun_once_at— RFC3339 UTC timestamp in the future; fires once, then auto-disables. Mutually exclusive withcron_expressionjob_config.ccr.environment_id— required; selects the cloud environment to run injob_config.ccr.events[0].data.message.content— this is where the prompt goesevents[].data.uuid— generate a fresh lowercase v4 UUID per routineenabled— optional, defaults totruemcp_connections— optional,[{"connector_uuid": "...", "name": "...", "url": "https://..."}];namemust match[a-zA-Z0-9_-](no dots or spaces)
The response appends the server-parsed run time and the routine's claude.ai URL — relay both to the user.
update
Update an existing routine (partial update — send only the fields that change).
RemoteTrigger: {
action: "update",
trigger_id: "my-trigger",
body: { enabled: false }
}Updatable fields: name, cron_expression, run_once_at, enabled, job_config, mcp_connections, and clear_mcp_connections (boolean, drops all MCP connections).
run
Manually trigger an immediate execution. Body is optional.
RemoteTrigger: { action: "run", trigger_id: "my-trigger" }create_webhook_trigger
Attach an event source (for example a GitHub event) to an existing routine, so the routine fires on that event instead of a schedule. The body names the source and scope (such as a repository), the event list, a structured filter, and the routine_trigger_id to fire; the server validates the shape and rejects worker credentials. A webhook trigger has no schedule, so the response carries only the routine's claude.ai link.
delete
Not available. There is no delete action — remove routines at https://claude.ai/code/routines, or use update with enabled: false to pause one.
Execution Constraints
Routines do not run on the user's machine. Each fire spawns an isolated cloud session in Anthropic's infrastructure with its own git checkout:
- No local access — no local files, local services, or local environment variables. The cloud agent starts with zero context, so the prompt must be fully self-contained.
- The repo comes from
sources— the agent sees whateverjob_config.ccr.session_context.sources[].git_repository.urlpoints at, nothing else. - UTC only —
cron_expressionandrun_once_atare always UTC. Convert from the user's local time and confirm the conversion with them. - Minimum interval is 1 hour — sub-hourly crons are rejected. Use
CronCreateorMonitorfor anything faster. - Tool, not curl —
RemoteTriggerinjects the OAuth token in-process; it is never exposed.
Use Case Patterns
Each pattern uses the full create body above; only name, cron_expression, and the prompt at job_config.ccr.events[0].data.message.content differ. All three respect the 1-hour minimum interval and are expressed in UTC.
Nightly Security Scan
name:nightly-security-scancron_expression:0 2 * * *(02:00 UTC)- prompt: "Run /security-scan and create a GitHub issue if critical vulnerabilities are found"
Pre-Release Quality Gate
name:pre-release-checkcron_expression:0 8 * * 1-5(08:00 UTC, weekdays)- prompt: "Check if there are open PRs targeting the release branch. Run /quality-gate on each."
Dependency Update Monitor
name:dep-monitorcron_expression:0 9 * * 1(09:00 UTC, Mondays)- prompt: "Check for outdated dependencies and create a summary issue if updates are available"
Best Practices
- Use descriptive trigger names — they appear in
listoutput - Test a routine with
action: "run"before relying on its schedule - Avoid scheduling during peak hours — spread triggers across off-peak times
- Use
updatewithenabled: falseto pause a routine — this is the only in-tool way to stop one, since there is no delete action - Relay the claude.ai routine URL from the
create/updateresponse — that is where execution results appear, and failed runs usually mean the prompt needs to be more self-contained
Related
scheduled-tasksskill — Session-scoped scheduling with CronCreate (lighter weight)/schedulecommand — Higher-level wrapper for RemoteTriggerexperiment-loopskill — Metric-driven optimization loops
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

