Skip to content
Agentmart
Submit a tool

beads-linear-sync

Sync beads and Linear so agent state and human tracker stay aligned.

Skill by thunter009

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/thunter009-beads-linear-sync

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Sync beads and Linear so agent state and human tracker stay aligned.

Use cases: agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Shell scripts

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/beads-linear-sync

What's inside

Skill name
beads-linear-sync
Description
Sync beads and Linear so agent state and human tracker stay aligned.
License
MIT
Instructions
252 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Agent Skills spec issues

  • allowed-tools: must be a space-separated string

Files (2)

  • SKILL.md
  • sync.sh · scripts/

SKILL.md (first lines)

# /beads-linear-sync

Bidirectional sync between `br` (beads_rust) and `linear` CLI. Beads is the agent workspace; Linear is the human UI.

## Architecture

```
Linear (human UI)  <──pull──>  beads (agent workspace)
                   <──push──>
```

- **Pull**: Import Linear issues into beads so agents can work locally
- **Push**: Update Linear to reflect beads state changes (status, priority, new issues)
- **Reconcile**: Detect drift, report conflicts, resolve with configurable policy

## Prerequisites

```bash
br --version    # beads_rust CLI
linear --version  # Linear CLI (schpet/linear-cli)
```

Both must be authenticated. Beads must be initialized (`br init` if no `.beads/` dir).

## Arguments

| Flag | Default | Description |
|------|---------|-------------|
| `--mode` | `pull` | `pull`, `push`, `reconcile`, or `dry-run` |
| `--project` | none | Linear project filter |
| `--team` | none | Linear team key filter |
| `--cycle` | none | Linear cycle filter (e.g., `active`) |
| `--conflict` | `newest` | Conflict policy: `newest`, `prefer-local`, `prefer-linear` |
| `--label` | none | Apply a Linear label to agent-created issues (e.g., `agent-managed`) |

## State Mapping

| Linear State | Beads Status | Direction | Notes |
|---|---|---|---|
| `triage` | `open` | pull only | push: `open` -> `unstarted` (lossy; triage/backlog collapse) |
| `backlog` | `open` | pull only | push: `open` -> `unstarted` (lossy; triage/backlog collapse) |
| `unstarted` | `open` | both | |
| `started` | `in_progress` | both | |
| `completed` | `closed` | both | |
| `canceled` | `closed` | pull only | push: `closed` -> `completed` (lossy; canceled state lost) |

**Lossy mappings**: Beads has 3 statuses vs Linear's 6 states. Pulling is lossless, but pushing `open` always becomes `unstarted` and `closed` always becomes `completed`. If the original Linear state was `triage`, `backlog`, or `canceled`, that nuance is lost on push. To preserve it, store the original Linear state in the `--external-ref` or description marker.

| Linear Priority | Beads Priority | Notes |
|---|---|---|
| 0 (No priority) | P4 | backlog |
| 1 (Urgent) | P0 | critical |
| 2 (High) | P1 | high |
| 3 (Medium) | P2 | medium |
| 4 (Low) | P3 | low |

## Workflow

### 1. Detect Context

```bash
# Verify tools available
br --version 2>/dev/null || { echo "br not found"; exit 1; }
linear --version 2>/dev/null || { echo "linear not found"; exit 1; }

# Check beads initialized
br info 2>/dev/null || { echo "No .beads/ dir; run br init first"; exit 1; }

# Get Linear team context
linear team list --no-pager 2>/dev/null | head -5
```

### 2. Pull (Linear -> Beads)

Import Linear issues into beads. Safe by default; never overwrites local beads changes without confirmation.

```bash
# 1. Fetch Linear issues (scoped). linear list has no --json; parse text output
#    Or fetch each issue individually with --json for structured data
linear issue list --all-states --all-assignees --limit 100 --no-pager
# For structured data, iterate identifiers through:
linear issue view ENG-123 --json --no-pager

# 2. For each Linear issue, check if bead exists
#    Match by: Linear URL in bead description, or title match
br search "ENG-123" 2>/dev/null

# 3. Create missing beads (use --external-ref for the Linear link)
br create --title "Issue title" --priority 2 --status open \
  --external-ref "linear:ENG-123" \
  --description "Linear: ENG-123 - https://linear.app/team/issue/ENG-123"

# 4. Update existing beads if Linear state is newer
br update <bead-id> --status in_progress --priority 1
```

**Matching strategy** (in priority order):
1. External ref match: `br list --json | jq '.[] | select(.external_ref == "linear:ENG-123")'`
2. Description contains Linear identifier: `br list --desc-contains "ENG-123"`
3. Title search: `br search "issue title keywords"`

Note: `br search` is free-text (title-oriented). `--external-ref` is not directly queryable; use `br list --json` + filter for structured matching.

### 3. Push (Beads -> Linear)

Update Linear to reflect beads state. Only pushes changes since last sync.

```bash
# 1. List beads with recent changes
br list --status open --json 2>/dev/null
br list --status closed --json 2>/dev/null
br list --status in_progress --json 2>/dev/null

# 2. For each bead with a Linear link, check if states match
linear issue view ENG-123 --json --no-pager

# 3. Update Linear if bead state is newer
linear issue update ENG-123 --state started
linear issue update ENG-123 --priority 2

From thunter009/skills, MIT.

More from thunter009/skills

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Jul 14, 2026 (3 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from thunter009

Cite this page

beads-linear-sync skill. Agent Mart. https://agentmart.dev/skills/thunter009-beads-linear-sync (last updated 2026-10-24)