Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

linear-sync

БесплатноБез исполняемых скриптовНе проверен

This skill should be used when the session-start hook injects Linear context (e.g., "[Linear/..." or "[LINEAR-SETUP]" or "[LINEAR-DIGEST]"), when the…

diegosouzapwот diegosouzapw★ 68 звёзд на GitHub

Об этом скилле

Linear Sync Workflow

This system keeps Linear and GitHub in sync automatically. Linear API queries go through the linear-sync subagent (foreground), while simple mutations use linear-api.sh directly via Bash.

Session Start Behavior

At the start of every session, the linear-session-start hook fires and checks the repo:

  • Linked repo: The hook injects config context (workspace, project, team, label, formats, last_issue if any, stale branch warnings, and pre-fetched digest if due). Follow the session kickoff directive below.
  • Opted-out repo (workspace: "none"): The hook is silent. Do nothing related to Linear.
  • Unregistered repo: The hook injects a [LINEAR-SETUP] directive. Follow the setup wizard rules below. If a .linear-sync-template.json is found, the hook also injects [LINEAR-TEMPLATE] with defaults to pre-fill.
  • Broken workspace reference: The hook injects a [LINEAR-SETUP] directive to reconfigure or opt out.

Session Kickoff (Linked Repos)

When the hook injects config context for a linked repo:

Step 1: Digest and stale branches

  • Notification digest (if [LINEAR-DIGEST] data is present in hook context): The session-start hook pre-fetches your active issues inline. Show the digest briefly (1 line) before asking what to work on.
  • GitHub issue sync: Runs automatically via PostToolUse hook after git push or gh pr create — no action needed at session start.
  • Stale branches (if [STALE-BRANCHES] is present): Show a brief warning. Example: "Heads up: branch dan/ENG-100-old-feature has had no commits in 7 days."

Step 2: Resume or ask

If the hook context includes last_issue: <ISSUE_ID>, offer to resume that issue first:

Use AskUserQuestion: "What are you working on today in ?"

  1. "Resume " — Delegate to linear-sync subagent (foreground) to fetch the issue summary. After fetching, save last_issue for this repo (direct Bash — see Execution Model). Check for blockers in the response and warn if any.
  2. "Work on a different issue" — Delegate to linear-sync subagent (foreground) to fetch the dev's assigned in-progress issues ("Fetch My Issues" task). Present the returned list as AskUserQuestion choices, plus an option to "Enter an issue ID manually". After selection, save last_issue for this repo (direct Bash). Check for blockers in the response and warn if any.
  3. "Start something new" — Ask for a one-line description via AskUserQuestion. Check for duplicates first (see Duplicate Detection below). Then delegate to linear-sync subagent (foreground) to create a ticket in the correct project with the repo label. After creation, offer to assign to current cycle (see Cycle Assignment below). Use the returned issue ID going forward.
  4. "Just exploring / no ticket needed" — Proceed normally. The commit guard hook will catch untagged commits later and you can offer to create a ticket at that point.

If no last_issue is present, skip option 1 and start with options 2-4 (renumber accordingly).

When the dev picks any issue (resume, existing, or new): If the issue is unassigned, auto-assign it directly via linear-api.sh (see Execution Model — Direct Bash). No need to ask — if they're working on it, they should own it. Parallel optimization: Run query { viewer { id } } in the same message as the subagent fetch so the viewer ID is ready when the issue details come back.

Keep the kickoff brief and natural: "What are you working on today in ?"

Setup Wizard Rules

When a [LINEAR-SETUP] directive is injected:

  1. Always use AskUserQuestion for every choice. The dev never types workspace names, project IDs, or labels manually.
  2. Always offer "This repo doesn't use Linear" as an option. If chosen, opt the repo out via Read/Write tools (read state file, set workspace: "none", write back) and move on.
  3. Use the linear-sync subagent in foreground mode to fetch real data from Linear MCP (workspaces, teams, projects, labels).
  4. Present fetched data as AskUserQuestion choices.
  5. For labels, suggest repo:<repo-name> as the default.
  6. Detect the GitHub org from the repo's remote URL. Include it as github_org in the committed config.
  7. Write .claude/linear-sync.json to the repo root with the shared config.
  8. Write only the workspace reference to the local state file for credential routing. Project, team, and label live in the repo-level config.
  9. The subagent will commit and push .claude/linear-sync.json as part of the Link Repo task.
  10. After setup, confirm in one line and proceed with the session kickoff.

Project Rules

  • Multiple repos can share the same project. Include "Create a new project" as the last option.
  • If the dev picks "Create a new project", ask for a name, delegate to the subagent to create it.

Enforcement Rules (Linked Repos Only)

These conventions are mechanically enforced by hooks. They apply ONLY to repos with a valid workspac

Полный SKILL.md на GitHub

Установить linear-sync в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

metadata.json

FAQ

Что делает скилл linear-sync?

This skill should be used when the session-start hook injects Linear context (e.g., "[Linear/..." or "[LINEAR-SETUP]" or "[LINEAR-DIGEST]"), when the prompt-check hook injects "[Linear/<workspace>] Issue(s) referenced:", when the commit guard hook blocks a command for missing an issue ID or injects "[CROSS-ISSUE-COMMITS]", when the user mentions Linear issues (e.g., "ENG-123", "OPL-456"), when creating commits/branches/PRs in a Linear-linked repo, when the user asks about Linear workflow or issue tracking, or when working in any repository that has a .claude/linear-sync.json config file. Provides behavioral rules for Linear-GitHub sync workflow orchestration.

Как установить скилл linear-sync?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл linear-sync запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить linear-sync с