cat:git-merge-linear
Installation
SKILL.md
Git Linear Merge Skill
Merge task branch to its base branch while staying in the task worktree. Uses git push . HEAD:<base>
to fast-forward the base branch without checking out.
Step 0: Read Git Workflow Preferences
Check PROJECT.md for configured merge preferences before proceeding.
# Check if Git Workflow section exists in PROJECT.md
WORKFLOW_SECTION=$(grep -A30 "^## Git Workflow" .claude/cat/PROJECT.md 2>/dev/null)
if [[ -n "$WORKFLOW_SECTION" ]]; then
# Check if linear merge is allowed by workflow config
MERGE_METHOD=$(echo "$WORKFLOW_SECTION" | grep "MUST use" | head -1)