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_TOKEN in .env) with the automation scope
  • 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-code first 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:

  1. Archive-first policy: turn off, wait a week, then delete (recommended)?
  2. Any workflows that must never be touched (compliance, integrations)?
Installs
21
GitHub Stars
56
First Seen
Apr 9, 2026
cleanup-workflows — tomgranot/hubspot-admin-skills