pull
Installation
SKILL.md
claude-routines:pull
Mirror the cloud to local .md files. Useful for a fresh checkout or to recover after a local file loss.
Procedure
- Call
RemoteTriggerwithaction: "list". - For each trigger in the response, invoke the
getskill's procedure: fetch bytrigger_id, strip read-only fields, build YAML frontmatter, write toroutines/<kebab-case-slug>.md. - If a local file with the same slug already exists, overwrite it (the cloud is the source of truth for
pull). - Report a summary:
Pulled N routines. Wrote to routines/.
Default destination
Default write location is routines/<slug>.md. If the user has a different convention (e.g., grouping by project under routines/<project>/<slug>.md), ask before writing, or use whatever pattern existed before.
Pull caveat
The cloud sees the FULLY EXPANDED prompt body. If a routine was originally deployed using {{include <path>}} directives, the expanded version is what gets written locally. The original snippet structure is lost. The user accepts this tradeoff.