Create NuGet packages from .github agent configuration folders directly in Visual Studio.
Overview
Agent Package Manager packages GitHub Copilot assets (agents, skills, instructions, prompts, and related files) into a .nupkg by invoking ApmPackager.
The extension is designed to streamline packaging workflows for agent configuration content stored under .github.
Features
- Detects
.githubin the selected base directory - Creates or updates
.github/agent-package.json - Computes package source content hash (excluding
agent-package.json) - Auto-bumps patch version when package content changes
- Prompts for package metadata (ID, version, description, authors)
- Writes package output to
<baseDirectory>/bin/packages - Supports quick access to generated
.nupkgartifacts
Packaging Workflow
- Locate
.githubin the selected base directory - Read or create
.github/agent-package.json - Compute content hash from package source files
- Auto-bump patch version when content has changed
- Collect metadata values
- Run ApmPackager
- Persist updated
contentHashafter successful package creation
Requirements
- .NET 8 SDK (when ApmPackager is executed via
.csprojor.dll) - ApmPackager available in the repository layout or via explicit path configuration
Output
.github/agent-package.json(created or updated)<baseDirectory>/bin/packages/*.nupkg
Troubleshooting
- No
.githubfolder found- Ensure
.githubexists in the selected base folder.
- Ensure
- Configured packager path does not exist
- Verify the configured ApmPackager path.
- Unable to locate ApmPackager
- Configure the packager path or use the expected repository layout.
Repository
- Source: https://github.com/Hefaistos68/AgentPackageManager
- License: MIT