Bidirectional Sync
Enable comprehensive bidirectional GitHub-Linear synchronization with conflict resolution
$ npx claude-code-templates@latest --command="sync/bidirectional-sync" --yesRequires Claude Code. The command adds this command to your project's .claudedirectory — nothing runs on ToolZip's servers.
What's inside this command
Component source
Bidirectional Sync
Enable comprehensive bidirectional GitHub-Linear synchronization: $ARGUMENTS
Current Sync Environment
- GitHub status: !
gh api user 2>/dev/null && echo "✓ Authenticated" || echo "⚠ Not authenticated" - Linear MCP: Check if Linear MCP server is available and configured
- Sync state: @.sync-state.json or @sync/ (if exists)
- Webhooks: !
gh api repos/{owner}/{repo}/hooks 2>/dev/null | grep -c linear || echo "0"
Task
Implement robust bidirectional synchronization between GitHub Issues and Linear tasks:
Sync Mode: Use $ARGUMENTS to specify full sync, incremental sync, dry-run preview, or conflict resolution strategy Synchronization Framework:- Sync State Management - Initialize sync database, track entity relationships, maintain sync history
- Conflict Detection - Identify simultaneous changes, field-level conflicts, timing issues
- Resolution Strategies - NEWER_WINS, GITHUB_WINS, LINEAR_WINS, or intelligent field-level merge
- Transaction Management - Atomic operations, rollback capability, distributed locking
- Webhook Integration - Real-time event handling, sync loop prevention, automated triggers
- Data Integrity - Bidirectional validation, cross-reference maintenance, audit trails
Related Claude Code Commands
Sync Automation Setup
Setup comprehensive automated synchronization workflows with monitoring and CI/CD integration
Linear Task To Issue
Convert Linear tasks to GitHub issues with relationship preservation and metadata mapping
Bulk Import Issues
Bulk import GitHub issues to Linear with comprehensive progress tracking and error handling
Cross Reference Manager
Manage cross-platform reference links between GitHub and Linear with integrity checking
Task From Pr
Create Linear tasks from GitHub pull requests with intelligent content extraction and task sizing
Issue To Linear Task
Convert individual GitHub issues to Linear tasks with comprehensive data preservation
Catalog data and component content are sourced from the open-source davila7/claude-code-templates project (MIT license). ToolZip curates the listing and writes original descriptions; every component links back to its original source. Claude Code is a product of Anthropic. ToolZip is an independent catalog and is not affiliated with or endorsed by Anthropic.