slate-final-1770511493/.claude/commands/merge-feature.md
jordan 0248b8c6e1
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/manual/woodpecker Pipeline was successful
Initialize project from skeleton template
2026-02-08 00:44:54 +00:00

1.3 KiB

description argument-hint allowed-tools
Merge a completed feature branch <feature-slug> Bash

Merge feature: $ARGUMENTS

Instructions

1. Check Merge Readiness

sdlc feature show $ARGUMENTS --json

Verify that:

  • All required artifacts are approved (review, audit, qa_results)
  • No blockers exist
  • The feature is in the merge phase

2. Check Branch Status

sdlc query ready

Confirm the feature appears in the ready-to-merge list.

3. Run Final Tests

go test ./... -v 2>&1 | tee /tmp/merge-test-output.txt

All tests must pass before merge.

4. Execute the Merge

sdlc merge $ARGUMENTS

This command atomically:

  • Checks out the main branch
  • Merges (or squashes) the feature branch
  • Updates the branch manifest
  • Transitions the feature to the released phase

5. Report

Confirm the merge completed successfully:

  • Feature name and slug
  • Final phase: released
  • All gates that were passed

If the merge fails, report the error and do not retry without user guidance.

Critical Rules

  • NEVER merge without all required gates passed
  • ALWAYS run tests immediately before merging
  • ALWAYS report merge conflicts or failures to the user
  • NEVER force a merge past failing checks
  • NEVER merge if the classifier says the feature is not ready