mirror of
https://github.com/github/awesome-copilot.git
synced 2026-02-20 02:15:12 +00:00
Add documentation for marketplace.json generation
- Document generate-marketplace.mjs in eng/README.md - Add plugin folder documentation to AGENTS.md - Update setup commands to include marketplace generation - Add plugin checklist to code review guidelines Co-authored-by: aaronpowell <434140+aaronpowell@users.noreply.github.com>
This commit is contained in:
33
AGENTS.md
33
AGENTS.md
@@ -32,9 +32,12 @@ The Awesome GitHub Copilot repository is a community-driven collection of custom
|
||||
# Install dependencies
|
||||
npm ci
|
||||
|
||||
# Build the project (generates README.md)
|
||||
# Build the project (generates README.md and marketplace.json)
|
||||
npm run build
|
||||
|
||||
# Generate marketplace.json only
|
||||
npm run plugin:generate-marketplace
|
||||
|
||||
# Validate collection manifests
|
||||
npm run collection:validate
|
||||
|
||||
@@ -93,9 +96,18 @@ All agent files (`*.agent.md`), prompt files (`*.prompt.md`), and instruction fi
|
||||
- Follow the [GitHub Copilot hooks specification](https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/use-hooks)
|
||||
- Optionally includes `tags` field for categorization
|
||||
|
||||
#### Plugin Folders (plugins/*)
|
||||
- Each plugin is a folder containing a `.github/plugin/plugin.json` file with metadata
|
||||
- plugin.json must have `name` field (matching the folder name)
|
||||
- plugin.json must have `description` field (describing the plugin's purpose)
|
||||
- plugin.json must have `version` field (semantic version, e.g., "1.0.0")
|
||||
- Plugin folders can contain any combination of agents, prompts, instructions, skills, and hooks
|
||||
- The `marketplace.json` file is automatically generated from all plugins during build
|
||||
- Plugins are discoverable and installable via GitHub Copilot CLI
|
||||
|
||||
### Adding New Resources
|
||||
|
||||
When adding a new agent, prompt, instruction, skill, or hook:
|
||||
When adding a new agent, prompt, instruction, skill, hook, or plugin:
|
||||
|
||||
**For Agents, Prompts, and Instructions:**
|
||||
1. Create the file with proper front matter
|
||||
@@ -121,6 +133,14 @@ When adding a new agent, prompt, instruction, skill, or hook:
|
||||
5. Update the README.md by running: `npm run build`
|
||||
6. Verify the skill appears in the generated README
|
||||
|
||||
**For Plugins:**
|
||||
1. Create a new folder in `plugins/` with a descriptive name (lowercase with hyphens)
|
||||
2. Create `.github/plugin/plugin.json` with metadata (name, description, version)
|
||||
3. Add agents, prompts, instructions, skills, or hooks to the plugin folder
|
||||
4. Run `npm run build` to update README.md and marketplace.json
|
||||
5. Verify the plugin appears in `.github/plugin/marketplace.json`
|
||||
6. Test plugin installation: `copilot plugin install <plugin-name>@awesome-copilot`
|
||||
|
||||
### Testing Instructions
|
||||
|
||||
```bash
|
||||
@@ -219,6 +239,15 @@ For hook folders (hooks/*/):
|
||||
- [ ] Follows [GitHub Copilot hooks specification](https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/use-hooks)
|
||||
- [ ] Optionally includes `tags` array field for categorization
|
||||
|
||||
For plugin folders (plugins/*/):
|
||||
- [ ] Folder contains a `.github/plugin/plugin.json` file with metadata
|
||||
- [ ] plugin.json has `name` field matching folder name (lowercase with hyphens)
|
||||
- [ ] plugin.json has non-empty `description` field
|
||||
- [ ] plugin.json has `version` field (semantic version, e.g., "1.0.0")
|
||||
- [ ] Folder name is lower case with hyphens
|
||||
- [ ] Plugin resources (agents, prompts, etc.) follow their respective guidelines
|
||||
- [ ] Run `npm run build` to verify marketplace.json is updated correctly
|
||||
|
||||
## Contributing
|
||||
|
||||
This is a community-driven project. Contributions are welcome! Please see:
|
||||
|
||||
Reference in New Issue
Block a user