feat: Implement instruction file synchronization system - #31
Conversation
- Created sync-coordinator agent for maintaining consistency across instruction files - Added GitHub Action workflow for automatic pre-merge synchronization - Documented synchronization strategy in ADR-003 - Updated CLAUDE.md with sync process documentation and new agents The sync process will: - Trigger when PRs modify ADRs, CLAUDE.md, or developer agents - Run sync coordinator agent to update related files - Commit changes to same PR with [skip-sync] flag - Maintain single PR workflow for atomic changes 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
- Created comprehensive sync-coordinator chatmode for GitHub Copilot - Added sync-coordinator to list of available agents in copilot-instructions - Included /sync-instructions command with usage examples - Ensures all 6 development support agents are available in both Claude and Copilot The sync-coordinator chatmode enables manual synchronization checks and conflict resolution guidance when automatic sync needs human input.
c8df18c to
3e2884f
Compare
|
Claude finished @niksacdev's task —— View job PR Review: GitOps Specialist & Instruction SynchronizationReview Checklist:
🔍 Detailed Review Findings✅ Strong Architecture & Documentation
|
🔬 Expert Engineer Review AnalysisTarget Branch: main 📁 File Changes
🧪 Test Coverage Analysis❌ Test failures detected - Review required 🏗️ Architecture Impact Analysis✅ Low Impact: No core architecture files modified 🔒 Security Analysis
📊 Code Quality MetricsView linting issues🎯 Review Recommendations
🤖 This review was automatically generated. Human expert review may still be required for complex changes. |
|
I was unable to automatically synchronize the instruction files. This might be due to:
Please review the instruction files manually to ensure consistency. |
Summary
This PR implements an automatic pre-merge synchronization system to maintain consistency across all development instruction files (CLAUDE.md, GitHub Copilot instructions, developer agents, and chatmodes).
Key Features
🔄 Automatic Pre-Merge Synchronization
[skip-sync]flag📝 New Sync Coordinator Agent
docs/developer-agents/sync-coordinator.md🎯 GitHub Copilot Integration
.github/chatmodes/sync-coordinator.chatmode.md)/sync-instructionscommand for manual synchronization checksChanges Made
Sync Coordinator Agent (
docs/developer-agents/sync-coordinator.md)GitHub Action Workflow (
.github/workflows/sync-instructions.yml)Architecture Decision Record (
docs/decisions/adr-003-instruction-synchronization.md)Documentation Updates
Sync Coordinator Chatmode (
.github/chatmodes/sync-coordinator.chatmode.md)How It Works
graph LR A[PR Changes ADR/CLAUDE.md] --> B[GitHub Action Triggers] B --> C[Sync Coordinator Analyzes] C --> D[Updates Related Files] D --> E[Commits to Same PR] E --> F[Single Review & Merge]Benefits
✅ Single PR Workflow - No follow-up PRs needed
✅ Natural Language - No templates or complex configs
✅ Automatic Consistency - Files stay synchronized
✅ Developer Control - Manual override with
[skip-sync]✅ Tool Parity - All 6 agents available in both Claude and Copilot
Testing
Next Steps
Once merged, future PRs that modify instruction files will automatically trigger synchronization, ensuring consistency across all AI development tools.
🤖 Generated with Claude Code