This guide provides fully automated methods to validate and update your ioBroker Copilot instructions template using GitHub Copilot, ensuring all custom sections are preserved.
Prerequisites: Ensure GitHub Copilot is active in your repository first. If you haven't set up GitHub Copilot yet, create an issue in your repository with the title "🤖 Setup GitHub Copilot" and content "GitHub Copilot: Please help me set up GitHub Copilot for this repository and create initial .github/copilot-instructions.md file."
The fastest way to update your template:
- Go to your ioBroker adapter repository on GitHub
- Click "Issues" → "New Issue"
- Use title: 🤖 Update ioBroker Copilot Instructions Template
- Copy and paste this content:
**GitHub Copilot**: Please help me update my ioBroker Copilot instructions template to the latest version while preserving all custom sections.
## Task
Update `.github/copilot-instructions.md` using this prompt:
"Merge the ioBroker template from https://github.com/DrozmotiX/ioBroker-Copilot-Instructions/blob/main/template.md with my existing .github/copilot-instructions.md.
REQUIREMENTS:
- Preserve ALL [CUSTOMIZE] sections exactly as they are
- Keep all project-specific context and custom instructions
- Add latest ioBroker best practices from the new template
- Update version to match latest template version
- Maintain Template Source reference
Show me the changes before applying them."
## Validation
After update, confirm:
- [ ] All [CUSTOMIZE] sections preserved
- [ ] Version updated to latest
- [ ] Custom content intact
- [ ] Template structure complete
**Reference**: https://github.com/DrozmotiX/ioBroker-Copilot-Instructions
GitHub Copilot will automatically:
- Analyze your current template
- Fetch the latest template version
- Merge while preserving ALL
[CUSTOMIZE]sections - Provide a summary of changes
- Generate the updated file
Review the proposed changes to ensure:
- All your custom sections are intact
- Version is updated correctly
- New best practices are included
- No project-specific context is lost
Check if your template needs updating:
curl -s https://raw.githubusercontent.com/DrozmotiX/ioBroker-Copilot-Instructions/main/scripts/check-template-version.sh | bashThis script will:
- Compare your local template version with the latest available
- Provide update guidance if your template is outdated
- Show you what's changed in newer versions
For repositories with existing automation workflows, use the full template:
Copy from: templates/automated-template-update.md
This provides:
- Detailed step-by-step automation
- Comprehensive validation checks
- Progress tracking with checkboxes
- Complete reference information
Your custom sections are automatically preserved when using the automation prompts. These include:
- All sections marked with
[CUSTOMIZE] - Project-specific adapter context not covered by template
- Custom service integrations and authentication patterns
- Unique error handling specific to your adapter's requirements
- Adapter-specific testing scenarios beyond standard patterns
## [CUSTOMIZE] Project-Specific Instructions
### My Adapter Specific Patterns
- Custom authentication flow for [YourService] API
- Adapter-specific device discovery patterns
- Unique error codes and recovery procedures specific to your service
**Note:** This section is preserved during template updates and should contain only content not already covered in the standard templateAfter any automated update, verify:
- Version Check: Compare version number with latest available
- Custom Content: Confirm all
[CUSTOMIZE]sections are intact - Project Context: Verify adapter-specific instructions remain
- Template Structure: Ensure all standard sections are present
- Functionality: Test that Copilot provides enhanced suggestions
Use this recovery prompt:
"Restore my custom sections from the previous version of .github/copilot-instructions.md. I need all [CUSTOMIZE] sections and project-specific context to be added back to the current template while keeping the new version and best practices."
"Please verify my .github/copilot-instructions.md has all required sections from the ioBroker template at https://github.com/DrozmotiX/ioBroker-Copilot-Instructions/blob/main/template.md and add any missing sections while preserving my custom content."
A successful automated update includes:
- ✅ Latest template version number
- ✅ All
[CUSTOMIZE]sections preserved exactly - ✅ Project-specific context maintained
- ✅ New best practices integrated
- ✅ Template source reference updated
- ✅ Valid markdown structure
- ✅ No loss of custom functionality
Benefits of Automated Updates:
- 🕒 Time Saving: No manual comparison or merging
- 🛡️ Safe: Custom content is automatically preserved
- 🎯 Accurate: Uses exact merge prompts tested for reliability
- 🔄 Consistent: Same process works across all repositories
- 🤖 Smart: Leverages GitHub Copilot's understanding of your codebase