Complete a Linear task by checking out its branch, scoping session changes, and preparing a commit. Use when the user says "complete [ISSUE-ID]", "branch for [ISSUE-ID]", or after finishing work on a Linear task.
After finishing work on a Linear task, execute this workflow.
Use the MCP Linear tool via CallMcpTool after reading its schema in
/Users/callumflack/.cursor/projects/Users-callumflack-Repos-vana-vana-app/mcps/user-Linear/tools/.
Extract gitBranchName and the issue ID from the response.
git checkout -b <gitBranchName>
If gitBranchName is missing, follow .cursor/rules/linear-task-creation.mdc
to create and checkout a branch name that includes the issue ID.
Important: Track which files were actually modified during this session.
git status to see unstaged changesgit add <specific-files-from-step-3>
Commit message format:
ISSUE_ID: <commit message>
Do NOT commit unless explicitly asked.
If the user asks for a commit message only, provide the message and stop.
Commit/branch conventions: .cursor/rules/linear-task-creation.mdc