Token导航 LogoToken导航TokenDH.com
前端设计敏感数据github未标认证来源可访问clear审计通过

linear-todo-syncLinear todo sync 前端

Agent Skill

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

总安装

2,771

周安装

97

GitHub Stars

1,205

下载量

1,105
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/qdhenry/claude-command-suite --skill 'Linear Todo Sync'

简介

用于同步待办事项到 Linear,实现外部任务管理与产品 Backlog 的联动。

  • 适用于将本地清单、会议决议或跨系统任务导入 Linear 统一处理。
  • 支持按标签、优先级和截止日期过滤同步范围,保持任务上下文一致。
  • 建议先在小规模测试集验证字段映射,防止错误覆盖已有任务或丢失元数据。
  • linear-todo-sync 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Linear Todo Sync

Automatically fetch assigned Linear tasks and generate a comprehensive markdown todo list in your project root. This skill queries the Linear GraphQL API to retrieve all open tasks assigned to you, organizing them by project with full details including status, priority, labels, estimates, and due dates.

Setup

1. Install Required Packages

Install the Python dependencies:

pip install requests mdutils python-dotenv

Or using conda:

conda install requests python-dotenv
pip install mdutils

2. Obtain Linear API Key

  1. Navigate to Linear API Settings
  2. Click "Create new key" under Personal API Keys
  3. Give it a descriptive name (e.g., "Claude Code Sync")
  4. Copy the generated API key

3. Configure Environment

Create a .env file in your project root:

cp .claude/skills/linear-todo-sync/assets/.env.example .env

Edit .env and add your API key:

LINEAR_API_KEY=lin_api_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Important: Ensure .env is in your .gitignore to protect your API key.

4. Verify Setup

Test the configuration by running:

python .claude/skills/linear-todo-sync/scripts/sync_linear_tasks.py

A markdown file named linear-todos-YYYY-MM-DD.md should appear in your project root.

How It Works

When triggered, this skill:

  1. Loads credentials from the .env file in your project root
  2. Queries Linear API using GraphQL to fetch all assigned issues in non-completed states
  3. Retrieves task details including title, description, status, priority, labels, estimates, due dates, project, and URL
  4. Groups tasks by project for better organization
  5. Generates markdown file with filename linear-todos-YYYY-MM-DD.md in the project root
  6. Outputs summary showing total tasks and project count

The generated markdown file provides a comprehensive view of your work with all relevant task metadata, making it easy to review priorities and plan your day.

Usage

Trigger this skill with phrases like:

  • "What do I need to work on this morning"
  • "Show me my work"
  • "Load work"
  • "Sync my Linear tasks"
  • "Get my todo list from Linear"

The skill will execute the sync script and create a dated markdown file in your project root.

Generated File Format

The markdown file follows this structure:

# Linear Tasks - January 18, 2025

Generated: 2025-01-18 09:30:45
Total Tasks: 12

## Project Alpha

### Implement user authentication (High)
- **Status**: In Progress
- **Labels**: backend, security
- **Estimate**: 5 points
- **Due**: 2025-01-20
- **Link**: https://linear.app/team/issue/PROJ-123

Add JWT-based authentication to the API endpoints...

### Fix login bug (Urgent)
- **Status**: Todo
- **Labels**: bug, frontend
- **Estimate**: 2 points
- **Due**: 2025-01-19
- **Link**: https://linear.app/team/issue/PROJ-124

Users cannot log in when using Safari...

## Project Beta

...

Customization

To modify the skill's behavior, edit scripts/sync_linear_tasks.py:

Change GraphQL Query

Modify the QUERY variable to fetch additional fields:

QUERY = """
query {
  viewer {
    assignedIssues(filter: { state: { type: { nin: ["completed", "canceled"] } } }) {
      nodes {
        id
        title
        description
        state { name }
        priority
        labels { nodes { name } }
        estimate
        dueDate
        project { name }
        url
        # Add more fields here
        createdAt
        updatedAt
        assignee { name }
      }
    }
  }
}
"""

Adjust Task Filtering

Modify the filter in the GraphQL query to change which tasks are fetched:

# Include completed tasks from the last week
filter: {
  state: { type: { nin: ["canceled"] } }
  completedAt: { gte: "2025-01-11" }
}

Modify Output Format

Customize the markdown generation in the generate_markdown() function to change structure, add sections, or include different metadata.

Change Output Location

Update the output_path variable in main():

# Save to a different directory
output_path = os.path.join(project_root, "docs", filename)

Troubleshooting

Error: "LINEAR_API_KEY not found in environment"

Cause: The .env file is missing or doesn't contain the API key.

Solution:

  1. Verify .env exists in your project root (not in the skill directory)
  2. Check that it contains: LINEAR_API_KEY=lin_api_...
  3. Ensure no extra spaces around the = sign
  4. Restart your terminal session if you just created the file

Error: "Authentication failed: Invalid API key"

Cause: The API key is incorrect or expired.

Solution:

  1. Go to Linear API Settings
  2. Verify your API key is still active
  3. Generate a new key if needed
  4. Update .env with the correct key

Error: "Network request failed"

Cause: Cannot connect to Linear API (network issue, timeout, or API downtime).

Solution:

  1. Check your internet connection
  2. Verify https://linear.app is accessible
  3. Check Linear Status for outages
  4. Try again in a few moments

Error: "Rate limit exceeded (429)"

Cause: Too many API requests in a short period.

Solution:

  • Wait 60 seconds before retrying
  • Avoid running the sync multiple times in quick succession
  • Linear's rate limit is 2000 requests per hour per API key

Warning: "No tasks found"

Cause: You have no assigned tasks in non-completed states.

Solution: This is informational only. The skill will still create a markdown file indicating zero tasks.

Error: "Permission denied when writing file"

Cause: Insufficient file system permissions.

Solution:

  1. Check you have write permissions in the project directory
  2. Verify the directory exists and is accessible
  3. Try running with appropriate permissions

Script runs but no file appears

Cause: File created in unexpected location or script error.

Solution:

  1. Check the script output for the exact file path
  2. Look for error messages in the console
  3. Run with verbose output: python scripts/sync_linear_tasks.py --verbose

Security Best Practices

  1. Never commit .env file: Always add .env to .gitignore
  2. Rotate API keys periodically: Generate new keys every 90 days
  3. Use minimal permissions: Linear API keys inherit your user permissions
  4. Keep packages updated: Run pip install --upgrade requests mdutils python-dotenv
  5. Review generated files: Check markdown files before sharing to ensure no sensitive data

Advanced Usage

Automated Daily Sync

Add to your shell profile (.bashrc, .zshrc) to sync on terminal startup:

# Auto-sync Linear tasks daily
if [ -f "/path/to/project/.env" ]; then
  python /path/to/project/.claude/skills/linear-todo-sync/scripts/sync_linear_tasks.py
fi

Integration with Git Hooks

Create a post-checkout hook to sync after changing branches:

#!/bin/bash
# .git/hooks/post-checkout
python .claude/skills/linear-todo-sync/scripts/sync_linear_tasks.py

CI/CD Integration

Use in continuous integration to track team tasks:

# .github/workflows/sync-tasks.yml
- name: Sync Linear Tasks
  run: |
    pip install requests mdutils python-dotenv
    python .claude/skills/linear-todo-sync/scripts/sync_linear_tasks.py
  env:
    LINEAR_API_KEY: ${{ secrets.LINEAR_API_KEY }}

Additional Resources

For detailed API reference and advanced GraphQL queries, see the Linear API documentation.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

Claude Code

29.43%
按下载量换算325

OpenCode

24.19%
按下载量换算267

Antigravity

18.04%
按下载量换算199

Gemini CLI

11.35%
按下载量换算125

kilo

8.2%
按下载量换算91

windsurf

3.09%
按下载量换算34

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源字段存在多来源差异,先按来源优先级自动处理,无法消解时进入异常复核队列。

来源信息

继续浏览同类 Skills