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.
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-stagesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/TomGranot/hubspot-admin-skills /tmp/hubspot-admin-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/hubspot-admin-skills/skills/fix-lifecycle-stages ~/.gemini/antigravity-cli/skills/fix-lifecycle-stagesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install fix-lifecycle-stages in Antigravity CLI
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
ANo 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 →Scores inbound HubSpot leads on engagement, company fit and urgency, then ranks the ones worth a call today. Built for sales owners who need to decide who to call first.
Builds a ranked list of prospects by deriving an ideal customer profile from existing customers. It finds look-alike companies and decision-makers, then scores them. Built for owners who need new customers.
Writes prospect outreach and follow-up sequences in the owner's own voice, learned from their sent mail. Queues every send for approval and logs each touch to the CRM. Runs draft-only when no mail connector is available.
Writes and runs B2B cold outbound, including cold emails, follow-up sequences, LinkedIn messages and multichannel cadences. Built for sales development and outbound teams that want replies rather than template blasts.
Speed to Lead checks inbound inquiries from web forms, the shared inbox, and the CRM, then drafts replies for the owner to approve. It is for owners who lose leads because nobody replies fast enough.
Helps write, build and improve B2B cold email and follow-up sequences for prospects who did not opt in. Covers SDR and founder outreach.
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.
