Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计提醒

hubspot-app-builderHubSpot 应用构建器

Agent Skill

hubspot-app-builder 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

717

周安装

29

GitHub Stars

2

下载量

225
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:hubspot-app-builder(HubSpot 应用构建器)
来源仓库:https://github.com/cashmyrr/skills
仓库路径:skills/hubspot-app-builder
安装命令:
npx skills add https://github.com/cashmyrr/skills --skill hubspot-app-builder
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/cashmyrr/skills --skill hubspot-app-builder

简介

HubSpot 应用构建器用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中进行内容管理。

  • 适用于代码变更检查、协作事项整理和仓库状态跟踪等开发场景。
  • 通过 npx skills add 命令从 GitHub 仓库安装使用。
  • 建议确认权限范围和维护状态,注意是否触发联网或文件读写操作。
  • hubspot-app-builder 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

HubSpot App Builder (Platform 2026.03)

This skill guides the development of full HubSpot apps on the latest developer platform (version 2026.03), covering project creation, configuration, UI extensions, serverless functions, webhooks, and distribution.

Platform version 2026.03 was released on March 30, 2026. It re-introduces full serverless function support for apps (including static-auth apps). Previous version 2025.2 is now in "Supported" status.

Prerequisites

  • HubSpot CLI v8.3.0+: npm install -g @hubspot/cli@latest
  • Authenticate: hs account auth
  • Node.js 20+ (minimum raised from 18 in 2025.1)
  • A HubSpot developer account
  • Enterprise subscription required for production serverless functions (developer test accounts work without)

Project Setup Workflow

1. Create the Project

hs project create

Follow CLI prompts to configure:

  • Distribution: marketplace (for App Marketplace listing) or private (for specific accounts)
  • Auth: oauth (multiple accounts) or static (single account)
  • Features: Select from card, settings, app-function, serverless-function, webhooks, workflow-action

To add a feature later:

hs project add

2. Project File Structure

my-project-folder/
├── hsproject.json                    # Must include "platformVersion": "2026.03"
└── src/
    └── app/
        ├── app-hsmeta.json          # Top-level app config (required)
        ├── cards/                    # UI extension cards
        │   ├── MyCard.jsx
        │   ├── my-card-hsmeta.json
        │   └── package.json
        ├── settings/                 # App settings page
        │   ├── Settings.tsx
        │   ├── settings-hsmeta.json
        │   └── package.json
        ├── serverless-functions/     # Serverless functions (new in 2026.03)
        │   ├── my-function.js
        │   └── serverless.json
        ├── app-events/               # App events (open beta)
        │   └── my-event-hsmeta.json
        ├── app-objects/              # App objects (open beta)
        │   └── my-object-hsmeta.json
        ├── webhooks/                 # Webhook subscriptions
        │   └── webhooks-hsmeta.json
        └── workflow-actions/         # Custom workflow actions
            └── custom-action-hsmeta.json

3. Configure app-hsmeta.json

{
  "uid": "my_app_uid",
  "type": "app",
  "config": {
    "name": "My App",
    "description": "App description for installing users.",
    "distribution": "marketplace",
    "auth": {
      "type": "oauth",
      "redirectUrls": ["http://localhost:3000/oauth-callback"],
      "requiredScopes": ["crm.objects.contacts.read"],
      "optionalScopes": [],
      "conditionallyRequiredScopes": []
    },
    "permittedUrls": {
      "fetch": ["https://api.example.com"],
      "iframe": [],
      "img": []
    },
    "support": {
      "supportEmail": "support@example.com",
      "documentationUrl": "https://example.com/docs"
    }
  }
}

Key rules:

  • uid must be globally unique within the project (up to 64 chars, alphanumeric + _, -, .)
  • type must match the parent folder name (app)
  • Use static auth + remove redirectUrls for single-account private apps
  • At minimum, include one read scope (e.g., crm.objects.contacts.read)

4. Upload and Deploy

hs project upload          # Upload and trigger a build
hs project open            # Open project in HubSpot browser
hs project dev             # Start local dev server with hot reload
hs project install-deps    # Install package.json dependencies

5. Install the App

After uploading, install via HubSpot UI:

  • Navigate to Development > Projects > [Project Name] > [App UID]
  • Click the Distribution tab
  • For test accounts: click Add test install(s)
  • For standard accounts: click Install now

UI Extensions

All UI extensions share the same structure: a *-hsmeta.json config + a React component file (.jsx or .tsx).

App Card Configuration (cards/*-hsmeta.json)

{
  "uid": "my-card",
  "type": "card",
  "config": {
    "name": "My Card",
    "description": "Card description.",
    "location": "crm.record.tab",
    "entrypoint": "/app/cards/MyCard.jsx",
    "objectTypes": ["contacts"]
  }
}

Supported locations:

LocationValueNotes
CRM middle columncrm.record.tabMost common; supports custom tabs
CRM right sidebarcrm.record.sidebarNo CRM data components here
CRM preview panelcrm.previewRecord previews across CRM
Help desk sidebarhelpdesk.sidebarRequires tickets scope
App home pagehomeFull-screen extension
App settings pagesettingsConfig UI in HubSpot settings

Supported objectTypes: contacts, companies, deals, tickets, orders, carts, p_customObjectName, app_object_uid

React Component Pattern

import React from "react";
import { hubspot, Text, Button, Flex } from "@hubspot/ui-extensions";

// Required: register extension with HubSpot
hubspot.extend(({ context, actions }) => (
  <MyCard context={context} addAlert={actions.addAlert} />
));

const MyCard = ({ context, addAlert }) => {
  return (
    <Flex direction="column" gap="medium">
      <Text>Hello, {context.user.firstName}!</Text>
      <Button onClick={() => addAlert({ type: "success", title: "Done", message: "Action completed" })}>
        Click me
      </Button>
    </Flex>
  );
};

SDK Hooks (Preferred Approach)

import { hubspot, Button, useExtensionApi } from "@hubspot/ui-extensions";
import { useCrmProperties } from "@hubspot/ui-extensions/crm";

hubspot.extend<'crm.record.tab'>(() => <MyCard />);

const MyCard = () => {
  // Access both context and actions
  const { context, actions } = useExtensionApi<'crm.record.tab'>();

  // Fetch CRM properties from the current record
  const { properties, isLoading } = useCrmProperties(["firstname", "lastname", "email"]);

  if (isLoading) return <Text>Loading...</Text>;

  return (
    <Button onClick={() => actions.addAlert({ message: `Hello ${properties.firstname}!` })}>
      Say Hello
    </Button>
  );
};

Available hooks:

  • useExtensionApi<location>() — access both context + actions
  • useExtensionContext<location>() — access context only
  • useExtensionActions<location>() — access actions only
  • useCrmProperties(["prop1", "prop2"]) — from @hubspot/ui-extensions/crm
  • useAssociations({toObjectType, properties, pageLength}) — from @hubspot/ui-extensions/crm

Fetching External Data

import { hubspot } from "@hubspot/ui-extensions";

// GET
const response = await hubspot.fetch("https://api.example.com/data", {
  method: "GET",
  timeout: 5000,
});
const data = await response.json();

// POST — body is a plain object, not JSON.stringify()
const response = await hubspot.fetch("https://api.example.com/data", {
  method: "POST",
  body: { key: "value" },
});

Key differences from native fetch:

  • body is a plain object — do not JSON.stringify() or set Content-Type manually
  • Only Authorization is supported as a custom header
  • URLs must be listed in permittedUrls.fetch; localhost is not allowed (use a proxy)
  • HubSpot appends userId, portalId, userEmail, appId as query params on every request
  • Max 20 concurrent requests; 15s timeout; 1MB payload limit

Your backend must validate X-HubSpot-Signature-v3 on every incoming request — see references/signature-validation.md.

For the full guide (proxy setup, Authorization header pattern, local dev signing, monitoring), see references/fetching-data.md.

Serverless Functions (New in 2026.03)

Platform version 2026.03 re-introduces full serverless function support for apps, including apps using static auth. Serverless functions execute server-side JavaScript within HubSpot's infrastructure, eliminating the need for external servers.

Types of Serverless Functions

  • Private functions — internal functions called by UI extensions (not available in CMS serverless)
  • Public endpoints — HTTP-accessible endpoints (Content Hub Enterprise only)

Configuration (serverless.json)

{
  "appFunctions": {
    "myFunction": {
      "file": "my-function.js",
      "endpoint": {
        "path": "my-endpoint",
        "method": ["GET", "POST"]
      }
    }
  }
}

Serverless Function Pattern

// my-function.js
const hubspot = require("@hubspot/api-client");

exports.main = async (context = {}) => {
  const hubspotClient = new hubspot.Client({
    accessToken: process.env.PRIVATE_APP_ACCESS_TOKEN,
  });

  try {
    const res = await hubspotClient.crm.contacts.basicApi.getPage();
    return res;
  } catch (err) {
    console.error(err);
    return err;
  }
};

Key Notes

  • Uses process.env for access tokens (not context.secrets)
  • Async/await required (callbacks no longer supported)
  • Log size up to 256KB, guaranteed execution order
  • Secrets managed via hs secret add CLI command
  • NPM packages supported
  • Enterprise subscription required for production (test accounts work without)

Migrating Serverless Functions to 2026.03

If migrating from an older version:

  1. Update platformVersion to "2026.03" in hsproject.json
  2. Environment variables from old serverless.json must be re-added as secrets using hs secret add
  3. Apps must be on at least version 2025.2 before migrating serverless functions
  4. Run hs project upload to redeploy
Warning: Migrating legacy private or public apps to 2026.03 is irreversible — you cannot downgrade back.

Available UI Components

Import from @hubspot/ui-extensions:

  • Layout: Flex, Box, Divider, Grid, AutoGrid, Spacer, Inline
  • Text/Display: Text, Heading, Image, Link, Icon, Illustration
  • Input: Input, TextArea, Select, MultiSelect, Checkbox, RadioButton, DateInput, NumberInput, CurrencyInput, SearchInput, StepperInput, Toggle, ToggleGroup
  • Actions: Button, LoadingButton, IconButton, ButtonRow
  • Feedback: Alert, LoadingSpinner, Tag, StatusTag, Badge, Tooltip, ProgressBar, EmptyState, ErrorState
  • Overlay: Modal, ModalBody, ModalFooter, Panel, PanelBody, PanelFooter, Dropdown
  • Data: Table, TableHead, TableBody, TableRow, TableCell, DescriptionList, Statistics, ScoreCircle
  • Navigation: Tabs, StepIndicator, Accordion
  • Charts: BarChart, LineChart
  • Container: Tile
  • Form: Form, FormField
  • List: List

Import from @hubspot/ui-extensions/crm:

  • CRM Data: CrmPropertyList, CrmAssociationTable, CrmAssociationPivot, CrmAssociationPropertyList, CrmAssociationStageTracker, CrmDataHighlight, CrmReport, CrmStageTracker, CrmStatistics
  • CRM Actions: CrmActionButton, CrmActionLink, CrmCardActions

Webhooks Configuration

Create src/app/webhooks/webhooks-hsmeta.json:

{
  "uid": "my-webhooks",
  "type": "webhooks",
  "config": {
    "settings": {
      "targetUrl": "https://api.example.com/webhook",
      "maxConcurrentRequests": 10
    },
    "subscriptions": {
      "crmObjects": [
        {
          "subscriptionType": "object.creation",
          "objectType": "contact",
          "active": true
        },
        {
          "subscriptionType": "object.propertyChange",
          "objectType": "contact",
          "active": true
        }
      ],
      "legacyCrmObjects": [
        {
          "subscriptionType": "contact.propertyChange",
          "propertyName": "email",
          "active": true
        }
      ],
      "hubEvents": [
        {
          "subscriptionType": "contact.privacyDeletion",
          "active": true
        }
      ]
    }
  }
}

Use crmObjects for new-format events (object.*). Use legacyCrmObjects for classic types like contact.creation. Use hubEvents for contact.privacyDeletion and conversation.*.

Signature Validation (Required)

HubSpot signs all outbound requests with X-HubSpot-Signature-v3:

  • Webhook deliveries — HubSpot POSTs event payloads to your targetUrl
  • Card / settings page fetch — any hubspot.fetch() call from a UI extension is proxied and signed by HubSpot

Both must be validated the same way using Signature.isValid() from @hubspot/api-client. For the complete implementation, see references/signature-validation.md.

package.json for UI Extensions

{
  "name": "my-card",
  "version": "0.1.0",
  "dependencies": {
    "@hubspot/ui-extensions": "latest",
    "react": "^18.2.0"
  },
  "devDependencies": {
    "typescript": "^5.3.3"
  }
}

Install: hs project install-deps

Distribution & Auth Summary

DistributionAuth TypeInstall Limit
privatestatic1 standard account + 10 test accounts
privateoauthUp to 10 allowlisted accounts
marketplaceoauth25 before listing; unlimited after

App Marketplace Listing

Before submitting to the HubSpot App Marketplace, the app must meet these key requirements:

Technical minimums:

  • OAuth is the sole authorization method — no API keys or private app tokens
  • At least 3 active installs from unaffiliated accounts with OAuth-authenticated API activity in the past 30 days
  • Only request scopes the app actually uses; all requested scopes must appear in the *Shared data* table
  • Classic CRM cards are not allowed (deprecated June 16, 2025)

Listing content:

  • Content must be integration-specific (not general product marketing)
  • All URLs must be live, publicly accessible, and under 250 characters — add *HubSpot Crawler* to your site allow list before submitting
  • Include: setup documentation, Install button URL, support resources, Terms of Service, Privacy Policy, and pricing (matching your website exactly)
  • Bi-directional sync must be declared in *Shared data* when both read and write scopes are requested for the same object

App cards (if using UI extensions):

  • Do not use HubSpot brand names in card names or icons
  • One primary button per surface; destructive buttons must use destructive styling
  • Must not access or display sensitive data

Review process: Initial review within 10 business days; full cycle up to 60 days. Only one app can be under review at a time.

For the complete requirements checklist, see references/marketplace-listing.md.

Local Development

hs project dev            # Starts dev server with hot reload

After starting, a local development homepage appears in the test account showing active dev sessions. Changes to .jsx/.tsx files reload automatically.

Note (Chrome 142+): Accept the local network access popup from app.hubspot.com on first launch.

Debugging

View logs: Development > Monitoring > Logs > UI Extensions in HubSpot.

In code, use the logger:

import { logger } from "@hubspot/ui-extensions";
logger.info("Info message");
logger.debug("Debug message");
logger.warn("Warning message");
logger.error("Error message");

Additional Resources

Reference Files

For detailed configuration and patterns, consult:

  • references/app-configuration.md — Complete app-hsmeta.json schema, auth types
  • references/scopes.md — Full list of available OAuth scopes grouped by category (CRM, CMS, settings, marketing, etc.)
  • references/ui-extensions-sdk.md — SDK hooks, context fields, actions API
  • references/fetching-data.mdhubspot.fetch() full guide: differences from native fetch, limits, auto query params, Authorization header pattern, local dev proxy, signature validation
  • references/ui-components.md — All UI components with examples
  • references/features.md — App events, app objects (open beta), settings page, home page
  • references/signature-validation.md — Full signature validation implementation for webhooks and card/settings page fetch endpoints
  • references/marketplace-listing.md — Full App Marketplace listing requirements, brand rules, app card criteria, and review process

Official Documentation

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.16%
按下载量换算79

Claude

27.3%
按下载量换算61

Cursor

18.81%
按下载量换算42

Gemini CLI

10.03%
按下载量换算23

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills