From yux-linear
Initialize Linear integration for current project. Triggers on "linear init", "初始化linear", "setup linear", "configure linear", "连接linear".
How this skill is triggered — by the user, by Claude, or both
Slash command
/yux-linear:yux-linear-initThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
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.
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.
npx claudepluginhub wuyuxiangx/yux-claude-hub --plugin yux-linearSets up a Linear integration by verifying a personal API key, selecting a team, and persisting the team's workflow state catalogue.
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.