정보
이 스킬은 HubSpot 개발자 샌드박스에 대한 포괄적인 테스트를 실행하여 모든 툴킷 기능을 검증합니다. 자동으로 테스트 데이터를 생성하고, 모든 스킬에 대한 읽기/쓰기 작업을 수행한 후, 정리 작업 전에 검증 보고서를 생성합니다. 배포 전 검증을 위해 설계되었으며, 프로덕션 계정에 대한 실행은 명시적으로 차단됩니다.
빠른 설치
Claude Code
추천npx skills add TomGranot/hubspot-admin-skills -a claude-code/plugin add https://github.com/TomGranot/hubspot-admin-skillsgit clone https://github.com/TomGranot/hubspot-admin-skills.git ~/.claude/skills/sandbox-self-testClaude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요
문서
Sandbox Self-Test
Purpose
Every skill in this repo mutates or reads a live HubSpot portal, and no two portals are alike. This skill lets anyone — a contributor before opening a PR, an admin before trusting the toolkit with production, or the maintainer after a HubSpot API change — verify the whole toolkit against a disposable portal they bring themselves. HubSpot gives every account up to 10 free developer test accounts, so there is no shared test infrastructure to maintain and no credentials in the repo: bring your own sandbox, run the suite, read the report, throw the sandbox away.
Key Constraint
This suite seeds, mutates, and deletes data. It must never touch production. The lockout is enforced in code, not by convention:
- The suite reads its own env var,
HUBSPOT_SANDBOX_ACCESS_TOKEN— it never readsHUBSPOT_ACCESS_TOKEN, so a production token in your.envcannot be picked up by accident. - Every script (not just preflight) calls
GET /account-info/v3/detailsbefore acting and refuses unlessaccountTypeisDEVELOPER_TESTorSANDBOX. The check fails closed — any error verifying the account type is a refusal — and there is no override flag.
Prerequisites
- A developer test account (free: HubSpot Settings > Testing > Developer test accounts, up to 10 per account, 90-day expiry renewed by API activity) or a standard sandbox (Enterprise plans)
- A private app inside that test account with scopes:
crm.objects.contacts.read/write,crm.objects.companies.read/write,crm.objects.owners.read,crm.lists.read/write,automation - Its token in
.envasHUBSPOT_SANDBOX_ACCESS_TOKEN(keep it separate from your productionHUBSPOT_ACCESS_TOKEN) - Python 3.10+ with
uv
Scripts
| Stage | Script | Run with |
|---|---|---|
| Before | scripts/preflight.py | uv run skills/sandbox-self-test/scripts/preflight.py |
| Execute | scripts/seed.py | uv run skills/sandbox-self-test/scripts/seed.py |
| Execute | scripts/run_suite.py | uv run skills/sandbox-self-test/scripts/run_suite.py |
| After | scripts/teardown.py | uv run skills/sandbox-self-test/scripts/teardown.py |
preflight.py gates on account type and probes scopes. seed.py creates the fixture matrix (idempotent). run_suite.py runs the cases and writes the report (--list prints the plan without any API call). teardown.py deletes everything marker-matched, with typed confirmation.
Execution Pattern
Stage 1: Plan
Confirm with the user:
- Which portal. They must name the developer test account / sandbox being used. If they only have a production token, stop and walk them through creating a test account first — do not improvise.
- What is in it. The suite tolerates other data in the sandbox (all assertions are marker-scoped), but a sandbox that mirrors production data deserves a warning:
delete-no-email-contactsruns for real and will delete all no-email contacts in the portal, not just fixtures. An empty or purpose-made sandbox is the recommendation. - Whether to tear down at the end (default: yes).
Stage 2: Before
Run preflight. It must print GO — portal ID, account type, and all scope probes OK. A REFUSED here is the safety system working; never work around it.
Stage 3: Execute
Seed, then run the suite:
seed.pycreates 3 companies and 9 contacts, one defect per testable skill (no email, no owner, no lifecycle stage, messy geo spellings, duplicate company domains, missing company name with an association to copy from, an enrichable contact for the mock provider).run_suite.pyruns three kinds of cases:- before-smoke — every scripted skill's
before.pyruns as a subprocess with the sandbox token standing in forHUBSPOT_ACCESS_TOKEN; read-only, asserts clean exit. This is the widest net: it catches endpoint drift, scope gaps, and pagination breakage across the whole toolkit. - end-to-end —
delete-no-email-contacts(full destructive cycle with piped confirmation, verified against the Search API),waterfall-enrich-contactswith the mock provider (no credits spent, write-back verified),workflows-as-codeexport (JSON on disk verified). - api-roundtrip — a dynamic list and a v4 workflow are each created (
[SELFTEST]-prefixed, workflow disabled with a never-matching enrollment filter), fetched, verified, and deleted.
- before-smoke — every scripted skill's
All fixtures are triple-marked: reserved-TLD emails (@selftest.hubspot-admin-skills.invalid — can never receive mail), SELFTEST name prefixes, [SELFTEST] list/workflow prefixes.
Stage 4: After
Read reports/selftest-{date}.md with the user: PASS/FAIL/SKIP per case. Investigate any FAIL before using the failing skill on production — a failure here is either a fixture problem, a scope problem, or a real regression against HubSpot's current API behavior, and telling those apart is the whole point of the suite. Then run teardown.
Safety Mechanisms
| Mechanism | Detail |
|---|---|
| Production lockout | Account-type gate (DEVELOPER_TEST/SANDBOX only) enforced independently in preflight, seed, suite, and teardown. Fails closed, no override. |
| Separate token variable | HUBSPOT_SANDBOX_ACCESS_TOKEN only — a production token in HUBSPOT_ACCESS_TOKEN is invisible to this suite. |
| Marker-scoped teardown | Deletion matches selftest markers (reserved-TLD email domain, SELFTEST/[SELFTEST] prefixes) — never "everything in the portal". |
| CSV audit trail | Teardown exports every object it will delete to data/audit-logs/ before deleting, and requires typed TEARDOWN confirmation. |
| No credits spent | The enrichment case forces ENRICHMENT_PROVIDER=mock (deterministic fake data, no network). |
| Skips are visible | Anything a sandbox can't simulate is reported SKIP with the reason — the report never overstates coverage. |
Technical Gotchas
- A sandbox cannot simulate everything. Bounce state (
hs_email_hard_bounce_reason_enum), global unsubscribes (hs_email_optout), marketing status (hs_marketable_status, read-only via API), and deactivated owners all come from real events HubSpot records — they cannot be fabricated. The suite reports these as SKIP; verify those paths once, manually, when first running the corresponding skills on a real portal. - Search index lag. The Search API indexes writes asynchronously; the suite sleeps ~5s before asserting post-mutation counts. On a slow day a fresh mutation can still be missed — re-run the suite before concluding a skill is broken.
- Developer test accounts expire after 90 days without API activity. Running this suite counts as activity, so a monthly run keeps the sandbox alive. Deleted fixtures follow the same 90-day recovery window as production.
before-smokefailures on an empty sandbox are usually legitimate zero-data exits. The shippedbefore.pyscripts exit 0 on "nothing found" — if one exits non-zero on your sandbox, read its output in the report; that's a real signal, not noise.- Plan-tier gaps. Developer test accounts carry Enterprise-trial features, but a standard sandbox inherits its parent portal's tier — the v4 workflow round-trip reports SKIP on 403 rather than failing.
Rollback
Teardown is the rollback: uv run skills/sandbox-self-test/scripts/teardown.py removes every marker-matched object, and archived records remain recoverable in the sandbox for 90 days (Settings > Data Management > Deleted Objects). The nuclear option is equally valid: delete the developer test account and create a fresh one — that is what "disposable" means. Nothing this skill does can touch production, by construction.
CI (optional)
A ready-made GitHub Actions workflow ships at ci/sandbox-self-test.yml. To enable it, copy it into your fork's workflows directory and set the repository secret:
mkdir -p .github/workflows
cp skills/sandbox-self-test/ci/sandbox-self-test.yml .github/workflows/
gh secret set HUBSPOT_SANDBOX_ACCESS_TOKEN
It runs preflight → seed → suite → teardown on manual dispatch only and uploads the report as an artifact. It never runs on push or PR — the sandbox is yours, so the trigger is too. (It ships outside .github/workflows/ deliberately: enabling CI that spends your sandbox is an explicit opt-in, and tokens without the workflow scope can still push this repo.)
GitHub 저장소
Frequently asked questions
What is the sandbox-self-test skill?
sandbox-self-test is a Claude Skill by TomGranot. Skills package instructions and resources that Claude loads on demand, so Claude can perform sandbox-self-test-related tasks without extra prompting.
How do I install sandbox-self-test?
Use the install commands on this page: add sandbox-self-test to Claude Code as a plugin, or clone its repository into your skills directory, then restart Claude so it picks up the skill.
What category does sandbox-self-test belong to?
sandbox-self-test is in the Meta category, tagged ai, testing and api.
Is sandbox-self-test free to use?
Yes. sandbox-self-test is listed on AIMCP and free to install. It runs inside Claude, so no separate service account is required to use the skill itself.
연관 스킬
이 스킬은 콘텐츠 콜렉션(Content Collections)을 위한 프로덕션 검증된 설정을 제공합니다. 콘텐츠 콜렉션은 Markdown/MDX 파일을 Zod 검증이 포함된 타입 안전한 데이터 콜렉션으로 변환해주는 TypeScript 최우선 도구입니다. 블로그, 문서 사이트 또는 콘텐츠 중심의 Vite + React 애플리케이션을 구축할 때 타입 안전성과 자동 콘텐츠 검증을 보장하기 위해 사용하세요. Vite 플러그인 구성과 MDX 컴파일부터 배포 최적화 및 스키마 검증에 이르기까지 모든 것을 다룹니다.
이 스킬은 개발자들이 Polymarket 예측 시장 플랫폼을 활용한 애플리케이션을 구축할 수 있도록 지원하며, 거래 및 시장 데이터를 위한 API 통합 기능을 포함합니다. 또한 WebSocket을 통한 실시간 데이터 스트리밍을 제공하여 실시간 거래와 시장 활동을 모니터링할 수 있습니다. 이를 통해 거래 전략을 구현하거나 실시간 시장 업데이트를 처리하는 도구를 생성하는 데 활용할 수 있습니다.
이 스킬은 개발자들이 명령어, 파일, LSP 작업 등 25개 이상의 이벤트 유형에 연결되는 OpenCode 플러그인을 만들 수 있도록 돕습니다. JavaScript/TypeScript 모듈을 위한 플러그인 구조, 이벤트 API 명세, 구현 패턴을 제공합니다. OpenCode AI 어시스턴트의 라이프사이클을 사용자 정의 이벤트 기반 로직으로 가로채거나, 모니터링하거나, 확장해야 할 때 사용하세요.
SGLang은 RadixAttention 프리픽스 캐싱을 활용하여 JSON, 정규식, 에이전트 워크플로우를 위한 고속 구조화 생성에 특화된 고성능 LLM 서빙 프레임워크입니다. 특히 반복되는 프리픽스가 있는 작업에서 상당히 빠른 추론 속도를 제공하여 복잡한 구조화 출력 및 다중 턴 대화에 이상적입니다. 제약 디코딩이 필요하거나 광범위한 프리픽스 공유가 있는 애플리케이션을 구축할 때는 vLLM과 같은 대안보다 SGLang을 선택하십시오.
