用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/taracodlabs/aiden --skill linear命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | linear |
| description | Manage Linear issues, projects, and cycles via the Linear GraphQL API |
| category | productivity |
| version | 1.0.0 |
| origin | aiden |
| license | Apache-2.0 |
| tags | linear, issues, project-management, graphql, engineering, sprint, cycle, team, tasks |
Query and mutate Linear data — issues, projects, cycles, and teams — using the Linear GraphQL API. Requires LINEAR_API_KEY set as an environment variable.
Generate a Personal API key at https://linear.app/settings/api — select read and write scopes.
$env:LINEAR_API_KEY = "lin_api_..."
All Linear API calls are POST to https://api.linear.app/graphql.
function Invoke-Linear($query, $variables = @{}) {
$body = @{ query = $query; variables = $variables } | ConvertTo-Json -Depth 10
$headers = @{ "Authorization" = $env:LINEAR_API_KEY; "Content-Type" = "application/json" }
(Invoke-RestMethod -Uri "https://api.linear.app/graphql" -Method Post -Headers $headers -Body $body).data
}
$q = '{ viewer { assignedIssues(first: 20, filter: { state: { type: { in: ["started","unstarted"] } } }) { nodes { identifier title priority state { name } } } } }'
(Invoke-Linear $q).viewer.assignedIssues.nodes | Format-Table identifier, title, priority
$q = 'query($key:String!) { team(key:$key) { issues(first:30, filter:{state:{type:{in:["started","unstarted"]}}}) { nodes { identifier title assignee { name } state { name } } } } }'
(Invoke-Linear $q @{ key = "ENG" }).team.issues.nodes | Format-Table identifier, title
# First get teamId
$teamQ = '{ teams { nodes { id key name } } }'
$teams = (Invoke-Linear $teamQ).teams.nodes
$teamId = ($teams | Where-Object key -eq "ENG").id
$mutation = 'mutation($input:IssueCreateInput!) { issueCreate(input:$input) { issue { identifier title url } } }'
$vars = @{ input = @{ teamId = $teamId; title = "Fix login timeout bug"; description = "Users are being logged out after 5 min of inactivity."; priority = 2 } }
(Invoke-Linear $mutation $vars).issueCreate.issue
# Get state IDs for the team first
$stateQ = 'query($key:String!) { team(key:$key) { states { nodes { id name } } } }'
$states = (Invoke-Linear $stateQ @{ key = "ENG" }).team.states.nodes
$doneId = ($states | Where-Object name -eq "Done").id
$mutation = 'mutation($id:String! $stateId:String!) { issueUpdate(id:$id input:{stateId:$stateId}) { issue { identifier state { name } } } }'
(Invoke-Linear $mutation @{ id = "ENG-42"; stateId = $doneId }).issueUpdate.issue
$q = 'query($key:String!) { team(key:$key) { activeCycle { name startsAt endsAt progress issues(first:50) { nodes { identifier title state { name } } } } } }'
(Invoke-Linear $q @{ key = "ENG" }).team.activeCycle | Select-Object name, progress
"Show me all my open Linear issues" → Use steps 2–3 to list viewer's assigned unstarted/in-progress issues.
"Create a Linear issue: 'Update onboarding flow' in the PRODUCT team" → Use step 5 — fetch team ID for PRODUCT, then create with given title.
"What's the progress on the current sprint?" → Use step 7 — ask user for their team key, then show activeCycle progress.
ENG-42 but mutations need the UUID — always fetch UUID from the issues list