Complete Linear workflow automation for development tasks. Triggers: "linear workflow", "start task", "work on issue", "create pr", "merge pr", "开始任务", "处理Issue", "创建PR", "合并PR".
/plugin marketplace add wuyuxiangX/yux-claude-hub/plugin install yux-linear-workflow@yux-claude-hubThis skill is limited to using the following tools:
Automate the complete development workflow with Linear issue tracking, from task start to merge completion.
This skill provides end-to-end workflow automation:
.claude/linear-tasks/<ISSUE_ID>.json/yux-linear-start command will FAIL if Linear MCP is not configured or unavailablemcp__linear__get_issue().claude/linear-tasks/ directory (tracked by git)Detect user language from input:
\u4e00-\u9fff) > 30% → zhjakoenApply detected language to all output messages.
Each Linear task has a corresponding state file in .claude/linear-tasks/:
File format: .claude/linear-tasks/<ISSUE_ID>.json
Example: .claude/linear-tasks/LIN-456.json
{
"issue_id": "LIN-456",
"issue_uuid": "cfef1fd0-...",
"issue_title": "Implement user authentication",
"branch_name": "feat/LIN-456-user-auth",
"status": "in_progress",
"linear_url": "https://linear.app/team/issue/LIN-456",
"started_at": "2026-01-09T10:30:00Z",
"verified": true
}
Git tracking: These files are committed to git, ensuring state persists across branches and sessions.
| State | Linear Status | Description |
|---|---|---|
INIT | - | Workflow not started |
ISSUE_CREATED | Backlog | Issue created, no branch |
BRANCH_CREATED | Todo | Branch created, ready to work |
IN_PROGRESS | In Progress | Active development |
PR_CREATED | In Review | PR submitted, awaiting review |
CI_RUNNING | In Review | CI checks in progress |
CI_FAILED | In Progress | CI failed, needs fix |
READY_TO_MERGE | In Review | All checks passed |
MERGED | Done | PR merged, task complete |
When user wants to start a new task:
MANDATORY: Verify Linear connection:
mcp__linear__list_teams()
Check other prerequisites:
gh auth status
git rev-parse --is-inside-work-tree
Search or create Linear issue:
mcp__linear__list_issues for searchmcp__linear__create_issue for new issuesMANDATORY: Verify issue exists:
mcp__linear__get_issue(id: "<issue-uuid>")
Create branch:
<type>/LIN-<id>-<description>git checkout -b <branch-name>
git push -u origin <branch-name>
Update Linear status:
mcp__linear__update_issue(id: "<issue-uuid>", state: "In Progress")
Save local state file:
mkdir -p .claude/linear-tasks
# Write state to .claude/linear-tasks/<ISSUE_ID>.json
During active development:
Validate commits follow Conventional Commits:
<type>(<scope>): <description>Sync progress periodically:
/yux-linear-commit)For incremental commits during development:
<emoji> <type>(<scope>): <subject (中文)>
**What (做了什么)**
- 具体改动点
**Why (为什么做)**
解释改动动机
Refs: LIN-xxx
**Who (谁做的)**
Co-Authored-By: wuyuxiang 🤖 Generated by Claude AI
git add and git commit, NOT git pushEmoji mapping:
| Type | Emoji | Type | Emoji |
|---|---|---|---|
| feat | ✨ | fix | 🐛 |
| docs | 📝 | style | 💄 |
| refactor | ♻️ | perf | ⚡️ |
| test | ✅ | chore | 🔧 |
Key points:
.env, credentials) are flagged for reviewgit push after commitWhen ready for review:
Generate PR content:
[LIN-xxx] <Issue Title>Create PR:
gh pr create --title "<title>" --body "<body>" --base main
Update Linear:
Monitor CI:
When CI passes and reviews approved:
Merge PR:
gh pr merge <number> --squash --delete-branch
Cleanup:
git checkout main
git pull origin main
git branch -d <branch-name>
Update Linear:
Format: <type>/LIN-<issue-id>-<short-description>
| Type | Use Case |
|---|---|
feat | New features |
fix | Bug fixes |
docs | Documentation |
refactor | Code refactoring |
test | Test additions |
chore | Maintenance |
Examples:
feat/LIN-123-user-authfix/LIN-456-login-bugdocs/LIN-789-api-docsFollow Conventional Commits:
<type>(<scope>): <description>
[optional body]
[optional footer]
Refs: LIN-xxx
Examples:
feat(auth): add JWT token validationfix(ui): correct button alignmentdocs(api): update endpoint documentationLinear MCP is not configured.
To set up Linear:
1. Run /mcp in Claude Code
2. Add the Linear MCP server
3. Complete OAuth authorization
Not inside a git repository.
Please navigate to your project directory and try again.
Branch <name> already exists.
Options:
1. Switch to existing branch
2. Create branch with different name
3. Delete existing branch and recreate
CI checks failed.
Failed: <check-name>
Error: <error-message>
To fix:
1. Review the error details
2. Make necessary changes
3. Push fixes
4. CI will re-run automatically
| Function | Purpose |
|---|---|
searchIssues | Find existing issues |
createIssue | Create new issue |
getIssue | Get issue details |
updateIssue | Update status/fields |
createComment | Add progress comments |
| Command | Purpose |
|---|---|
gh auth status | Verify authentication |
gh pr create | Create pull request |
gh pr view | Get PR details |
gh pr checks | Check CI status |
gh pr merge | Merge pull request |
gh run view | Get CI run details |
=== Task Started ===
Issue: LIN-456 - Implement user authentication
Status: In Progress
Branch: feat/LIN-456-user-auth
You can now start coding!
=== 任务已启动 ===
Issue: LIN-456 - 实现用户认证
状态: 进行中
分支: feat/LIN-456-user-auth
现在可以开始编码了!
=== Task Completed! ===
Issue: LIN-456 - Implement user authentication
Status: Done
PR: #78 merged to main
Great work! Use /yux-linear-start for your next task.
=== 任务完成!===
Issue: LIN-456 - 实现用户认证
状态: 已完成
PR: #78 已合并到 main
恭喜!使用 /yux-linear-start 开始下一个任务。
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.