Created comprehensive guide and enhanced sync script for integrating Claude Code
into automated workflows:
1. CLAUDE_INTEGRATION.md:
- 6 different integration options (CLI, file request, git hooks, GitHub Actions, API)
- Detailed examples for each approach
- Pros/cons and use case recommendations
- Best practices and troubleshooting
2. sync_server_file_enhanced.sh:
- Enhanced version of sync_server_file.sh
- Automatic MATLAB file change detection
- Intelligent module mapping (MATLAB → Python)
- Auto-generates formatted request for Claude
- Colored output with progress steps
- Clipboard integration (xclip)
- Editor auto-open option
Features:
✅ Detects which Python modules need updating
✅ Creates markdown request with diff preview
✅ Shows affected files and modules
✅ Copies request to clipboard automatically
✅ Provides step-by-step instructions
✅ Commits MATLAB changes with metadata
Workflow:
1. Run: ./sync_server_file_enhanced.sh
2. Script syncs MATLAB files from server
3. Auto-detects changes and creates request file
4. Open Claude Code and paste/provide the request
5. Claude updates Python code automatically
6. Validate with validation system
Typical usage:
./sync_server_file_enhanced.sh
# → Generates CLAUDE_SYNC_REQUEST_YYYYMMDD_HHMMSS.md
# → Copy to clipboard or open in editor
# → Provide to Claude Code for automatic Python sync
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>