Commit Segmenter
Default flow:
- resolve
<skill-root>to this installed skill directory before running any script - clean the current feature branch:
python <skill-root>/scripts/finish_workflow.py
- publish only when needed:
python <skill-root>/scripts/publish_workflow.py
Decision rules:
- use
finishfor dirty worktrees, checkpoint commits, or mixed states - use
--dry-runbefore touching history when the user wants a preview or safety check - use
--base <ref>only when the repo's canonical base is notorigin/main - do not run bare
scripts/...paths from the user's repo root; always resolve paths from the installed skill copy
Defaults:
- base defaults to
origin/main - run
finishonly on a feature branch - cleanup on success, keep recovery state on failure
Load references/usage.md or references/usage.zh-CN.md only when the user asks how to use the skill or what inputs it expects. These are minimal usage cards; match the user's language.
Load references/feature-workflow.md only when a run fails or recovery steps are needed.