Skip to main content

Standardize Geo Values

Skill Active

Convert inconsistent country and state/region formats to standardized values across contacts and companies. Ensures geographic segmentation works reliably.

Purpose

To ensure reliable geographic segmentation and reporting in HubSpot by converting all country and state/region values to standardized formats.

Features

  • Standardize country values (e.g., US, USA to United States)
  • Standardize state/region values (e.g., NY to New York)
  • API-driven batch updates for large datasets
  • Before and after audit scripts for verification
  • Guidance on preventing future inconsistencies

Use Cases

  • When inconsistent country abbreviations are breaking HubSpot list filters
  • Before running region-specific marketing campaigns or reports
  • To clean up imported data with varying geographic formats
  • As part of a broader CRM data hygiene initiative

Non-Goals

  • Filling in missing country or state data (enrichment)
  • Validating address accuracy beyond format standardization
  • Handling international address components beyond country and state/region

Workflow

  1. Gather requirements on desired standard formats and integration constraints
  2. Run 'before' script to audit current non-standard values
  3. Execute 'execute' script or manually update records via HubSpot UI
  4. Run 'after' script to verify all non-standard values have been cleared
  5. Configure HubSpot forms and import templates to prevent future inconsistencies

Practices

  • Data Quality
  • CRM Administration
  • Automation

Prerequisites

  • HubSpot CRM access with API token
  • Python 3.10+
  • `hubspot-api-client` and `python-dotenv` installed

Documentation

  • info:Configuration & parameter referenceThe SKILL.md outlines required information and decision points but does not explicitly document all parameters or default precedence for configuration settings beyond the initial interview questions.

Maintenance

  • warning:Dependency ManagementThe skill uses Python dependencies but lacks a lockfile for precise versioning and vulnerability management.

Security

  • warning:Secret ManagementThe HubSpot API token is loaded via `.env` and `python-dotenv`, but there is a risk of accidental leakage if not handled carefully, and no specific checks are in place to prevent this.

Code Execution

  • warning:ValidationThe Python scripts perform API requests but lack explicit schema validation for inputs and outputs, relying on the HubSpot API's implicit validation.
  • warning:Error HandlingThe Python scripts have basic retry logic for rate limiting but lack comprehensive error categorization, user-friendly reporting, and structured error handling for API responses.

Compliance

  • info:GDPRThe skill operates on contact and company data, which may include personal information, but it does not submit this data to third parties or perform extra sanitization beyond what the HubSpot API provides.

Errors

  • warning:Actionable error messagesThe Python scripts have basic error handling for API requests but do not provide detailed, user-friendly error messages with remediation steps for all failure scenarios.

Execution

  • warning:Pinned dependenciesThe Python scripts declare minimum dependency versions but do not pin exact versions or use a lockfile, which can lead to inconsistencies.

Scope

  • info:Dry-run previewWhile the script performs batch updates, there is no explicit dry-run mode to preview changes before execution; however, the 'before' and 'after' scripts provide a manual review mechanism.

Protocol

  • warning:Idempotent retry & timeoutsThe script includes retry logic for API rate limits but lacks hard timeouts for individual API calls and does not guarantee idempotency for batch updates beyond what the API provides.

Installation

First, add the marketplace

/plugin marketplace add TomGranot/hubspot-admin-skills
/plugin install hubspot-admin-skills@hubspot-admin-skills

Quality Score

78 /100
Analyzed about 16 hours ago

Trust Signals

Last commitabout 2 months ago
Stars21
LicenseMIT
Status
View Source

© 2025 SkillRepo · Find the right skill, skip the noise.