pflow-commit
Installation
SKILL.md
On any failure (non-zero exit from a Shell command OR an error field in JSON output) print ⚠️ <error message> and stop immediately.
Steps
-
Pick the context source:
- Conversation context is sufficient when every uncommitted change was made in this session and you know each changed file and what changed in it. In that case skip the script and go to step 2.
- Otherwise (changes made outside this session, unknown working-tree state, or any doubt) run
.agents/skills/pflow-commit/scripts/git-commit-context.sh. If the output isNo changes detected., tell the user there is nothing to commit and stop.
-
Compose MESSAGE (see format below) using ONLY the step-1 source — no other sources.
-
Run the commit command in escalated execution mode from the start (for
.gitwrite access):.agents/skills/pflow-commit/scripts/git-commit-push.sh --message "MESSAGE". The script prints JSON:{commit_hash, branch_name, push_status, message}on success, or{…, error:{step, message}}on failure. Iferroris present, print⚠️ <error.message>and stop. -
Reply exactly, substituting values from the JSON:
✅ Commit message: <message> ✅ Committed and pushed: Hash: <commit_hash> | Branch: <branch_name> | Status: <push_status>