cyberneticlibrary

Finish branch with leak scan and PR automation

autopilot-finish-branchworkflowsetup L30
kzarzycki/agent-skills
What it does

Verify, leak-scan, squash, open/update PR in one workflow

Best for

Finishing a feature branch with hard-gated leak scanning and automatic PR creation/update in a single orchestrated flow.

Inputs
  • · [object Object]
  • · [object Object]
Outputs
  • · [object Object]
Requires
  • · git
  • · gh CLI
  • · leak-scan agent
Preconditions

Test suite defined (testCmd); branch is clean; no local edits outside the diff

Failure modes

Leak scan blocks publish; test failure stops early; PR already exists but increment=false

Trust signals
  • · mandatory leak-scan gate
  • · squash to single commit
  • · increment or new PR detection