Skip to content

Package System

Part of the split HQ ecosystem. This is the content-pack distribution system, distinct from the per-repo npm package publishing covered in Development → Publishing Packages. The hq-core scaffold ships minimal; packs add the rich capabilities on top.

HQ Packages let you distribute and install specialty content — workers, commands, skills, knowledge bases, policies, and hooks — into any HQ instance. Packs publish as @indigoai-us/hq-pack-* and install via hq install. The system went through two major iterations.

First-party packs

The indigoai-us/hq-packages repo ships the official packs, including hq-pack-design-styles, hq-pack-design-quality, hq-pack-gemini, hq-pack-gstack, and (as of hq-core v15.0.0) hq-pack-engineering. The engineering pack carries the coding toolkit that used to live inside core: 17 dev skills (/tdd, /review, /execute-task, /run-project, and more), 6 workers (qa-tester, security-scanner, and others), 4 knowledge bases, and 4 policies. Upgraders to v15 get it auto-installed by /update-hq; fresh installs add it on demand:

Terminal window
hq install github:indigoai-us/hq-packages#packages/hq-pack-engineering

What’s in a Package?

A package is a tarball containing any combination of:

Content TypeInstall LocationExample
Workersworkers/public/ or companies/{co}/workers/Campaign operations worker
Commands.claude/commands//adobe-deploy
Skills.claude/skills/Agent browser automation
Knowledgeknowledge/public/Industry-specific guides
Policies.claude/policies/Compliance rules
Hooks.claude/hooks/Pre-commit checks

v1 vs v2

The package system was built twice. v1 established the concept; v2 rebuilt it with security as the primary concern.

Aspectv1 (hq-packages-system)v2 (hq-packages-v2)
IdentityAnonymous + JWT licenseClerk user identity
AuthorizationJWT license key validationIdentity-gated entitlements
IntegrityNoneSHA256 + RSA signature
InstallSingle-step CLITwo-step: CLI downloads, Claude merges
Content safetyNoneAllow-list (yaml, md, sh only)
Threat modelNoneFormal supply chain analysis
StatusSupersededCurrent

Architecture

Developer Registry (indigo-nx) HQ Instance
───────── ────────────────── ────────────
┌─────────────┐
│ Packages DB │
│ Entitlements│
│ S3 Tarballs │
└──────┬──────┘
hq install {pkg} ───────────────►│ Verify entitlement (Clerk JWT)
│ Download tarball
◄──────┘ + SHA256 + RSA signature headers
CLI verifies integrity ──────────┘
CLI extracts to packages/installed/{slug}/
/package-install ────────────────► Claude merges content
into HQ directories
with conflict detection

Company Scoping

Packages can be installed globally or scoped to specific companies:

Terminal window
hq install adobe-pack --company acme-corp
# Installs workers to companies/acme-corp/workers/
# Instead of workers/public/

The packages/registry.yaml tracks which packages are installed and their company scope.