From b5597b83451c973b1992f69af9b9769ac6eb118f Mon Sep 17 00:00:00 2001 From: Matt Rollender Date: Fri, 24 Jul 2026 11:09:37 -0400 Subject: [PATCH 1/2] Add marketplace manifests and plugin metadata Adds Claude Code and Codex marketplace manifests so the HubSpot Agent CLI plugin is discoverable and installable through agent marketplaces. Includes a SessionStart hook that auto-installs the HubSpot CLI binary when a user first loads the plugin. Skills are linked via a git submodule pointing at HubSpot/agent-cli-skills, keeping that public repo as the customer-facing artifact while the submodule pointer is bumped by the internal eval/release pipeline. Co-Authored-By: Claude Sonnet 4.6 --- .agents/plugins/marketplace.json | 16 +++++++++++++ .claude-plugin/marketplace.json | 18 ++++++++++++++ .gitmodules | 3 +++ hubspot-agent-cli/.claude-plugin/plugin.json | 10 ++++++++ hubspot-agent-cli/.codex-plugin/plugin.json | 10 ++++++++ hubspot-agent-cli/bootstrap.sh | 25 ++++++++++++++++++++ hubspot-agent-cli/hooks/hooks.json | 14 +++++++++++ hubspot-agent-cli/skills | 1 + 8 files changed, 97 insertions(+) create mode 100644 .agents/plugins/marketplace.json create mode 100644 .claude-plugin/marketplace.json create mode 100644 .gitmodules create mode 100644 hubspot-agent-cli/.claude-plugin/plugin.json create mode 100644 hubspot-agent-cli/.codex-plugin/plugin.json create mode 100644 hubspot-agent-cli/bootstrap.sh create mode 100644 hubspot-agent-cli/hooks/hooks.json create mode 160000 hubspot-agent-cli/skills diff --git a/.agents/plugins/marketplace.json b/.agents/plugins/marketplace.json new file mode 100644 index 0000000..1bd3213 --- /dev/null +++ b/.agents/plugins/marketplace.json @@ -0,0 +1,16 @@ +{ + "name": "agent-cli", + "interface": { + "displayName": "HubSpot Agent CLI Skills" + }, + "plugins": [ + { + "name": "hubspot-agent-cli", + "source": { + "source": "local", + "path": "./hubspot-agent-cli" + }, + "category": "Development" + } + ] +} diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json new file mode 100644 index 0000000..32bc0ce --- /dev/null +++ b/.claude-plugin/marketplace.json @@ -0,0 +1,18 @@ +{ + "$schema": "https://json.schemastore.org/claude-code-marketplace.json", + "name": "agent-cli", + "description": "HubSpot CLI skills for AI agents — CRM operations, bulk data, workflows, and more", + "owner": { + "name": "HubSpot", + "email": "developer-experience@hubspot.com" + }, + "plugins": [ + { + "name": "hubspot-agent-cli", + "source": "./hubspot-agent-cli", + "description": "Skills for using the HubSpot CLI to accomplish CRM tasks — bulk operations, deal management, workflows, and more", + "category": "development", + "tags": ["hubspot", "crm", "cli", "sales", "marketing"] + } + ] +} diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..e9b72d4 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "hubspot-agent-cli/skills"] + path = hubspot-agent-cli/skills + url = https://github.com/HubSpot/agent-cli-skills.git diff --git a/hubspot-agent-cli/.claude-plugin/plugin.json b/hubspot-agent-cli/.claude-plugin/plugin.json new file mode 100644 index 0000000..630adad --- /dev/null +++ b/hubspot-agent-cli/.claude-plugin/plugin.json @@ -0,0 +1,10 @@ +{ + "name": "hubspot-agent-cli", + "version": "1.0.0", + "description": "Skills for using the HubSpot CLI to accomplish CRM tasks — bulk operations, deal management, workflows, and more", + "author": { + "name": "HubSpot", + "email": "developer-experience@hubspot.com" + }, + "repository": "https://github.com/HubSpot/agent-cli" +} diff --git a/hubspot-agent-cli/.codex-plugin/plugin.json b/hubspot-agent-cli/.codex-plugin/plugin.json new file mode 100644 index 0000000..091c1d5 --- /dev/null +++ b/hubspot-agent-cli/.codex-plugin/plugin.json @@ -0,0 +1,10 @@ +{ + "name": "hubspot-agent-cli", + "version": "1.0.0", + "description": "Skills for using the HubSpot CLI to accomplish CRM tasks — bulk operations, deal management, workflows, and more", + "author": { + "name": "HubSpot", + "email": "developer-experience@hubspot.com" + }, + "skills": "./skills/" +} diff --git a/hubspot-agent-cli/bootstrap.sh b/hubspot-agent-cli/bootstrap.sh new file mode 100644 index 0000000..22a1cb5 --- /dev/null +++ b/hubspot-agent-cli/bootstrap.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env bash +# Install the HubSpot CLI if it isn't already available. + +if command -v hubspot &>/dev/null; then + exit 0 +fi + +if curl -fsSL --connect-timeout 5 https://install.hubspot.com 2>/dev/null | sh 2>/dev/null; then + exit 0 +fi + +cat <<'MSG' +HubSpot CLI auto-install failed. + +To install manually: + curl -fsSL https://install.hubspot.com | sh + +If you are in a cloud/remote session, allowlist these hosts in your +environment's network-access settings (Custom mode): + install.hubspot.com + api.hubapi.com + +Run /hubspot-agent-cli:hubspot-setup for step-by-step guidance. +MSG +exit 0 diff --git a/hubspot-agent-cli/hooks/hooks.json b/hubspot-agent-cli/hooks/hooks.json new file mode 100644 index 0000000..ea71317 --- /dev/null +++ b/hubspot-agent-cli/hooks/hooks.json @@ -0,0 +1,14 @@ +{ + "hooks": { + "SessionStart": [ + { + "hooks": [ + { + "type": "command", + "command": "bash ${CLAUDE_PLUGIN_ROOT}/bootstrap.sh" + } + ] + } + ] + } +} diff --git a/hubspot-agent-cli/skills b/hubspot-agent-cli/skills new file mode 160000 index 0000000..71f2bde --- /dev/null +++ b/hubspot-agent-cli/skills @@ -0,0 +1 @@ +Subproject commit 71f2bdefcc0247b1f378cb98186800dc57b6f6b1 From 954760065826227332c32cd7a4c0f290b374b615 Mon Sep 17 00:00:00 2001 From: Matt Rollender Date: Fri, 24 Jul 2026 11:17:34 -0400 Subject: [PATCH 2/2] Fix marketplace branding and category MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Category should be 'crm' not 'development' — target audience is non-technical CRM users, not developers. Also rename display name to 'HubSpot Agent CLI'. Co-Authored-By: Claude Sonnet 4.6 --- .agents/plugins/marketplace.json | 2 +- .claude-plugin/marketplace.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.agents/plugins/marketplace.json b/.agents/plugins/marketplace.json index 1bd3213..6fcd255 100644 --- a/.agents/plugins/marketplace.json +++ b/.agents/plugins/marketplace.json @@ -1,7 +1,7 @@ { "name": "agent-cli", "interface": { - "displayName": "HubSpot Agent CLI Skills" + "displayName": "HubSpot Agent CLI" }, "plugins": [ { diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 32bc0ce..6e7b335 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -1,6 +1,6 @@ { "$schema": "https://json.schemastore.org/claude-code-marketplace.json", - "name": "agent-cli", + "name": "HubSpot Agent CLI", "description": "HubSpot CLI skills for AI agents — CRM operations, bulk data, workflows, and more", "owner": { "name": "HubSpot", @@ -11,7 +11,7 @@ "name": "hubspot-agent-cli", "source": "./hubspot-agent-cli", "description": "Skills for using the HubSpot CLI to accomplish CRM tasks — bulk operations, deal management, workflows, and more", - "category": "development", + "category": "crm", "tags": ["hubspot", "crm", "cli", "sales", "marketing"] } ]