Skip to content

Automation Examples

John Jansen edited this page Feb 27, 2026 · 1 revision

Automation Examples

What you can actually automate with anvil.

Issue Triage

anvil add -s "*/30 * * * *" "Check GitHub for new untriaged issues. For each unlabeled issue, read the content and apply appropriate labels (bug, feature, docs, question)."

Every 30 minutes, your issue queue stays organized.

Stale PR Review

anvil add -s "0 9 * * 1-5" "Review open pull requests older than 3 days. Post a summary comment on each and ping the author if no activity in 48h."

Weekday mornings, get a summary of PRs that need attention.

Documentation Sync

anvil add -s "0 2 * *" "Read the latest CHANGELOG.md and update README sections that reference version numbers or new features."

After midnight, update docs when versions change.

One-off Tasks

anvil add -s "" "Migrate the database schema to add the new users table"

Empty schedule means run once and delete.

Continuous Monitoring

anvil add -s "persistent" "Monitor a queue and process items as they arrive"

For event-driven workflows. The task runs continuously, checking for new work each cycle.

Dependency Audits

anvil add -p 5 -s "0 9 * * 1" "Run npm outdated and file issues for dependencies with security vulnerabilities"

Priority p5 so it does not block important work.

Health Checks

anvil add -s "0 */4 * * *" "Check service health endpoints and report status"

Every 4 hours, verify services are up.

Clone this wiki locally