Heroku App Ops
Inspect and operate Heroku apps while keeping destructive changes behind an explicit confirmation step.
Start with a snapshot
Resolve this installed skill's directory first. Do not assume the current workspace contains the skill source repository.
Run the bundled helper from this skill's scripts/ directory:
python3 /path/to/heroku-app-ops/scripts/app_snapshot.py --app <app>
If no app is known yet, run it without --app to inspect CLI and auth readiness only.
Read-only-first flow
Start with these commands before changing anything:
heroku apps:info -a <app> --jsonheroku ps -a <app>heroku releases:info -a <app>heroku maintenance -a <app>- bounded log reads such as
heroku logs -a <app> --num 200
Use one-off commands carefully:
- prefer inspection commands and idempotent diagnostics
- explain what
heroku runwill do before executing it - avoid backgrounding unknown processes
Change operations
Use explicit confirmation before:
ps:scaleps:restartmaintenance:onmaintenance:offreleases:rollback- any
runcommand that changes data or infrastructure
After a change, verify with release info, app info, and bounded logs.
Incident handling
When debugging an outage or failed release:
- capture current app state
- identify the most recent release
- inspect recent logs
- confirm whether maintenance mode is active
- propose the smallest safe corrective action
References
- Read
references/app-ops.mdfor command catalogs, incident patterns, and source links.