From yux-linear
Commit changes with conventional commit messages and sync to Linear. Triggers on "linear commit", "commit and sync", "save progress", "提交代码".
How this skill is triggered — by the user, by Claude, or both
Slash command
/yux-linear:yux-linear-commitThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Make incremental commits during development, linking to Linear issue and syncing progress.
Make incremental commits during development, linking to Linear issue and syncing progress.
Usage: /yux-linear-commit [--no-push] [description]
description: Reference for commit message generation (Claude auto-generates)--no-push: Skip auto-push after commitgit branch --show-currentLIN-xxx from branch name. If not on Linear branch -> prompt /yux-linear-startmcp__linear__get_issue(id: "LIN-xxx")git status --porcelain
git log origin/main..HEAD --oneline. If empty (no commits on branch), say "No uncommitted changes and no commits on this branch yet" and exit.git log -1 --format="%H %s" (full hash + subject)mcp__linear__list_comments(issueId: "<uuid from step 1.3>")=== No Changes ===
Last commit: <short-hash> - <subject> (synced to Linear ✓)
Issue: LIN-xxx - <title> (<status>)
Next: keep coding, or /yux-linear-pr when ready
<short-hash> - <subject> hasn't been synced to Linear yet. Sync now?"
Categorize files (new/modified/deleted), flag sensitive files (.env, credentials).
Use AskUserQuestion: commit all, select specific, exclude specific, or cancel.
Analyze if changes should be split. If multiple unrelated groups detected, suggest splitting. If user declines to split, proceed with all changes in a single commit.
Auto-determine from diff analysis:
<emoji> <type>(<scope>): <subject>Refs: LIN-xxx and Co-Authored-By lineShow for confirmation. User can modify or approve.
git add <files>
git commit -m "<message>"
git push origin HEAD
If fails:
git pull --rebase origin HEAD, then retry pushSkip if --no-push flag passed.
If .claude/linear-tasks.json exists, update last_active_at.
mcp__linear__create_comment(
issueId: "<uuid>",
body: "**Commit**: `<hash>`\n```\n<message>\n```\nFiles: <count>"
)
=== Commit Synced ===
Commit: abc1234 - feat(auth): add JWT token validation
Branch: feat/LIN-456-user-auth
Files: 3 changed (+45, -12)
Push: origin/feat/LIN-456-user-auth
Linear: Comment posted to LIN-456
Next: /yux-linear-pr when ready for review
npx claudepluginhub wuyuxiangx/yux-claude-hub --plugin yux-linearCreates bite-sized, testable implementation plans from specs or requirements, with file structure and task decomposition. Activates before coding multi-step tasks.