Finalize Ticket
Commit, comment, attach commit, and mark a Linear ticket as done
Usage: /finalize-ticket MIN-42
</objective>
-
Load Linear skill. Invoke the
linearskill using the Skill tool. -
Commit changes. Invoke
/commit-commands:commitwith[$ARGUMENTS]as a suffix on the first line of the commit message (e.g.,feat(scope): description [MIN-42]). Checkgit log --oneline -5first to match the repository's commit message style. If there are no uncommitted changes, skip this step and use the most recent commit. -
Comment on the ticket. Run the Linear CLI
commentcommand on$ARGUMENTSwith a concise solution summary. Derive from the conversation context and commit message. Focus on decisions and approach — not a file-by-file inventory.uv run ~/.claude/skills/linear/scripts/linear.py comment $ARGUMENTS "<summary>" -
Attach the commit. Run the Linear CLI
attach-commitcommand to link the commit to the ticket. Use the commit SHA from step 2 (or HEAD if step 2 was skipped).uv run ~/.claude/skills/linear/scripts/linear.py attach-commit $ARGUMENTS <commit-sha> -
Mark as done. Run the Linear CLI
statecommand to transition the ticket to Done.uv run ~/.claude/skills/linear/scripts/linear.py state $ARGUMENTS Done
<success_criteria>
- Comment posted with meaningful solution summary (not a diff inventory)
- Commit includes
[$ARGUMENTS]suffix on first line (matching repo's commit style) - Commit attached to ticket via
attach-commit - Ticket state set to Done </success_criteria>