merge-and-close
Installation
SKILL.md
Merge And Close
Workflow
- Resolve the Linear issue from
$ARGUMENTS, current branch name, or session context. If resolution is ambiguous or missing, ask for one issue key and stop until provided. - Read the Linear issue and list every acceptance criterion with its done state.
- Require every acceptance criterion to be marked done in Linear. If any criterion is not marked done or its state is unclear, stop before merging and report the unchecked criteria.
- Run
yarn run compile. Stop before merging if it fails. - Determine merge target: parent task branch when the Linear issue has a parent task, otherwise
master. If the parent task branch cannot be resolved, ask for the branch name and stop until provided. - Inspect git status and diff. Stop before merging if unrelated user changes would be included.
- Merge the current branch into the target branch after acceptance criteria are satisfied, compile succeeds, and the diff is scoped.
- Close the Linear issue only after the merge succeeds.