merge-and-close

Installation
SKILL.md

Merge And Close

Workflow

  1. 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.
  2. Read the Linear issue and list every acceptance criterion with its done state.
  3. 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.
  4. Run yarn run compile. Stop before merging if it fails.
  5. 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.
  6. Inspect git status and diff. Stop before merging if unrelated user changes would be included.
  7. Merge the current branch into the target branch after acceptance criteria are satisfied, compile succeeds, and the diff is scoped.
  8. Close the Linear issue only after the merge succeeds.

Completion

Installs
2
Repository
wookieb/skills
First Seen
Jul 13, 2026