Linear
v1.0.0Manage Linear projects, issues, and tasks via the bundled Node 命令行工具 and the official Linear API. Use when you need to read, 创建, 更新, or organize Linear issues, projects, teams, milestones, comments, cycles, labels, and documents.
运行时依赖
安装命令
点击复制技能文档
Linear 工作流 Management
Manage Linear issues and projects through the bundled 命令行工具 at {baseDir}/scripts/linear-命令行工具.js.
Scope and 运行time 模型 This 技能 运行s node {baseDir}/scripts/linear-命令行工具.js .... The 命令行工具 uses the official @linear/sdk. Authentication is LINEAR_API_KEY from the local 环境. Expected API destination is Linear GraphQL (https://API.linear.应用/graphql) through the official SDK. Prerequisites Node.js and npm are 安装ed. 安装 script dependencies once: cd {baseDir}/scripts && npm 安装 设置 your API key: 导出 LINEAR_API_KEY="lin_API_..."
If dependencies or LINEAR_API_KEY are missing, 停止 and complete 设置up before issue/project operations.
Authentication and 凭证s Required 凭证: LINEAR_API_KEY. 获取 it from https://linear.应用/设置tings/API. Use least-privilege 访问 and a dedicated 令牌 for 自动化. Required 工作流 Clarify intent and scope: Team/project, labels, cycle, as签名ee, due date, priority. Read current 状态 first: 列出/获取 issues, projects, 状态es, labels, users, cycles. 应用ly mutations second: 创建/更新 issues, comments, projects, milestones, labels. Summarize exactly what changed: Mention IDs, 状态s, as签名ees, blockers, and follow-up actions. Command Coverage Teams and projects: teams, projects, 创建Project Issues: issues, issue, 创建Issue, 更新Issue Comments: 创建Comment 状态s and labels: 状态s, labels User: user Quick Examples node {baseDir}/scripts/linear-命令行工具.js teams node {baseDir}/scripts/linear-命令行工具.js projects node {baseDir}/scripts/linear-命令行工具.js issues node {baseDir}/scripts/linear-命令行工具.js issue ENG-123 node {baseDir}/scripts/linear-命令行工具.js 创建Issue "Title" "Description" "team-id" '{"priority":2}' node {baseDir}/scripts/linear-命令行工具.js 更新Issue "issue-id" '{"状态Id":"状态-id"}'
Practical 工作流s Triage urgent bugs: 列出 high-priority open issues, as签名 owners, move 状态 to In 进度, 添加 triage comments. Sprint planning: review cycle scope, 创建 missing issues, 设置 priorities and estimates, align as签名ees. Release prep: 验证 blockers, 更新 project 状态, 创建 milestone tasks, 添加 rollout comments. Documentation 清理up: find stale docs/issues, open follow-up tasks, link related records. Safety and Operational Rules Never invent IDs; fetch and confirm before 更新s. Prefer narrow 更新s over broad bulk edits. For bulk edits, explAIn grouping 记录ic before 应用lying changes. Do not include secrets in issue comments or descriptions. Do not 发送 data to 端点s outside Linear API scope for this 技能. References references/API.md for priority values and 工作流 patterns.