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★ 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.jsonis 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 pushorgh pr create— no action needed at session start. - Stale branches (if
[STALE-BRANCHES]is present): Show a brief warning. Example: "Heads up: branchdan/ENG-100-old-featurehas 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
- "Resume
" — Delegate tolinear-syncsubagent (foreground) to fetch the issue summary. After fetching, savelast_issuefor this repo (direct Bash — see Execution Model). Check for blockers in the response and warn if any. - "Work on a different issue" — Delegate to
linear-syncsubagent (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, savelast_issuefor this repo (direct Bash). Check for blockers in the response and warn if any. - "Start something new" — Ask for a one-line description via AskUserQuestion. Check for duplicates first (see Duplicate Detection below). Then delegate to
linear-syncsubagent (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. - "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:
- Always use AskUserQuestion for every choice. The dev never types workspace names, project IDs, or labels manually.
- 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. - Use the
linear-syncsubagent in foreground mode to fetch real data from Linear MCP (workspaces, teams, projects, labels). - Present fetched data as AskUserQuestion choices.
- For labels, suggest
repo:<repo-name>as the default. - Detect the GitHub org from the repo's remote URL. Include it as
github_orgin the committed config. - Write
.claude/linear-sync.jsonto the repo root with the shared config. - Write only the
workspacereference to the local state file for credential routing. Project, team, and label live in the repo-level config. - The subagent will commit and push
.claude/linear-sync.jsonas part of the Link Repo task. - 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
Установить linear-sync в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic