End-to-end workflow for resolving/fixing problems/bugs. Use when someone reports an issue, error, bug, or problem - whether it comes with a Sentry link, Linear issue, both, or neither.
YOU MUST follow this workflow exactly. Do NOT skip steps. Do NOT deviate.
Determine what was provided:
Ask only minimum questions needed to understand the problem.
Gather context WITHOUT making changes:
YOU MUST produce:
Do NOT proceed to Step 3 until investigation is complete.
Present your findings and proposed fix to the user.
If requester is NOT a developer:
If requester IS a developer:
Ask explicitly:
"Do you approve proceeding with this fix?"
NEVER proceed without explicit user approval.
If user does NOT approve: stop and ask what's missing.
YOU MUST have a Linear issue before proceeding. This is NON-NEGOTIABLE.
If creating a Linear issue, include:
Do NOT proceed to Step 6 until Linear issue ID is confirmed.
If Sentry issue exists:
YOU MUST work in a git worktree. Check if already in one: git worktree list
Once Linear issue ID is known:
main or master)git fetch origin <default-branch>:refs/remotes/origin/<default-branch>
git worktree add ../<short-description> -b feature/SYT-{id}-{short-description} origin/<default-branch>
If already in a worktree, create/switch to the feature branch from the updated remote.
Branch name format: feature/SYT-{id}-{short-description}
IMPORTANT: ALWAYS use the full refspec when fetching. NEVER use just git fetch origin <branch>.
Do NOT proceed to Step 8 until you are in the correct worktree with the correct branch.
Implement according to approved plan.
YOU MUST complete these steps. Do NOT stop before creating the PR.
/commit skill to commit/pr skill to create PRPR MUST include:
NEVER report completion without a PR link.
After ALL steps are complete, provide a brief summary:
Before reporting success, verify:
If ANY item is missing, you have NOT completed the workflow.