Intermediate13 min

Routine Patterns — What Engineers Actually Use Them For

Four high-value production patterns cover the majority of Routine use cases: deploy verification, nightly backlog triage, documentation drift detection, and dependency security audits. Each pattern has distinct trigger requirements, connector needs, and prompt design characteristics.

Quick Reference

  • Deploy verification: GitHub webhook on CI success, replaces manual post-deploy checklist
  • Nightly backlog triage: scheduled daily, batches 24h of issues into a priority-ranked digest
  • Documentation drift: scheduled weekly, flags outdated docs and opens PRs for stale sections
  • Dependency security audit: scheduled daily, pushes patches to claude/security-patch-* branches
  • Best Routine tasks: well-defined scope, observable output, clear success criteria
  • Avoid Routines for: tasks requiring approval, ambiguous scope, coordination between people
  • Each pattern includes a distinct failure mode to guard against in prompt design

Design Principles for High-Value Routines

Not every engineering task is a good Routine candidate. The patterns that work reliably share a common structure: the task has a well-defined scope, the output is observable, and there are clear success criteria that Claude can verify without asking anyone. When these three conditions are met, Routines produce consistent value at low operational overhead.

CharacteristicGood Routine CandidatePoor Routine Candidate
ScopeBounded — specific files, directories, or event typesOpen-ended — 'check everything', 'review the codebase'
OutputObservable — Slack message, PR, issue with defined formatSubjective — 'improve code quality', 'make it better'
Success criteriaClaude can verify: did endpoint return 200? Is CVE present?Requires human judgment: 'does this look right?'
FrequencyRecurring — daily, weekly, or event-drivenOne-off — better handled interactively
CoordinationSingle actor — Claude produces the outputMulti-party — requires approval or human input mid-run
The Verifiability Test

Before building a Routine, ask: 'Can Claude determine on its own whether this run succeeded?' If the answer requires human review to confirm correctness, the task isn't a good Routine candidate yet. Either scope it down to a sub-task that is verifiable, or keep it interactive.