Skip to content

AmadeusITGroup/ai-primitives-hub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

260 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

🎨 AI Primitives Hub

A visual marketplace for discovering, installing, and managing GitHub Copilot prompt libraries from multiple sources.

VS Code Marketplace Documentation License Version


AI Primitives Hub transforms how you discover and manage GitHub Copilot prompts. Browse a visual marketplace, search by tags, and install curated prompt libraries with a single clickβ€”no manual file copying or repository cloning required.

ℹ️ Note: This project was formerly known as Prompt Registry. It has been renamed to AI Primitives Hub to better reflect its broader scope. The extension ID (AmadeusITGroup.prompt-registry) and package name remain unchanged for compatibility β€” seeing prompt-registry in install commands and file names is expected.

AI Primitives Hub - main views


πŸ“‘ Table of Contents


πŸš€ Quick Start

  1. Install β€” Search "AI Primitives Hub" in VS Code Extensions (Ctrl+Shift+X)
  2. Select Hub β€” On first launch, choose a hub from the welcome dialog (or skip to configure later)
  3. Browse β€” Click "MARKETPLACE" in the AI Primitives Hub sidebar
  4. Install β€” Click any bundle tile, then click Install
  5. Use β€” Open Copilot Chat and type / to see your installed prompts, or run the "AI Primitives Hub: Sync All Bundles" command to verify everything synced πŸŽ‰

The extension automatically adds the Awesome Copilot source and syncs your selected hub's profiles on startup.

β†’ Full Getting Started Guide


✨ Key Features

  • 🎨 Visual Marketplace β€” Browse bundles in a tile-based interface with search, filters, and one-click install (details)
  • πŸ”Œ Multi-Source Support β€” Connect to GitHub, local directories, APM repositories, or Awesome Copilot collections (details)
  • πŸ“¦ Version Management β€” Track versions, detect updates, and enable automatic background updates (details)
  • πŸ‘₯ Profiles & Hubs β€” Organize bundles by project/team and share configurations across your organization (details)
  • πŸ€– Built-in Copilot Skill β€” Ask GitHub Copilot questions about AI Primitives Hub directly in chat β€” setup, authoring, troubleshooting, and more
  • 🌍 Cross-Platform β€” Works on macOS, Linux, and Windows with all VS Code flavors

πŸ“– Core Concepts

New to the project? These six terms appear everywhere:

Term Meaning
Primitive A single AI asset: a prompt, instruction, agent, chat mode, skill, or MCP server configuration
Bundle An installable package of primitives, described by a deployment-manifest.yml
Collection A repository that offers one or more bundles
Source Anywhere bundles come from β€” a GitHub repo, a local directory, an APM repository, or Awesome Copilot
Hub A shared configuration that defines profiles for a team or organization
Profile A named set of bundles within a hub (e.g. "frontend team")

Every bundle ships a manifest that declares its contents. A minimal example:

# deployment-manifest.yml
name: my-team-prompts
version: 1.0.0
description: Shared prompts for the frontend team
primitives:
  - type: prompt
    path: prompts/write-unit-tests.prompt.md
  - type: instruction
    path: instructions/typescript-style.instructions.md

Manifests are validated against the JSON schemas in schemas/ at install time.

β†’ Author Guide: Creating a Collection


πŸ€– Ask Copilot About AI Primitives Hub

AI Primitives Hub ships with a built-in Copilot skill that lets you ask GitHub Copilot questions about the extension directly in chat. No extra setup is required β€” the skill is available as soon as the extension is installed.

What you can ask:

  • Users β€” "How do I add a local source?", "What scopes are available?", "Why isn't my hub showing?"
  • Authors β€” "How do I create a collection?", "What fields are required in a manifest?", "How do I publish to a hub?"

The skill answers from the extension's own documentation, so responses are always grounded in the actual behavior of your installed version.

Note: The skill covers user and author topics only. For contributor questions (architecture, testing, internals), consult the Contributor Guide directly.

Seeing incorrect or unexpected answers? Please open an issue describing the question you asked and the response you received, or reach out to one of the project contributors directly.


πŸ“š Documentation

Audience Description Link
Users Installation, marketplace, sources, profiles, troubleshooting User Guide
Authors Creating, validating, and publishing prompt collections Author Guide
Contributors Development setup, architecture, testing, coding standards Contributor Guide
Reference Commands, settings, adapter API, hub schema Reference Docs

β†’ Full Documentation Index


πŸ“¦ Installation

From VS Code Marketplace:

  1. Open VS Code β†’ Press Ctrl+Shift+X
  2. Search "AI Primitives Hub" β†’ Click Install

From VSIX:

Download the latest .vsix from the Releases page, then install it (replace <version> with the version you downloaded):

code --install-extension prompt-registry-<version>.vsix

From Source:

git clone https://github.com/AmadeusITGroup/ai-primitives-hub.git
cd ai-primitives-hub
npm install
npm run package:vsix
# Install the VSIX produced by the previous step (the filename includes the current version)
code --install-extension prompt-registry-<version>.vsix

For custom VS Code instances (with custom user-data-dir/extensions-dir):

# After building the VSIX above, install to your custom VS Code instance
code --user-data-dir "$ud" --extensions-dir "$ed" --install-extension prompt-registry-<version>.vsix

πŸ”Œ Supported Sources

Source Type Description
Awesome Copilot Curated community collections
GitHub Direct from GitHub repositories
Local File system directories
APM APM package repositories

β†’ Source Configuration Guide


πŸ—οΈ Architecture Overview

The extension is layered: UI β†’ Commands β†’ Services β†’ Adapters β†’ Storage, with the RegistryManager orchestrating everything. All source types are accessed through a common adapter interface, so the rest of the codebase never contains source-specific logic.

flowchart TD
    UI[Marketplace webview and tree views] --> CMD[Commands]
    CMD --> RM[RegistryManager<br/>central orchestrator]
    RM --> AD[Adapters<br/>GitHub / Local / APM / Awesome Copilot]
    AD --> BI[BundleInstaller<br/>validate, extract, record]
    BI --> MCP[MCP server integration]
    BI --> SYNC[User scope sync<br/>copies primitives into Copilot folders]
    RM --> ST[(Persistent registry state)]
Loading

Install flow: the adapter fetches the bundle β†’ its deployment-manifest.yml is validated against the JSON schemas β†’ contents are extracted to managed storage β†’ primitives are synced into the folders GitHub Copilot reads β†’ the update service tracks the bundle for new versions.

β†’ Full Architecture Documentation


πŸ“ Repository Structure

Path What lives there
src/ The VS Code extension: activation, commands, services, adapters, webview UI
lib/ Core library and CLI β€” install bundles from the terminal without VS Code
schemas/ JSON schemas for collection and bundle manifests
github-actions/ Reusable GitHub Action for validating collections in CI
docs/ User, author, and contributor documentation
website/ Documentation website
templates/ Scaffolding templates for new collections
test/ Unit and integration tests

πŸ”§ Troubleshooting

Bundles not showing in Copilot?

  • Check sync completed in extension logs
  • Run "AI Primitives Hub: Sync All Bundles"
  • Reload VS Code (Command Palette β†’ "Developer: Reload Window")
  • Verify the synced files exist on disk:
OS Synced prompts location
Linux ~/.config/Code/User/prompts
macOS ~/Library/Application Support/Code/User/prompts
Windows %APPDATA%\Code\User\prompts

Installation fails?

  • Verify network connection and repository access
  • Check bundle has valid deployment-manifest.yml (validated against schemas/)

β†’ Full Troubleshooting Guide


🀝 Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

β†’ Development Setup | Coding Standards


πŸ“„ License

Apache 2.0 β€” See SECURITY.md for security policy.


πŸ™ Acknowledgments

  • Microsoft - For GitHub Copilot and VS Code
  • Awesome Copilot Community - For curated prompt collections
  • Contributors - Everyone who has contributed to this project

πŸ”— Links

Packages

 
 
 

Contributors