On any failure (non-zero exit, or "status":"error" in the JSON) print ⚠️ <error.message> and stop.
Steps
Take the task. Run
.agents/skills/pflow-task-next/scripts/task-next-context.sh. It prints one JSON line; act onstatus:no_tasks— tell the user there's nothing to take and stop.error— print⚠️ <error.message>and stop.ready— continue withtask.titleandtask.description.
Name the branch from the task (rules below) →
BRANCH = TYPE/SLUG.Create it:
.agents/skills/pflow-task-next/scripts/task-next-branch.sh --branch "BRANCH". Onstatus:created, reply:✅ Task in progress: <task.title> Branch: <branch> (from <previous_branch>)
Branch naming
TYPE— one offeature(new functionality),fix(bug fix),chore(maintenance).SLUG— short kebab-case English summary of the task title, git-safe (a-z0-9-).- Result:
TYPE/SLUG, e.g.feature/login-form.
Gotchas
- The context script requires a clean working tree on the dev branch (
PFLOW_GIT_DEV_BRANCH, defaultdev) and no task already in progress — otherwise it errors. mdtodo takealready marked the task[~]; that working-tree change is carried onto the new branch and committed later bypflow-task-finish.