Migration Guide
This guide helps you migrate from deprecated project structures to the current GitHub scaffold format.
Adding GitHub Releases CI to Existing Collections
If you have a repository with a collections/ folder but no GitHub Actions workflow for publishing releases, follow these steps:
Quick Setup
-
Run the scaffold command in your existing project directory:
# From VS Code Command Palette: "AI Primitives Hub: Scaffold Project" → "GitHub" -
Delete the generated example files:
rm -rf prompts/example.prompt.md instructions/example.instructions.md agents/example.agent.md collections/example.collection.yml skills/example-skill -
Push to main branch to trigger the first release.
What Gets Added
.github/workflows/publish.yml- Automated release workflow.github/actions/- Reusable GitHub Actionsscripts/- Build and validation scriptspackage.json- npm dependencies for validation
Migrating Chatmode Files to Agent Files
The chatmode kind has been replaced by agent. If your collection files reference .chatmode.md files or use kind: chatmode, follow these steps:
Step 1: Rename Files
Rename all .chatmode.md files to .agent.md:
# Find and rename all chatmode files
find . -name "*.chatmode.md" -exec sh -c 'mv "$1" "${1%.chatmode.md}.agent.md"' _ {} \;
Step 2: Update Collection YAML Files
In your collection YAML files, change:
# Before
items:
- kind: chatmode
path: chatmodes/my-mode.chatmode.md
# After
items:
- kind: agent
path: agents/my-mode.agent.md
Step 3: Move Files to Agents Directory
If you have a chatmodes/ directory, rename it to agents/:
mv chatmodes agents
Step 4: Update File References
Search your codebase for any remaining references to chatmode files and update them.