Skip to content

Latest commit

Β 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

community-collections

Welcome to your prompt collection! This repository contains prompts, instructions, agents, skills, and collections to enhance your GitHub Copilot experience.

πŸ“– Repository Structure

β”œβ”€β”€ prompts/              # Task-specific prompts (.prompt.md)
β”œβ”€β”€ instructions/         # Coding standards and best practices (.instructions.md)
β”œβ”€β”€ agents/               # AI personas and specialized modes (.agent.md)
β”œβ”€β”€ skills/               # Agent skills with bundled assets (SKILL.md)
β”œβ”€β”€ collections/          # Curated collections (.collection.yml)
β”œβ”€β”€ mcp-server/           # Optional: MCP server configuration
β”œβ”€β”€ scripts/              # Validation and creation utilities
β”œβ”€β”€ .vscode/              # VS Code settings and extensions
└── package.json          # Node.js dependencies

πŸ”— About AI Primitives Hub

This repository is part of the AI Primitives Hub ecosystem - a VS Code extension and framework for managing AI prompt collections for GitHub Copilot.

What is AI Primitives Hub?

AI Primitives Hub is a comprehensive platform that enables:

  • Discovery: Browse and install prompt collections from various sources
  • Management: Organize prompts, instructions, agents, and skills in one place
  • Collaboration: Share collections within your team or organization
  • Version Control: Track changes and maintain consistency across projects

Key Features

  • πŸš€ Marketplace UI: Visual browsing and installation of collections
  • πŸ“¦ Bundle Management: Install, update, and uninstall prompt bundles
  • πŸ‘₯ Team Collaboration: Shared profiles and favorites
  • πŸ”§ Development Tools: Scaffolding, validation, and publishing workflows
  • 🌐 Multi-Source Support: GitHub repositories, local files, and custom sources

Getting Started with AI Primitives Hub

  1. Install the Extension: Search "AI Primitives Hub" in the VS Code Marketplace
  2. Browse Collections: Use the Hub Explorer to discover available content
  3. Install & Use: One-click installation makes prompts available in Copilot Chat

πŸ“– Learn More: AI Primitives Hub Documentation

πŸš€ Quick Start

1. Install Dependencies

This project uses @prompt-registry/collection-scripts from npmjs.com.

# Install dependencies
npm install

2. Validate Your Collections

npm run validate

Checks:

  • βœ… Required fields (id, name, description)
  • βœ… ID format (lowercase, hyphens only)
  • βœ… File references exist
  • βœ… Valid YAML syntax

4. Validate Your Skills

npm run skill:validate

Checks:

  • βœ… SKILL.md frontmatter (name, description)
  • βœ… Name matches folder name
  • βœ… No duplicate skill names
  • βœ… Bundled asset size limits (max 5MB per file)

5. Use with VS Code

The scaffold includes VS Code configuration:

Recommended Extensions (auto-prompted on first open):

  • redhat.vscode-yaml - YAML language support with schema validation

Auto-configured Features:

  • YAML schema validation for .collection.yml files
  • IntelliSense for collection properties
  • Real-time validation errors

6. Ensure that the GitHub runner label is correctly configured

  • open workflows/publish.yml
  • look for runs-on: ubuntu-latest
  • ensure you are using the runner label as per recommendations of your organisation
  • update the githubRunner value in your project's configuration if needed

7. (Optional) Enable MCP Servers

What is MCP? Model Context Protocol allows your collection to provide custom tools and context to GitHub Copilot.

Quick Setup:

  1. Edit your collections/*.collection.yml file
  2. Uncomment the mcp section
  3. Choose from pre-built servers (time, filesystem, memory) or create your own

See mcp-server/README.md for detailed instructions.

8. Publish to GitHub

# Initialize git (if needed)
git init
git add .
git commit -m "Initial commit"

# Create repo on GitHub, then:
git remote add origin https://github.com/YOUR_USERNAME/YOUR_REPO.git
git branch -M main
git push -u origin main

9. Use with AI Primitives Hub Extension

Option A: Add as Source

  1. Open VS Code Command Palette (Ctrl+Shift+P)
  2. Run: "AI Primitives Hub: Add Source"
  3. Select "Github Releases" or "Collection from GitHub repository"
  4. Enter your repo URL: https://github.com/YOUR_USERNAME/YOUR_REPO

Option B: Pre-configured Default The AI Primitives Hub extension automatically includes the official github/awesome-copilot source. Once published, your collection will be available similarly.

🌐 Publishing to Hub and Profiles

What are Hubs and Profiles?

Hubs are centralized configurations that group related prompt sources. They provide:

  • Curated Content: Pre-selected collections for specific teams or domains
  • Easy Access: One-click installation of entire content sets
  • Organization: Logical grouping by department, technology, or purpose

Profiles are subsets of hub content that users can activate:

  • Shared Profiles: Curated by hub maintainers for common use cases
  • Favorites: Personal selections for daily work
  • Context Switching: Quick activation based on current task

Publishing Your Collection to a Hub

Step 1: Prepare Your Collection

Ensure your collection is ready for sharing:

# Validate everything
npm run validate
npm run skill:validate

# Test installation locally
# (Use AI Primitives Hub extension to add your repo as a source)

Step 2: Contact Hub Maintainers

  1. Identify the Right Hub: Find a hub that matches your content domain
  2. Review Hub Guidelines: Check contribution requirements and standards
  3. Submit Your Collection: Share your repository URL and collection details

Step 3: Hub Integration Process

Hub maintainers will:

  • Review Content: Check quality, relevance, and compliance
  • Test Integration: Verify installation and functionality
  • Add to Hub: Include your collection in the hub configuration
  • Create Profile: Optionally add to curated profiles

Step 4: User Access

Once published, users can:

  1. Install the Hub: Add the hub to their AI Primitives Hub
  2. Browse Collections: Find your content in the hub catalog
  3. Install Collections: One-click install to their Copilot environment
  4. Use Profiles: Activate curated profiles containing your content

Creating Your Own Hub

For teams wanting to create private hubs:

  1. Hub Configuration: Create a hub-config.yml file
  2. Source Management: Add approved repositories and collections
  3. Profile Curation: Create profiles for different use cases
  4. Distribution: Share hub URL with team members

πŸ“– Learn More: Hub Configuration Guide

🎯 Choosing the Right Agentic Primitive

When creating content for your collection, it's important to choose the right type of agentic primitive for your use case. Each primitive serves a specific purpose and has different characteristics.

Quick Decision Guide

  • 🎯 Single Task? β†’ Use a Prompt for specific, reusable instructions
  • πŸ“š Team Standards? β†’ Use Instructions for sharing best practices
  • πŸ€– Specialized Expertise? β†’ Use an Agent for consistent AI personas
  • πŸ› οΈ Complex Workflows? β†’ Use a Skill for multi-file functionality
  • πŸ“¦ Related Content? β†’ Use a Collection to organize primitives

Detailed Comparison

Primitive Best For Complexity Example
Prompt Quick, specific tasks Low "Generate unit tests"
Instruction Team standards & guidelines Medium "React coding standards"
Agent Specialized AI roles Medium-High "Security auditor persona"
Skill Complex capabilities with assets High "API documentation generator"
Collection Organizing related content Variable "React development kit"

Interactive Decision Tree

flowchart TD
    A[What do you want to create?] --> B{Specific task or general knowledge?}
    B -->|Specific task| C{Reusable behavior needed?}
    B -->|General knowledge| D{Team standards or best practices?}
    
    C -->|Yes| E{Multiple files/assets required?}
    C -->|No| F[Create Prompt]
    
    E -->|Yes| G[Create Skill]
    E -->|No| H[Create Agent]
    
    D -->|Yes| I[Create Instruction]
    D -->|No| J[Create Collection]
Loading

πŸ“– Complete Guide: Agentic Primitives Documentation

πŸ“ Creating Content

Prompts (prompts/*.prompt.md)

Task-specific instructions for Copilot.

# Generate Unit Tests

Create comprehensive unit tests for the current file.

## Instructions

1. Analyze the code structure
2. Generate test cases for all public methods
3. Include edge cases and error scenarios
4. Use the project's testing framework

## Tags

#testing #quality #automation

Instructions (instructions/*.instructions.md)

Coding standards that apply automatically.

# TypeScript Best Practices

## Guidelines

- Use explicit types, avoid `any`
- Prefer `const` over `let`
- Document public APIs with JSDoc

## Applies To

- `**/*.ts`
- `**/*.tsx`

Agents (agents/*.agent.md)

Agents are conversational AI assistants that define specialized personas for GitHub Copilot Chat. Each agent has specific expertise and guidelines for how it should respond.

# Code Reviewer

You are a senior code reviewer focused on quality and best practices.

## Expertise

- Code quality and maintainability
- Security vulnerabilities
- Performance optimization

## Guidelines

- Provide constructive feedback
- Suggest specific improvements
- Explain the reasoning

Agent Skills (skills/<name>/SKILL.md)

Domain-specific capabilities for Copilot following the Agent Skills specification.

Creating a New Skill:

npm run skill:create

This runs an interactive wizard that prompts for:

  • Name: lowercase letters, numbers, and hyphens (e.g., code-review)
  • Description: 10-1024 characters explaining what the skill does

Skill Structure:

skills/
└── my-skill/
    β”œβ”€β”€ SKILL.md        # Required: skill definition with frontmatter
    β”œβ”€β”€ example.py      # Optional: bundled asset
    └── schema.json     # Optional: bundled asset

SKILL.md Format:

---
name: my-skill
description: "A concise description of what this skill enables (10-1024 chars)"
---

# My Skill

Detailed instructions for how Copilot should use this skill.

## Capabilities

What this skill enables Copilot to do.

## Usage

When and how Copilot should apply this skill.

Bundled Assets:

  • Include supporting files (templates, schemas, examples) alongside SKILL.md
  • Maximum 5MB per file
  • Referenced in the markdown body

Validation:

npm run skill:validate

Collections (collections/*.collection.yml)

Group related items together.

id: typescript-development
name: TypeScript Development
description: Essential prompts and instructions for TypeScript projects
tags:
  - typescript
  - development
items:
  - path: prompts/generate-tests.prompt.md
    kind: prompt
  - path: instructions/typescript-style.instructions.md
    kind: instruction
  - path: skills/code-review/SKILL.md
    kind: skill

Validation Rules:

  • id: lowercase, hyphens/numbers only
  • name: 1-100 characters
  • description: 1-500 characters
  • items: 1-50 items, paths must exist
  • kind: prompt, instruction, chat-mode, agent, or skill

MCP Servers (Optional)

Add Model Context Protocol servers to provide custom tools:

# In collections/*.collection.yml
mcp:
  items:
    # Pre-built server (recommended)
    time:
      command: npx
      args:
        - -y
        - "@modelcontextprotocol/server-sequential-thinking"
    
    # Custom server (advanced)
    custom:
      command: node
      args:
        - ${bundlePath}/mcp-server/server.js

See mcp-server/README.md for available servers and custom implementation guides.

πŸ§ͺ Testing Workflow

Local Validation

# Run all validation
npm run validate
npm run skill:validate

# Or with Node directly
node validate-collections.js
node scripts/validate-skills.js

CI/CD (GitHub Actions)

The included workflow (.github/workflows/validate-collections.yml) runs automatically:

  • βœ… On every push to main/develop
  • βœ… On pull requests
  • βœ… Reports validation errors
  • βœ… Blocks merge if validation fails

Manual Testing

  1. In Copilot Chat: Use / to access prompts
  2. With AI Primitives Hub: Browse and install collections
  3. Validate Files: Check YAML syntax and file references
  4. Validate Skills: Verify SKILL.md frontmatter
  5. MCP Servers (if enabled): Verify server appears in VS Code MCP settings

πŸ“‹ Quality Checklist

Before committing:

  • npm install completed successfully
  • npm run validate passes with no errors
  • npm run skill:validate passes with no errors
  • File naming follows conventions
  • All collection paths exist
  • YAML syntax is valid
  • VS Code shows no schema errors
  • MCP configuration tested (if enabled)

πŸ“š Resources

πŸ› οΈ Extension Commands

Available when using AI Primitives Hub extension:

  • AI Primitives Hub: Validate Collections - Validate all collections
  • AI Primitives Hub: Create New Collection - Interactive collection wizard
  • AI Primitives Hub: List All Collections - View collection metadata
  • AI Primitives Hub: Add Resource - Add prompt/instruction/agent/skill

πŸ“„ License

Apache License 2.0 - see LICENSE

πŸ™ Acknowledgments

Based on github/awesome-copilot structure and best practices.


Next Steps: Review examples β†’ Run npm install β†’ Run npm run validate β†’ Run npm run skill:validate β†’ Create your first collection! πŸš€

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages