Publishing Collections
Choosing Where to Publish
Before publishing, decide where your collection should live:
Publish to an existing shared source
Best when your organization already maintains a central collection repository.
- Pros: Less setup — no source creation needed; immediate visibility to all hub users
- Cons: You follow the repository's review process; ownership is per-author per-collection
Publish to your own source
Best when you want full control over the review and release cycle.
- Pros: Independent review and release cycle; source can be scoped per team or project
- Cons: Initial setup required (create repo, link to hub); users must add your source or it must be added to a hub
Contributing to an Existing Source
If you're contributing a collection to a source you don't own:
- Fork the source repository on GitHub
- Clone your fork and open it in VS Code with AI Primitives Hub installed
- Create a new collection: open the Command Palette (
Ctrl+Shift+Pon Windows/Linux orCmd+Shift+Pon macOS) and run AI Primitives Hub: Create Collection - Fill in the collection metadata (id, name, description, version, author, tags) and link your primitives — see Collection Schema
- Validate: open the Command Palette (
Ctrl+Shift+Pon Windows/Linux orCmd+Shift+Pon macOS) and run AI Primitives Hub: Validate Collections - Create a new branch, commit, and open a Pull Request against the upstream source repository
Creating a New Source (GitHub Recommended)
Setup
- Scaffold a new repository: open the Command Palette (
Ctrl+Shift+Pon Windows/Linux orCmd+Shift+Pon macOS), run AI Primitives Hub: Scaffold Project, and chooseAwesome Copilot Project - Choose an empty folder where the repository should be bootstrap
- Update the content of different folder and collections files
- Validate your collection Validation
- Create a new repository in your github organization
- Do the initial commit and push to your new repository
Update the content of your collection
id: my-collection
name: My Collection
version: 1.0.0
description: What this collection does
Users Install Via
Open the Command Palette (Ctrl+Shift+P on Windows/Linux or Cmd+Shift+P on
macOS), run AI Primitives Hub: Add Source, choose a collection from a
GitHub repository, then provide the source name and repository link. The
remaining values can keep their defaults.
- Once source is added refresh your marketplace and search for your bundles you can install them
Updating
- Push a new commit in your repo
- Users will need to sync
Users update via: Right-click bundle → "Check for Updates"