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

standardize-geo-values

Skill by TomGranot

Standardizes inconsistent country and state/region values across HubSpot contacts and companies. Built for CRM users whose geographic segmentation and regional reporting break because of mixed formats.

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

Install standardize-geo-values

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/standardize-geo-values ~/.claude/skills/standardize-geo-values

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

Step-by-step: install standardize-geo-values in Claude Code

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

About

This agent skill converts inconsistent country and state or region values, such as "US", "USA" and "U.S." versus "United States", into one standard format across HubSpot contact and company records. It runs in three stages: before.py counts variant values, execute.py applies a variant-to-standard mapping through batch updates, and after.py checks that every variant returns zero. The default standard uses full country names, which matches HubSpot's default form behavior.

The skill is for teams whose geographic segmentation and regional campaigns are affected by mixed formats. It also describes a manual bulk edit method in the HubSpot UI and steps to configure dropdowns and forms that prevent future inconsistencies. It advises agreeing on the format with any integrated CRM first and does not change blank values.

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

What it can do

  • Audit variant countsCounts contacts and companies per variant country value before any changes are made (before.py).
  • Batch standardize valuesApplies COUNTRY_MAPPING and STATE_MAPPING tables through HubSpot batch updates of 100 records per call (execute.py).
  • Verify resultsRe-runs the variant checks to confirm that all known variants return zero records (after.py).
  • Format interviewAsks whether country values should use full names or ISO codes before standardizing.
  • CSV audit trailRecords each changed record with its original value so changes can be reverted.
  • Prevent future inconsistenciesGuides configuring country and state fields as dropdowns and checking forms and import templates.

What you need

  • HubSpot service key (HUBSPOT_ACCESS_TOKEN in .env) with contact and company read/write scopes
  • Python 3.10+
  • uv
  • Access to Contacts and Companies views with bulk edit permissions

Try asking

  • Count contacts and companies that use US, USA or U.S. as their country.
  • Standardize my HubSpot country values to full names like United States.
  • Check that no state abbreviations like NY or CA remain in my CRM.

Good to know

  • Blank or empty country values are not touched; filling them is a separate enrichment task.
  • The HubSpot Search API caps results at 10,000 per query.
  • Bulk edit batch sizes vary by plan, often 100 to 250 records at a time.
  • Company state abbreviations may be acceptable, so the user must decide whether to standardize them.

Security check

A

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

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

Alternatives to standardize-geo-values

All alternatives →

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

standardize-geo-values: common questions

Does this skill fill in missing country data?

No. The source says blank or empty values are not touched, and filling them is a separate enrichment task.

What format does it use for countries by default?

It uses full names such as "United States" and "United Kingdom", which matches HubSpot's default form behavior. ISO codes are an option chosen during the interview.

Can the changes be undone?

Yes. The execute script writes a CSV audit trail with original values, and individual values can be reverted from each record's property history.

How do I install standardize-geo-values?

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

Is standardize-geo-values free?

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

Is standardize-geo-values 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 standardize-geo-values?

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

standardize-geo-values Install

Add to stack

Loading.