agentproto/ts/pb-build-pack
Claude Code and agent skill by agentproto/ts
- community
Checking that the SKILL.md file is still in the repository.
Author an agent pack (company/agency/knowledge) and import it into a guild via the registry, BYO repo, or MCP surface. Trigger for pack work - 'author a company pack', 'import a pack', 'pack init', 'ship capabilities as a pack'.
Install
npx vskill@latest install agentproto/ts/pb-build-packSKILL.md
The same SKILL.md was published earlier as agentproto/ts/pb-build-pack.
pb-build-pack — author and import an agent PACK
Goal
Package capabilities as an agent pack (one folder, one root marker), validate it, then import it through the right surface — registry, BYO repo, or MCP tools — and confirm with a re-sync.
Prerequisites (reference by name): ap-tasks if you track the work on the board; the pack machinery itself lives in this repo, not the daemon.
Steps
1. Read the committed SOP first
Read the pack authoring SOP before anything else. It is the authoritative authoring SOP — folder layout, marker semantics, what each doctype handler consumes. This playbook sequences the work; the SOP defines the artifacts.
2. Scaffold with the authoring CLI
kind is one of company | agency | knowledge — the ROOT MARKER file decides the doctype: COMPANY.md, AGENCY.md, or KNOWLEDGE.md. Never use bare pnpm pack — that is a reserved pnpm builtin, not this CLI.
3. Validate BEFORE importing
Scaffolds pass validate out of the box; fill in your content and re-run until it passes. Validation is the gate between authoring and import.
4. Import through the right surface
- House/external registry: add the source to
PACK_REGISTRY
(apps/api/src/config/pack-registry.ts) keyed by kind — external repos of any kind register like the house companies.
- BYO repo onto an EXISTING guild:
connect_pack_repo(vaults the PAT;
repo becomes a resolvable source for that guild).
- New guild from a repo:
apply_company_from_repo({repo, kind, ...}). - New guild from a registry source:
apply_company({sourceId, entryId}). - Existing guild, one operator or corpus:
install_operator/
apply_corpus.
Underneath, every import path is ONE ingress primitive:
installMode: append (default, multi-instance) | skip-existing | upsert-by-slug (re-sync). includeHandlers filters which doctype handlers materialize. All three call-sites (guild-create, corpus-apply, operator-install) route through it.
5. Verify with a re-sync
resyncGuildPackage re-fetches the source, sha-diffs against the stored guild.sourcePackage, and upserts only on change (no migration; reuses jsonb). An import that cannot survive a resync was not really installed.
Gotchas
- Validate BEFORE importing: a bad marker file means a silent doctype
mismatch — the pack lands as the wrong kind and downstream handlers skip it without an error you would notice.
- Re-running install upserts by slug — it does not duplicate. But
includeHandlers decides what materializes: a handler you filter out is simply not imported, so check the filter matches what you expect to see.
- PATs for BYO repos are vaulted, not stored in plaintext; re-resolve
through the guild's packSources, never paste tokens into pack files.
- The canonical import types live in
@agstudio/agent-package-import
(materializeAgentPackage, computePackageSha); doctype handlers in @acme/core/domain/import/handlers.ts are first-match-wins by path — ordering matters when one path could match two handlers.
Verify
pack validate <dir> passes, the MCP surface reports the pack landed (apply_company response or the guild listing shows the expected operators/corpora), and resync_pack reports no unexpected changes (sha matches, upsert no-op or intended-only delta). A pack whose resync finds a mismatch has drifted — re-import with upsert-by-slug.
Security
- Security scanPassed, 98 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/skill-pack-agentproto/src/skills/pb-build-pack/SKILL.md
Popularity
- Repository stars
- 9
- Repository forks
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/agentproto/ts/pb-build-pack)