rachittshah

Claude Linear Sync — Git skill for Claude Code

Git community

Automated Linear ticket tracking for Claude Code — tickets created on task start, updated on commit, closed when done.

How to install Claude Linear Sync

This entry records only its repository, not the path inside it, so there is no exact command to give. Open rachittshah/claude-linear-sync and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Linear Sync does

Automated Linear ticket tracking for Claude Code — tickets created on task start, updated on commit, closed when done.

Alternatives in Git

  • Impact Report — Comprehensive impact report combining git and Linear analysis 512 ★
  • Resolve Issue — Fetch a GitHub issue, apply the fix, comment with what was done, and close the issue 186 ★
  • Beads Initialization — Attribution: Beads is created by Steve Yegge 172 ★

README

claude-linear-sync

Automated Linear ticket tracking for Claude Code. Tickets get created when you start tasks and closed with changelogs when you commit — no manual updating required.

Before & After

**Before**: Work happens in Claude Code, Linear gets updated retroactively in bulk.

**After**: Claude creates tickets when tasks start, updates them with commit details, and closes them when done. PR bodies automatically get Linear links.

How It Works

User prompt  →  [classify_prompt.py]  →  detects task  →  injects context
                                                               ↓
                                         Claude creates Linear ticket via MCP
                                         Claude writes state file
                                                               ↓
                                         Work happens (edits, tests, etc.)
                                                               ↓
git commit   →  [detect_commit.sh]    →  reads state   →  injects context
                                                               ↓
                                         Claude updates ticket + marks Done via MCP
                                                               ↓
PR created   →  [GitHub Action]       →  scans commits  →  adds Linear links to PR body

**Two Claude Code hooks** + **behavioral instructions in CLAUDE.md** + an optional **GitHub Action**.

Prerequisites

Connecting the Linear MCP Server

claude mcp add linear-server npx @ibraheem4/linear-mcp
# Then set LINER_API_KEY in your environment

Quick Start

git clone https://github.com/YOUR_ORG/claude-linear-sync.git
cd claude-linear-sync
python3 setup.py

The setup wizard will:

  1. Ask for your Linear workspace s