cleanup-workflows
Installation
SKILL.md
Cleanup Workflows
Audit HubSpot workflows to remove dead weight. Unused workflows clutter the automation dashboard and make it harder to understand what is actually running.
Prerequisites
- A HubSpot private app access token (
HUBSPOT_ACCESS_TOKENin.env) with theautomationscope - Python 3.10+ with
uv - Note: The Automation API may return 403 on some plan tiers. If so, audit manually in HubSpot UI under Automation > Workflows.
- Strongly recommended: run
/workflows-as-codefirst to export a JSON backup of every workflow — deleted workflows cannot be restored, but an export lets you recreate them via the API.
Step-by-Step Instructions
Stage 1: Plan
Confirm with the user before starting:
- Archive-first policy: turn off, wait a week, then delete (recommended)?
- Any workflows that must never be touched (compliance, integrations)?