一键导入
yux-linear-start
Start working on a Linear issue with worktree isolation. Triggers on "start task", "linear start", "work on LIN-123", "begin task", "开始任务".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Start working on a Linear issue with worktree isolation. Triggers on "start task", "linear start", "work on LIN-123", "begin task", "开始任务".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | yux-linear-start |
| description | Start working on a Linear issue with worktree isolation. Triggers on "start task", "linear start", "work on LIN-123", "begin task", "开始任务". |
| allowed-tools | Read, Write, Bash(git:*), Bash(gh:*), Glob, Grep, mcp__linear__*, AskUserQuestion, EnterWorktree |
Start a new task with Linear issue tracking. Every task runs in its own worktree for isolation.
Usage: /yux-linear-start [LIN-xxx | task description]
LIN-xxx: Directly start working on a specific issuegh auth status must passmcp__linear__list_teams()
If fails: show error and stop. Do NOT proceed without Linear.
.claude/linear-config.json:
team and project fields: use cached values/yux-linear-init first to set up your project."LIN-\d+: directly call mcp__linear__get_issue(), skip dialogmcp__linear__list_issues(query: "<text>"), suggest best matchSearch path: Display results, let user pick or create new
Create path: Collect title/description/priority, call mcp__linear__create_issue(), verify with mcp__linear__get_issue()
Auto-detect branch type from issue labels/title:
fix/docs/refactor/feat/Detect if already in a worktree:
git rev-parse --is-inside-work-tree && git rev-parse --git-common-dir
Compare --git-common-dir with --git-dir. If they differ, we're inside a worktree.
If NOT in a worktree (normal case — starting from main repo):
EnterWorktree(name: "<type>-LIN-<id>-<short-description>")
The name mirrors the branch name (e.g., feat-LIN-321-speaker-mode).
Session automatically switches to .claude/worktrees/<name>/
If already in a worktree (e.g., user resumed a kept worktree session, or opened Claude Code inside one): Skip EnterWorktree. Work directly in current directory.
Create and switch to proper branch:
git checkout -b <type>/LIN-<id>-<short-description> origin/main
If the branch already exists (e.g., from a prior incomplete run), ask the user: switch to the existing branch or create a fresh one with a suffix.
Push branch to remote:
git push -u origin <branch-name>
mcp__linear__update_issue(id: "<uuid>", state: "In Progress")
mcp__linear__create_comment(issueId: "<uuid>", body: "Started working.\nBranch: `<branch>`")
Write to .claude/linear-tasks.json (resolved relative to main repo root via git rev-parse --git-common-dir). See ../../references/linear-tasks-schema.json for the full schema.
Set active_task to the new issue ID, add the task entry with status: "in_progress".
Note: tasks.json is shared across all worktrees (lives in main repo's .claude/ directory).
=== Task Started ===
Issue: LIN-456 - <title>
Branch: feat/LIN-456-<desc>
Worktree: .claude/worktrees/feat-LIN-456-<desc>/
Status: In Progress
URL: <linear-url>
You are now working in an isolated worktree.
Analyze a blog article's structure to plan optimal image placement, then generate and insert AI images. This is the blog-specific image workflow — it reads a markdown article, identifies where images should go, creates a plan, and generates images that fit each section. Use when the user wants images added to an existing article — e.g., "analyze article images", "suggest images for this post", "generate article images", "分析文章配图", "生成文章配图", "插入文章配图". Do NOT use for standalone image generation (use yux-nano-banana instead). After generating, use yux-blog-oss to upload images to CDN.
Generate images via OpenRouter API with user-selected models. Supports any OpenRouter image model (Gemini, Flux, etc.), prompt optimization, text-to-image, and image editing. Triggers on "generate image", "create image", "draw", "nano banana", "image generation", "生成图片", "画图", "图像生成", "信息卡片".
Commit changes with conventional commit messages and sync to Linear. Triggers on "linear commit", "commit and sync", "save progress", "提交代码".
Triage Linear inbox issues with AI classification. Triggers on "pm triage", "triage inbox", "classify issues", "process inbox", "处理反馈".
Initialize Linear integration for current project. Triggers on "linear init", "初始化linear", "setup linear", "configure linear", "连接linear".
Linear project dashboard (task/backlog/tasks modes). Triggers on "linear status", "show my tasks", "show backlog", "project overview", "项目概览".