Token导航 LogoToken导航TokenDH.com
待分类敏感数据github未标认证来源可访问许可证需确认审计异常

linear-cliLinear CLI

Agent Skill

用于处理 Linear 项目、Issue、团队、周期和产品开发任务流。它适合让 Agent 辅助查询任务状态、整理需求队列、创建缺陷或汇总迭代进展。使用时需要确认 workspace、team、label、assignee 和状态流转规则;涉及批量创建或修改任务时,应先核对字段和目标团队,避免把草稿需求直接写入正式项目。

总安装

465

周安装

19

GitHub Stars

3

下载量

150
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:linear-cli(Linear CLI)
来源仓库:https://github.com/oldwinter/skills
仓库路径:skills/linear-cli
安装命令:
npx skills add https://github.com/oldwinter/skills --skill linear-cli
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/oldwinter/skills --skill linear-cli

简介

linear-cli 用于处理 Linear 项目、Issue、团队、周期和产品开发任务流。

  • 适用于查询任务状态、整理需求队列或汇总迭代进展的场景。
  • 使用时需确认 workspace、team、label 等字段规则,避免误写正式项目。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网或文件读写。
  • linear-cli 属于待分类类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Linear CLI Skill

This skill provides instructions for managing Linear issues, tasks, and projects using the linear-cli command-line tool. Linear is a modern issue tracker designed for software teams, and the CLI enables workflow management directly from the terminal.

Installation

First, install the linear-cli tool:

# Using Homebrew
brew install schpet/tap/linear

# Or using Deno
deno install -A --reload -f -g -n linear jsr:@schpet/linear-cli

Setup

  1. Create an API key at https://linear.app/settings/account/security (requires member access)
  2. Add the API key to shell environment: # In ~/.bashrc or ~/.zshrc: export LINEAR_API_KEY="lin_api_..." # Or in fish: set -Ux LINEAR_API_KEY="lin_api_..."
  3. Run the configuration wizard in your project repository: cd my-project-repo linear config This creates a .linear.toml config file with workspace and team settings.

Issue Management

View Issues

View the current issue (determined from git branch name or jj commit trailer):

linear issue view          # View current issue in terminal
linear issue view ABC-123  # View specific issue
linear issue view -w       # Open issue in web browser
linear issue view -a       # Open issue in Linear.app
linear issue id            # Print issue ID from current branch
linear issue title         # Print issue title
linear issue url           # Print Linear.app URL

List Issues

List issues with filtering and sorting options:

linear issue list           # List unstarted issues assigned to you
linear issue list -A        # List unstarted issues assigned to anyone
linear issue list -s "In Progress"  # Filter by state
linear issue list -w       # Open in web browser
linear issue list -a       # Open in Linear.app

Start Working on an Issue

Create or switch to an issue branch and mark as started:

linear issue start          # Choose an issue interactively
linear issue start ABC-123  # Start specific issue

The CLI creates a git branch with the issue ID and updates the issue status.

Create Issues

Create new issues interactively or with flags:

linear issue create                    # Interactive prompts
linear issue create -t "title" -d "description"

Update Issues

Update existing issue details:

linear issue update         # Interactive prompts for current issue

Delete Issues

Remove an issue from Linear:

linear issue delete

Create Pull Requests

Generate a GitHub PR with issue details via gh pr create:

linear issue pr

Issue Comments

Manage comments on issues:

linear issue comment list          # List comments
linear issue comment add           # Add comment
linear issue comment add -p <id>   # Reply to specific comment
linear issue comment update <id>   # Update comment

Team Management

linear team list       # List teams
linear team id         # Print team ID
linear team members    # List team members
linear team create     # Create a new team
linear team autolinks  # Configure GitHub autolinks

Project Management

linear project list    # List projects
linear project view    # View project details

Milestone Management

linear milestone list --project <projectId>     # List milestones
linear m list --project <projectId>             # Alias
linear milestone view <milestoneId>             # View details
linear m view <milestoneId>                     # Alias
linear milestone create --project <projectId> --name "Q1 Goals" --target-date "2026-03-31"
linear m create --project <projectId>           # Interactive
linear milestone update <milestoneId> --name "New Name"
linear m update <milestoneId> --target-date "2026-04-15"
linear milestone delete <milestoneId>
linear m delete <milestoneId> --force

Document Management

Manage Linear documents (can be attached to projects or issues):

# List documents
linear document list
linear docs list                                # Alias
linear document list --project <projectId>
linear document list --issue TC-123
linear document list --json

# View documents
linear document view <slug>
linear document view <slug> --raw
linear document view <slug> --web
linear document view <slug> --json

# Create documents
linear document create --title "My Doc" --content "# Hello"
linear document create --title "Spec" --content-file ./spec.md
linear document create --title "Doc" --project <projectId>
linear document create --title "Notes" --issue TC-123
cat spec.md | linear document create --title "Spec"

# Update documents
linear document update <slug> --title "New Title"
linear document update <slug> --content-file ./updated.md
linear document update <slug> --edit

# Delete documents
linear document delete <slug>
linear document delete <slug> --permanent
linear document delete --bulk <slug1> <slug2>

Configuration Options

Configure Linear CLI via environment variables or .linear.toml:

OptionEnvironment VariableTOML KeyExample
API keyLINEAR_API_KEYapi_key"lin_api_..."
Team IDLINEAR_TEAM_IDteam_id"TEAM_abc123"
WorkspaceLINEAR_WORKSPACEworkspace"mycompany"
Issue sortLINEAR_ISSUE_SORTissue_sort"priority" or "manual"
VCSLINEAR_VCSvcs"git" or "jj"
Download imagesLINEAR_DOWNLOAD_IMAGESdownload_imagestrue or false

Version Control Integration

The CLI works with both git and jj (jujutsu):

  • git: Works best when branches include Linear issue IDs (e.g., eng-123-my-feature). Use linear issue start or copy branch names from Linear UI.
  • jj: Detects issues from Linear-issue trailers in commit descriptions. Use linear issue start to add the trailer automatically.

Common Workflows

Daily Workflow

  1. List assigned issues: linear issue list
  2. Start working: linear issue start (choose interactively)
  3. View details: linear issue view
  4. When done: create PR with linear issue pr

Creating a Task

  1. Create issue: linear issue create -t "Task title" -d "Description"
  2. Start working: linear issue start <issue-id>
  3. Track progress in the branch

Reviewing Issues

  1. List all unstarted issues: linear issue list -A
  2. View specific issue: linear issue view <issue-id>
  3. Check comments: linear issue comment list

Tips

  • Use linear issue view to quickly see the current branch's issue
  • Use linear issue pr when ready to create a pull request - it pre-fills title and description from Linear
  • The CLI keeps you in the right views in Linear, avoiding context switching
  • Git branches with issue IDs are automatically detected by the CLI

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.07%
按下载量换算51

Claude

33.1%
按下载量换算50

Cursor

20.14%
按下载量换算30

Gemini CLI

10.09%
按下载量换算15

安全审计

Gen Agent Trust Hub

可疑

Socket

未通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills