
commands-integration-sync
Command bundle that links Claude Code with Linear and GitHub issues, PRs, and tasks for two-way syncing.
- version
- 1.0.0
- GitHub stars
- 3.8K
What it does
- Adds 12 commands, including
/sync-issues-to-linear,/sync-linear-to-issues,/bidirectional-sync, and/sync-conflict-resolver - Covers issue and PR flows:
/issue-to-linear-task,/task-from-pr,/sync-pr-to-task, and/bulk-import-issues - Includes
/sync-status,/sync-automation-setup, and/cross-reference-managerfor checking and linking synced records - Designed for teams that track work in both Linear and GitHub and need the two kept in step
Commands for integrating with external services and syncing data
Add marketplace
/plugin marketplace add davepoon/buildwithclaudeRun it inside Claude Code once, then install the plugin below.
Install
/plugin install commands-integration-sync@buildwithclaudeRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourcebidirectional-sync
Enable bidirectional GitHub-Linear synchronization
System
You are a bidirectional synchronization specialist that maintains consistency between GitHub Issues and Linear tasks. You handle conflict resolution, prevent sync loops, and ensure data integrity across both platforms.
Instructions
When implementing bidirectional sync:
-
Prerequisites & Setup
- Verify both GitHub CLI and Linear MCP
- Initialize sync state storage
- Set up webhook endpoints (if available)
-
Sync State Management
{ "syncVersion": "1.0", "lastFullSync": "2025-01-16T10:00:00Z", "entities": { "gh-123": { "linearId": "ABC-456", "githubNumber": 123, "lastGithubUpdate": "2025-01-16T09:00:00Z", "lastLinearUpdate": "2025-01-16T09:30:00Z", "syncHash": "a1b2c3d4e5f6", "lockedBy": null } } } -
Conflict Detection
function detectConflict(entity) { const githubChanged = entity.githubUpdated > entity.lastSync; const linearChanged = entity.linearUpdated > entity.lastSync; if (githubChanged && linearChanged) { return { type: 'BOTH_CHANGED', githubDelta: calculateDelta(entity.githubOld, entity.githubNew), linearDelta: calculateDelta(entity.linearOld, entity.linearNew) }; } return null; } -
Conflict Resolution Strategies
Strategy Options: ├── NEWER_WINS (default) ├── GITHUB_WINS ├── LINEAR_WINS ├── MANUAL_MERGE └── FIELD_LEVEL_MERGE -
Field-Level Merge Rules
const mergeRules = { title: 'NEWER_WINS', description: 'MERGE_CHANGES', state: 'NEWER_WINS', assignee: 'NEWER_WINS', labels: 'UNION_MERGE', priority: 'LINEAR_WINS', comments: 'APPEND_ALL' }; -
Sync Loop Prevention
// Add sync markers to prevent loops const SYNC_MARKER = '[sync-bot]'; function shouldSync(change) { // Skip if change was made by sync bot if (change.author === SYNC_BOT_ID) return false; // Skip if within grace period of last sync const gracePeriod = 30000; // 30 seconds if (Date.now() - lastSyncTime < gracePeriod) return false; // Check for sync marker in comments if (change.body?.includes(SYNC_MARKER)) return false; return true; } -
Bidirectional Field Mapping
mappings: # GitHub → Linear - source: github.title target: linear.title transform: direct # Linear → GitHub - source: linear.identifier target: github.body transform: appendToFooter # Special handling - source: github.labels target: linear.labels transform: mapLabels reverse: true -
Transaction Management
async function syncTransaction(syncOp) { const transaction = await beginTransaction(); try { // Lock both entities await lockGitHub(syncOp.githubId); await lockLinear(syncOp.linearId); // Perform sync await syncOp.execute(); // Update sync state await updateSyncState(syncOp); await transaction.commit(); } catch (error) { await transaction.rollback(); throw error; } finally { await unlockAll(); } } -
Webhook Integration
// GitHub webhook handler app.post('/webhook/github', async (req, res) => { const event = req.headers['x-github-event']; if (shouldSync(req.body)) { await queueSync({ source: 'github', event: event, data: req.body }); } }); // Linear webhook handler app.post('/webhook/linear', async (req, res) => { if (shouldSync(req.body)) { await queueSync({ source: 'linear', event: req.body.type, data: req.body }); } }); -
Sync Execution Flow
1. Fetch all changes since last sync 2. Build sync queue with priorities 3. Process each item: a. Check for conflicts b. Apply resolution strategy c. Update both platforms d. Record sync state 4. Handle failures and retries 5. Generate sync report
Examples
Initial Setup
# Initialize bidirectional sync
claude bidirectional-sync --init --repo="owner/repo" --team="ENG"
# Configure sync options
claude bidirectional-sync --config \
--conflict-strategy="NEWER_WINS" \
--sync-interval="5m" \
--webhook-secret="your-secret"
Manual Sync
# Full bidirectional sync
claude bidirectional-sync --full
# Incremental sync (default)
claude bidirectional-sync
# Dry run to preview changes
claude bidirectional-sync --dry-run
Conflict Resolution
# Use specific strategy
claude bidirectional-sync --conflict-strategy="LINEAR_WINS"
# Interactive conflict resolution
claude bidirectional-sync --interactive
# Force sync despite conflicts
claude bidirectional-sync --force
Output Format
Bidirectional Sync Report
=========================
Period: 2025-01-16 10:00:00 - 10:15:00
Mode: Incremental
Changes Detected:
- GitHub → Linear: 12 updates
- Linear → GitHub: 8 updates
- Conflicts: 3
Sync Results:
✓ GitHub #123 ↔ Linear ABC-456: Title updated (GitHub → Linear)
✓ GitHub #124 ↔ Linear ABC-457: Status changed (Linear → GitHub)
⚠ GitHub #125 ↔ Linear ABC-458: Conflict resolved (NEWER_WINS)
✓ GitHub #126 → Linear ABC-459: New task created
✓ Linear ABC-460 → GitHub #127: New issue created
Conflict Details:
1. #125 ↔ ABC-458:
- Field: description
- GitHub changed: 10:05:00
- Linear changed: 10:07:00
- Resolution: Used Linear version (newer)
Performance:
- Total time: 15.3s
- API calls: 45 (GitHub: 25, Linear: 20)
- Rate limit status: OK
Next sync: 2025-01-16 10:20:00
Advanced Configuration
Sync Rules File
# .github/linear-sync.yml
version: 1.0
sync:
enabled: true
direction: bidirectional
interval: 5m
rules:
- name: "Bug Priority Sync"
condition:
github:
labels: ["bug"]
action:
linear:
priority: 1
- name: "Skip Draft Issues"
condition:
github:
labels: ["draft"]
action:
skip: true
conflicts:
strategy: NEWER_WINS
manual_review:
- title
- milestone
webhooks:
github:
secret: ${GITHUB_WEBHOOK_SECRET}
linear:
secret: ${LINEAR_WEBHOOK_SECRET}
Best Practices
-
Consistency Guarantees
- Use distributed locks
- Implement idempotent operations
- Maintain audit logs
-
Performance Optimization
- Batch similar operations
- Use caching for mappings
- Implement smart diffing
-
Error Handling
- Exponential backoff for retries
- Dead letter queue for failures
- Alert on repeated failures
-
Monitoring
- Track sync lag time
- Monitor conflict frequency
- Alert on sync failures
From the davepoon/buildwithclaude README
Build with Claude
Claude Skills, Agents, Commands, Hooks, Plugins, Marketplaces collections for and extend Claude Code
A plugin marketplace and discovery platform for Claude Code. Browse curated plugins, discover community contributions, and extend your Claude Code workflows.
Quick Start
# Add the Build with Claude marketplace
/plugin marketplace add davepoon/buildwithclaude
# Browse available plugins
/plugin search @buildwithclaude
# Install plugins
/plugin install <plugin-name>@buildwithclaude
What's Included
Build with Claude Plugins
Curated collections maintained in this repository:
| Type | Count | Description |
|---|---|---|
| Agents | 117 | Specialized AI experts (Python, Go, DevOps, Security, etc.) |
| Commands | 175 | Slash commands for automation (/commit, /docs, /tdd) |
| Hooks | 28 | Event-driven automation (notifications, git, formatting) |
| Skills | 26 | Reusable capabilities from plugins |
| Plugins | 51 | Bundled plugin packages by category |
Community Discovery
The platform indexes plugins from the broader Claude Code ecosystem:
- 20k+ Community Plugins from external marketplaces
- 4,500+ MCP Servers for database, API, and tool connections
- 1,100+ Plugin Marketplaces from the community
Web UI
Browse, search, and explore everything at buildwithclaude.com
Build with Claude Homepage
Browse Plugins
Browse Skills
Browse MCP Servers
Browse Plugin Marketplaces
Features
- Browse all plugin types with filtering
- Search across plugins, agents, commands, hooks, skills
- Copy install commands with one click
- View full documentation and usage examples
- Discover MCP servers and community plugins
Installation Options
Option 1: Plugin Marketplace (Recommended)
# Add marketplace
/plugin marketplace add davepoon/buildwithclaude
# Install specific plugins
/plugin install agents-python-expert@buildwithclaude
/plugin install commands-version-control-git@buildwithclaude
/plugin install hooks-notifications@buildwithclaude
# Or install everything
/plugin install all-agents@buildwithclaude
/plugin install all-commands@buildwithclaude
/plugin install all-hooks@buildwithclaude
Option 2: Manual Installation
# Clone repository
git clone https://github.com/davepoon/buildwithclaude.git
cd buildwithclaude
# Install agents
find plugins/agents-*/agents -name "*.md" -exec cp {} ~/.claude/agents/ \;
# Install commands
find plugins/commands-*/commands -name "*.md" -exec cp {} ~/.claude/commands/ \;
# Restart Claude Code
Available Plugin Categories
Agents (11 categories)
- Development & Architecture - Backend, frontend, mobile, GraphQL experts
- Language Specialists - Python, Go, Rust, TypeScript, C/C++ experts
- Quality & Security - Code review, security audit, debugging
- Infrastructure & Operations - DevOps, cloud, database optimization
- Data & AI - ML engineering, data pipelines, AI development
- Crypto & Blockchain - Trading systems, DeFi, Web3 development
Browse Subagents
Commands (22 categories)
- Version Control - Commit, PR creation, branch management
- Code Analysis - Testing, review, optimization
- Documentation - Docs generation, changelogs, API specs
- Project Management - Todos, PRDs, task tracking
Browse Commands
Hooks (8 categories)
- Notifications - Slack, Discord, Telegram alerts
- Git - Auto-staging, smart commits
- Development - Lint on save, auto-format
- Security - File protection, vulnerability scanning
Browse Hooks
Usage Examples
Using Agents
Agents are automatically invoked based on context, or explicitly called:
"Use the python-pro to optimize this function"
"@agent-security-auditor review this authentication code"
"Have the devops-troubleshooter help debug this deployment"
Using Commands
Commands use the / prefix:
/commit # Create conventional commit
/create-pr # Create pull request
/docs # Generate documentation
/tdd # Start test-driven development
/code_analysis # Analyze code quality
Using Hooks
Hooks run automatically on events like tool calls or session start.
Contributing
We welcome contributions!
Adding Plugins
- Create a new directory in
plugins/following the naming convention - Add your plugin files (agents, commands, hooks)
- Run
npm testto validate - Submit a pull request
Plugin Format
Agent (plugins/agents-*/agents/*.md):
---
name: agent-name
description: When to invoke this agent
category: category-name
tools: Read, Write, Bash
---
You are a [role description]...
Command (plugins/commands-*/commands/*.md):
---
description: What this command does
category: category-name
argument-hint: <args>
---
Command implementation...
Hook (plugins/hooks-*/hooks/*.md):
---
hooks: PreToolUse, PostToolUse
description: What this hook does
---
Hook implementation...
See CONTRIBUTING.md for detailed guidelines.
Contributors
This project exists thanks to all the people who contribute.
Links
- Web UI: buildwithclaude.com
- Documentation: Claude Code Docs
- Plugin Marketplaces: Plugin Docs
- Issues: GitHub Issues
License
MIT License - see LICENSE for details.
Made with ❤️ by Dave Poon
Details
- Marketplace
- davepoon/buildwithclaude
- Source
- plugins/commands-integration-sync
- Author
- BuildWithClaude Community
- Category
- Commands
- License
- MIT
- Keywords
- commands, slash-commands, integration-sync, bidirectional-sync, bulk-import-issues, cross-reference-manager, issue-to-linear-task, linear-task-to-issue, sync-automation-setup, sync-conflict-resolver, sync-issues-to-linear, sync-linear-to-issues, sync-pr-to-task, sync-status, task-from-pr
- Listed since
- Apr 6, 2026
More from davepoon/buildwithclaude
All 237- commands-miscellaneousv1.0.0
- commands-monitoring-observabilityv1.0.0
- commands-performance-optimizationv1.0.0
- commands-project-setupv1.0.0
- commands-project-task-managementv1.0.0
- commands-security-auditv1.0.0
- commands-simulation-modelingv1.0.0
- commands-team-collaborationv1.0.0
- commands-typescript-migrationv1.0.0
- commands-utilities-debuggingv1.0.0
- commands-version-control-gitv1.0.0
- commands-workflow-orchestrationv1.0.0
- commentkeywordv0.2.0
- communitymentionsv1.0.1
- computer-usev0.1.0
- conferencedbv1.0.2
- convikav1.0.2
- crosstalkv0.1.0
- cursor-subagent-modelsv1.3.2
- curviatev0.1.0
- deja-vuv0.23.5
- dev-loopv1.32.30
- dexv1.15.3
- done-gatev1.1.0
Similar to commands-integration-sync
More Workflow Automation
commands-project-task-managementPlugindavepoon/buildwithclaude3.8K starsCommands for task management and project tracking
commands-automation-workflowPlugindavepoon/buildwithclaude3.8K starsCommands for automating repetitive tasks and workflows
linearPluginanthropics/claude-plugins-official47.9K starsLinear issue tracking integration. Create issues, manage projects, update statuses, search across workspaces, and streamline your software development workflow
jiraPluginopenshift-eng/ai-helpers123 starsA plugin to automate tasks with Jira
linear-helperPluginrohitg00/awesome-claude-code-toolkit2.8K starsLinear issue tracking integration and workflow management
Task MasterMCP servereyaltoledano28.5K starsTask Master exposes AI-driven task management to editors through MCP, with API keys required for AI features.