/routines:createfrom routines
Creates a new Claude Code routine from a local .md file. Handles frontmatter parsing, snippet expansion, and API registration. Invoked via /create or 'create <file>'.
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.
Create a new routine from a local .md file. Strict create: the file must NOT have a trigger_id in its frontmatter. (If it does, route to update instead.)
---
name: "Display name" # required
cron: "0 8 * * *" # UTC; OR run_once_at: "2027-01-01T00:00:00Z" (exactly one)
enabled: true # default true
env_id: env_01... # required; cloud environment ID
model: claude-sonnet-4-6 # optional; one of claude-opus-4-7, claude-opus-4-7[1m], claude-sonnet-4-6, claude-haiku-4-5
allowed_tools: [Bash, Read, Write, Edit, Glob, Grep, WebFetch, WebSearch]
sources: # optional; repos cloned at session start
- url: https://github.com/owner/repo
allow_unrestricted_git_push: false
mcp_connections: # optional
- connector_uuid: <v4 uuid>
name: <name>
url: <url>
permitted_tools: []
---
(prompt body sent verbatim as the routine's user message)
trigger_id is present, abort and tell the user to use update (or deploy, which routes automatically).{{include <path>}} directives appear.{
"name": "<frontmatter.name>",
"cron_expression": "<frontmatter.cron>", // OR "run_once_at": ...
"enabled": <frontmatter.enabled ?? true>,
"job_config": {
"ccr": {
"environment_id": "<frontmatter.env_id>",
"events": [{
"data": {
"uuid": "<generated lowercase v4 uuid>",
"session_id": "",
"type": "user",
"parent_tool_use_id": null,
"message": { "content": "<expanded prompt body>", "role": "user" }
}
}],
"session_context": {
"allowed_tools": <frontmatter.allowed_tools>,
"model": "<frontmatter.model>", // omit if not in frontmatter
"sources": <frontmatter.sources> // omit if not in frontmatter
}
}
},
"mcp_connections": <frontmatter.mcp_connections> // omit if not in frontmatter
}
RemoteTrigger with action: "create" and the body.trigger_id into the file's frontmatter (add a trigger_id: line at the top of the frontmatter block).https://claude.ai/code/routines/<trigger_id> + next run time.A line containing only {{include <path>}} expands to the contents of that file before the body is sent.
.md file's directory; or relative to the workspace root if that fails.{{include}} directives.The model field goes inside job_config.ccr.session_context.model for CREATE bodies. This is different from UPDATE (where it sits at the top level of the partial-update body). See the update skill for the update-side quirk.
cron interval too short: Cron must run no more than once per hour. Suggest a less frequent schedule.conflicting fields (cron + run_once_at): Set exactly one.environment_id not found: The env doesn't exist or doesn't belong to this account.deploy <file> to route automatically (create or update based on trigger_id presence)validate <file> to lint before creatingdry-run deploy <file> to preview the bodyWhat 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>"./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"./getFetch a single Claude Code routine by its trigger_id and write it to a local .md file. Invoke when the user says "get <trigger_id>" or asks to download/inspect one specific routine from the cloud.Other plugins' skills for the same job