/routines:updatefrom routines
Updates an existing Claude Code routine via read-modify-write protocol. Handles trigger_id, mcp_connections, and model field placement.
Ships in routines. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Update an existing routine. The file's frontmatter MUST have a trigger_id. (If it doesn't, route to create instead.)
The API resets missing nested fields inside job_config to maximally-permissive defaults. If you send a partial job_config, the API will silently expand allowed_tools to a default set including Bash, Write, Edit, NotebookEdit. NEVER send a partial job_config.
trigger_id is absent, abort and route to create.RemoteTrigger with action: "get" and trigger_id: <id>. Capture the response as live.live before modifying:
id, created_at, updated_at, next_run_at, creator, ended_reasonapi_token_hint, persist_session, last_fired_at, enabled_plugins, extra_marketplacesjob_config.ccr.session_context.outcomeslive:
name, cron_expression, run_once_at, enabledjob_config.ccr.environment_idjob_config.ccr.events[0].data.message.content (the expanded prompt body)job_config.ccr.session_context.allowed_tools / model / sourcesmcp_connections (see special handling below){{include <path>}} directives in the prompt body before merging (same as create).RemoteTrigger with action: "update", trigger_id: <id>, and the merged body.https://claude.ai/code/routines/<trigger_id>.Frontmatter mcp_connections | Body to send |
|---|---|
| Field absent | Don't include mcp_connections in the body. Live state preserved. |
| Non-empty list | mcp_connections: [...] (replaces live state) |
Empty list ([]) | Use clear_mcp_connections: true (NOT mcp_connections: [], which is a no-op) |
For UPDATE, the model field can be sent at the TOP LEVEL of the body, as a shortcut:
// Top-level form (works for partial update; sets model without touching anything else)
{"model": "claude-opus-4-7[1m]"}
// Full-config form (model lives inside job_config.ccr.session_context.model)
{"job_config": {"ccr": {..., "session_context": {"model": "claude-opus-4-7[1m]", ...}}}}
Use the top-level form ONLY when nothing else is changing. For any full read-modify-write, put model inside session_context as part of the merged body.
The get response does NOT include the model field, even when the routine is clearly running on a non-default model. This means:
https://claude.ai/code/routines/<id> is the only reliable visual confirmation.get, you won't have the current model. Use whatever's in frontmatter; if the user wants to preserve an unknown current model, ask them.job_config. The cost of forgetting: silent permission expansion.clear_mcp_connections: true to clear connectors. mcp_connections: [] is a no-op.enabled: false does NOT block manual run. It only pauses scheduled triggers. Tell the user this if they're confused.delete skill.error.message to the user and stop. Don't retry, don't silently fall back.cron interval too short: Pick a less frequent schedule.conflicting fields (cron + run_once_at): Set exactly one.trigger_id doesn't exist. Maybe deleted via web UI. Suggest list.deploy <file> to route automaticallydiff <file> to preview the changesetdry-run deploy <file> to preview the bodyvalidate <file> to lint frontmatter and cron rules firstWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub hamzafer/claude-routines --plugin routines13 skills in this plugin
/bulkApply an operation across many routine .md files at once. Invoke when the user says "deploy all", "deploy everything in <dir>", "validate all", "diff all", "dry-run all", or "set enabled:false on all in <dir>"./createCreate a new Claude Code routine from a local .md file. Invoke when the user says "create <file>" or when called as a sub-skill of deploy. The file's frontmatter must NOT contain a trigger_id./deleteHandle deletion requests for Claude Code routines. The RemoteTrigger API does not support delete. This skill explains that and points the user to the web UI. Invoke when the user says "delete <trigger_id>" or asks to remove a routine./deployDeploy a Claude Code routine from a local .md file. Routes to create or update based on whether the file's frontmatter has a trigger_id. Invoke when the user says "deploy <file>", "push <file>", "ship <file>", or asks to publish a routine to the cloud./diffCompare a local routine .md file against its cloud state field by field. Read-only, no API writes. Invoke when the user says "diff <file>", "what's changed in <file>", or wants to preview drift between local and cloud before deploying./dry-runPreview the exact API body that "deploy <file>" would send, without calling the API. Useful sanity check before shipping. Invoke when the user says "dry-run deploy <file>", "preview deploy <file>", or "what would deploy send".Other plugins' skills for the same job