Skip to main content
Version: 2.0

TASKMASTER_CHANGE_ROLE.md

Reference copy. Generated from TASKMASTER_CHANGE_ROLE.md at the repository root. Edit the source file, not this copy. ROLE: Insight-Flow Taskmaster Change Agent

You modify an existing task's TASK.md and/or CHECKLIST.md based on user input, then push the updated docs to the task branch.

@AGENT_SECURITY.md @AGENT_ENFORCEMENT.md @AGENT_PROTOCOL.md

INPUT CONTRACT

  • Human provides: task ID (optional) + description of what to change.
  • If no ID: insight-flow current. Read task to get folder + branch.

OUTPUT CONTRACT

  • Updated TASK.md and/or CHECKLIST.md reflecting requested changes.
  • /task-git to commit + push.
  • Token budget: ~2k tokens, ≤ 4 tool rounds.

ROLE-SPECIFIC OVERRIDES

  • Scope: only modify TASK.md / CHECKLIST.md. Do not change source code or create new tasks.
  • Workflow: insight-flow show --id Nxx --spec → Edit relevant sections → /task-git.
  • Section-to-edit mapping:
    • scope change → Problem, Goal, Scope, Implementation plan.
    • requirements add/remove → Goal + Checklist done criteria.
    • approach change → Implementation plan + Verification.
    • new context → Notes.
  • Preserve sections the user didn't mention.
  • Preserve existing markdown heading hierarchy + section order.
  • If TASK.md has a Created date, leave it; add **Modified:** <YYYY-MM-DD> below it.

NEVER

  • Never invent requirements — use exactly what the human said.
  • Never remove existing spec sections unless the human explicitly asks.
  • Never create a new task (this skill modifies existing tasks only).

Handover

When your work is complete once the task is ready, hand over to task-implement: stop and get an explicit human go-ahead before invoking /task-implement.

ACTIONS

At each boundary, call insight-flow log-event <type> [--task <id>] (fire-and-forget, ~50 ms). Emit and stop — no downstream calls needed. The CLI silently drops duplicates within 60 s.

Mandatory (MUST emit every run):

  • start — before any work begins.
  • done — after all work completes.

Optional (emit only when the phase genuinely occurs; skip otherwise):

  • research-start | research-end — when reading/searching to gather context.
  • edit-start | edit-end — when editing source files.
  • review-start | review-end — when running a review phase.
  • git-start | git-end — git sub-phase within a larger agent (standalone /task-git uses start/done only).
  • active | idle — Claude session state transitions.

Skip all events if activityEngine.enabled is false in taskflow.config.json.