Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

fix-lifecycle-stages

Skill by TomGranot

Fix Lifecycle Stages backfills missing lifecycle stages on HubSpot contacts and companies and corrects disallowed stage values. It also outlines prevention workflows. It is for HubSpot admins and RevOps teams who maintain CRM data.

  • Score 58
  • 81 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install fix-lifecycle-stages

Built from the published package, never by AI.

git clone --depth 1 https://github.com/TomGranot/hubspot-admin-skills /tmp/hubspot-admin-skills && mkdir -p ~/.claude/skills && cp -r /tmp/hubspot-admin-skills/skills/fix-lifecycle-stages ~/.claude/skills/fix-lifecycle-stages

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install fix-lifecycle-stages in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Fix Lifecycle Stages is an agent skill for HubSpot that works to make sure every contact and company has an appropriate lifecycle stage. A before script audits missing stages and per-stage counts. An execute script then runs clear-then-set fixes on contacts at disallowed stages such as Subscriber, Other or Evangelist. The skill also sets missing contact stages based on the associated company's stage, and it describes how to build prevention workflows.

An after script re-runs the audit to verify coverage. The source notes that HubSpot's forward-only lifecycle progression silently rejects direct moves to earlier stages, so records must be cleared first. The skill is aimed at HubSpot admins and RevOps teams who manage CRM data quality and funnel reporting. The disallowed-stage mapping is only an example, and users must define their own before running it.

Written from the project's SKILL.md and checked against it.

What it can do

  • Before auditCounts contacts and companies missing a lifecycle stage, plus per-stage totals (before.py).
  • Disallowed stage fixesClears and resets contacts at disallowed stages such as Subscriber, Other or Evangelist (execute.py).
  • Context-aware contact stagesSets missing contact stages from the associated company's stage, defaulting to Lead.
  • Company stage backfillSets companies to Customer or Opportunity based on deal status, otherwise Lead.
  • Stuck record fixesClears a stage first when a forward-only update would otherwise be silently rejected.
  • Prevention workflowsDescribes HubSpot workflows that set Lead when a contact or company stage is unknown.
  • After verificationRe-runs the audit to confirm zero missing stages (after.py).
  • CSV audit trailRecords changed record IDs and original stage values to support rollback.

What you need

  • HubSpot service key (HUBSPOT_ACCESS_TOKEN) with contact and company read/write scopes
  • Python 3.10+
  • uv
  • Bulk edit permission for Contacts and Companies in HubSpot
  • Access to Automation > Workflows in HubSpot

Try asking

  • Audit how many HubSpot contacts and companies have no lifecycle stage.
  • Fix contacts stuck at Subscriber, Other, or Evangelist by moving them to Lead.
  • Set up HubSpot workflows that assign Lead when lifecycle stage is unknown.

Good to know

  • Direct updates to an earlier lifecycle stage are silently rejected, so clear-then-set is required.
  • The disallowed-stage mappings are examples and must be defined before running execute.py.
  • The HubSpot UI may time out on very large bulk edits.
  • Rollback depends on the CSV audit trail written by the execute script.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/fix-lifecycle-stages/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to fix-lifecycle-stages

All alternatives →

Compare with lead-triage, lead-finder or outreach-composer

fix-lifecycle-stages: common questions

Why do lifecycle stage updates fail without an error?

HubSpot uses forward-only lifecycle progression by default, so a direct set to an earlier stage is silently rejected. The skill clears the stage first and then sets the new value.

Which lifecycle stage is used as the default?

The source calls Lead the safest default because it is early in the progression and does not block forward movement from workflows or deals.

Can changes made by the execute script be undone?

The execute script writes a CSV audit trail of each changed record and its original stage. The source says this can be used to batch-update records back to their previous stage.

How do I install fix-lifecycle-stages?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is fix-lifecycle-stages free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is fix-lifecycle-stages safe to use?

It scores 58 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to fix-lifecycle-stages?

Similar skills: lead-triage, lead-finder, outreach-composer, cold-email.

fix-lifecycle-stages Install

Add to stack

Loading.