From yux-linear
Initialize Linear integration for current project. Triggers on "linear init", "初始化linear", "setup linear", "configure linear", "连接linear".
npx claudepluginhub wuyuxiangx/yux-claude-hub --plugin yux-linearThis skill is limited to using the following tools:
Step-by-step initialization wizard that binds the current git repository to a Linear team and project. Creates `.claude/linear-config.json` with all necessary configuration.
Runs Linear CLI to manage issues, comments, teams, projects: create/update/delete/view/comment. Handles auth, git/jj integration for terminal automation.
Manages Linear issues via CLI: list by team/state, view details/comments, create/update title/desc/state/priority/labels/assign, start with git branch, delete.
Manage Linear issues, projects, and teams using MCP tools, Linear CLI via Bash, or scripts with secure Varlock API key handling.
Share bugs, ideas, or general feedback.
Step-by-step initialization wizard that binds the current git repository to a Linear team and project. Creates .claude/linear-config.json with all necessary configuration.
Usage: /yux-linear-init
mcp__linear__list_teams()
mcp__linear__get_authenticated_user()
If list_teams fails: show error and stop.
Linear MCP is not connected. Please configure it first:
1. Run /mcp in Claude Code
2. Add Linear MCP server
3. Complete OAuth authentication
4. Then run /yux-linear-init again
Greet the user with their name from get_authenticated_user.
Step 1/3 — Team
Detected team: Wyx
Using team "Wyx" automatically.
mcp__linear__list_projects(team: "<team-id>", includeArchived: false)
Display numbered list with project name and summary. Use AskUserQuestion to let user select.
Step 2/3 — Project
Which Linear project does this repository belong to?
1. Subloom — 对话式个人收藏平台
2. Slideck — React presentation framework
3. Claude Code Monitor — Raycast extension for monitoring
...
Enter the number of your project:
Use AskUserQuestion to ask:
Step 3/3 — Development Mode
How do you work on this project?
1. Solo — Issues auto-assigned to me
2. Team — Keep manual assignee selection
solo: Save user info, future /yux-linear-start auto-assigns to selfteam: No auto-assignmentIf .claude/linear-config.json already exists, use AskUserQuestion:
Ensure .claude/ directory exists.
Write .claude/linear-config.json:
{
"version": "1.0.0",
"created_at": "<ISO timestamp>",
"team": {
"id": "<team-uuid>",
"name": "<Team Name>"
},
"project": {
"id": "<project-uuid>",
"name": "<Project Name>"
},
"mode": "solo",
"user": {
"id": "<user-uuid>",
"name": "<User Name>"
}
}
=== Linear Initialized ===
User: 吾宇翔
Team: Wyx
Project: Subloom
Mode: Solo
Config: .claude/linear-config.json
Next steps:
/yux-linear-status backlog View project backlog
/yux-linear-start LIN-xxx Start a task
/yux-pm-prd <topic> Plan a feature
Running /yux-linear-init on a project that already has config will prompt to overwrite or keep existing configuration.
Output language is auto-detected from user input. Default to English.