microsoft/hve-core
Publicmirrored fromhttps://github.com/microsoft/hve-coreAvailable
scripts/plugins/README.md
41lines · modecode
| 1 | --- |
| 2 | title: Plugin Generation Scripts |
| 3 | description: PowerShell tooling for generating Copilot CLI plugins from collection manifests |
| 4 | --- |
| 5 | |
| 6 | PowerShell tooling for generating Copilot CLI plugins from collection |
| 7 | manifests. |
| 8 | |
| 9 | ## Scripts |
| 10 | |
| 11 | | Script | npm Command | Description | |
| 12 | |----------------------------|---------------------------|----------------------------------------------| |
| 13 | | Generate-Plugins.ps1 | `npm run plugin:generate` | Generate plugin directories from collections | |
| 14 | | Modules/PluginHelpers.psm1 | (library) | Plugin symlink, manifest, and packaging | |
| 15 | |
| 16 | ## Prerequisites |
| 17 | |
| 18 | * PowerShell 7.0+ |
| 19 | * PowerShell-Yaml module (`Install-Module PowerShell-Yaml`) |
| 20 | |
| 21 | ## Collection to Plugin Pipeline |
| 22 | |
| 23 | 1. Author artifacts in `.github/` (agents, prompts, skills) |
| 24 | 2. Define collections in `collections/*.collection.yml` |
| 25 | 3. Run `npm run plugin:generate` to produce `plugins/` |
| 26 | 4. Commit generated `plugins/` to the repository |
| 27 | |
| 28 | ## Refreshing Plugins After Artifact Changes |
| 29 | |
| 30 | ```bash |
| 31 | npm run plugin:generate |
| 32 | ``` |
| 33 | |
| 34 | This regenerates all plugins from their collection manifests. |
| 35 | |
| 36 | --- |
| 37 | |
| 38 | <!-- markdownlint-disable MD036 --> |
| 39 | *🤖 Crafted with precision by ✨Copilot following brilliant human instruction, |
| 40 | then carefully refined by our team of discerning human reviewers.* |
| 41 | <!-- markdownlint-enable MD036 --> |
| 42 | |