setup-routines
Installation
SKILL.md
Setup Routines
Configure Claude Code routines -- cloud-hosted auto sessions triggered by schedule, GitHub events, or API. Routines clone repo, run as full Claude Code sessions. Hooks + CLAUDE.md rules enforce auto.
How it works
Routine fires -> clones repo -> SessionStart hooks -> CLAUDE.md loads
-> routine prompt executes -> PostToolUse hooks enforce on every edit
-> Stop hooks run quality gates -> session ends
Enforcement model
Hooks = enforcement layer | routine prompts = task layer. Standards evolve
in repo (hooks + CLAUDE.md), routine prompts stay stable. Every routine
session runs the same PostToolUse/Stop gates as an interactive dev session,
so a routine cannot ship code that a developer could not ship locally.
For routine outputs, add /agent-watchdog audit steps; routines that open PRs should create or link /visual-recap when the diff is review-worthy.