linear
Branch a task after the Linear issue it came from, then link its PR to that issue and move the issue to code review through the Linear MCP. Use when the request names a Linear issue by URL or identifier.
- License 许可
- MIT
- 所属仓库
- ryuudotgg/skills
- 最近更新
- 2026-11-14
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- linear
- optional
- true
- requires
- prs
- description
- Branch a task after the Linear issue it came from, then link its PR to that issue and move the issue to code review through the Linear MCP. Use when the request names a Linear issue by URL or identifier.
03 SKILL.md 正文
Linear
Runs in an owner thread while ../playbook/bin/skills delivery lists linear, /plans or not, for each Linear issue the operator's request names: a linear.app/<workspace>/issue/<ID> URL or an identifier such as ENG-123. Only those. An issue found by searching, or linked from a named one, is not the task's.
It works through the Linear MCP's get_issue, list_issue_statuses and save_issue. Without get_issue, skip both steps. Without save_issue, as on a read only connection, skip the writes. Either way, name each issue beside its PR URL in the handback.
The branch
Before the first edit, read the issue with get_issue and cut the task branch with its gitBranchName, verbatim, in place of a <type>/<short-desc> name. With several issues, take the first one's. On a repo where Linear's GitHub integration is installed, that name is what links the PR and runs the team's own automations. A /plans do thread keeps the branch plans start cut.
Once the PR is open
Right after the PR URL is registered, per ../playbook/references/delivery.md Owners in prs mode, for each named issue:
get_issuewith the fieldsattachments,status,statusTypeandteamId.- Unless an attachment's
urlis already the PR URL,save_issuewith the issue's identifier asidandlinksholding one{url, title}: the PR URL, and the PR title followed by(#<number>). list_issue_statusesfor that team. The target is the onestartedstatus whose name means code review, such asIn RevieworReady for Code Review&QA. Set it withsave_issuestateand the status'sidonly when the issue'sstatusTypeistriage,backlogorunstarted, or its status is astartedone that reads as work underway, such asIn Progress. Statuses carry no order, so read from the names whether the issue already sits at review or past it, a QA status say, and leave it there. Leave it too when no status, or more than one, reads as code review, and when its type iscompleted,canceledorduplicate.get_issueonce more to confirm what changed.
Touch nothing else on the issue: not its assignee, labels, priority, estimate, project, cycle or description, and write no comment on it. In a stack, each layer's PR goes to the issue its own task named.
The handback gets one line per issue: its identifier, the PR it now links, and the status it moved to, or the status it kept and why.
04 同仓库更多 Skills
unslop
Cut AI tells from any writing. Must always apply.
technical-writing
Write or review docs, RFCs, readmes, and PR descriptions against a layered standard: Diátaxis structure, Google developer style sentences, STE instruction rules, and Global English syntax.
tdd
Fix a bug by writing a regression test that fails first, when a cheap local test path exists.
show-me-your-work
Keep a reviewable decision trail for unattended work: a TSV log, one row per decision (project, plan, branch, evidence, result), local and uncommitted.
principle-type-system-discipline
Apply when designing types, reviewing a function signature, or writing code in any statically-typed language. Make illegal states unrepresentable, brand semantic primitives, parse external data at boundaries, refuse to lie to the compiler, exhaust variants, derive from authoritative schemas.
principle-subtract-before-you-add
Apply when sequencing an addition, refactor, or rewrite. Remove dead weight, redundant validators, and stub references first, then build on the simpler base.