Mastermind tasks

From monoes/monomind · View interactive version

Mastermind tasks is an AI agent skill from the GitHub repository monoes/monomind. Mastermind tasks — view, create, assign, and move tasks on an org's task board. Supports parent-child chains, goal linkage, and status filtering.

How to use this skill

Skill file

Writes to a monotask board, not to <org>-issues.json. This skill only works

on an org config that still carries a monotask board_id (the legacy config

format); the Org Runtime never reads that board. For org issue tracking —

including sub-issues — use /mastermind-issues --action create --parent-id <id>.

Mastermind Tasks

This skill is invoked directly via /mastermind-tasks.


Inputs


Step 0 — Brain Load (standalone only)

If caller is not "command", load brain context following mastermind-protocol/SKILL.md Brain Load Procedure with namespace: ops.


Step 1 — Load Org Config

# board/column ids only exist on legacy-format org configs
orgFile=".monomind/orgs/${org_name}.json"
board_id=$(jq -r '.board_id // empty' "$orgFile")
todo_col=$(jq -r '.todo_col_id // empty' "$orgFile")
doing_col=$(jq -r '.doing_col_id // empty' "$orgFile")
done_col=$(jq -r '.done_col_id // empty' "$orgFile")

[ -z "$board_id" ] && { echo "ERROR: org config has no board_id — the Org Runtime does not use monotask boards. Use /mastermind-issues for org issues."; exit 1; }

Step 2 — Execute Action

list (default)

Show all tasks grouped by column with role labels and parent chains:

echo "=== TODO ==="
monotask card list $board_id --col $todo_col --json | jq -r '.[] | "[\(.id)] \(.title)  role=\(.labels // [] | map(select(startswith("role:"))) | .[0] // "unassigned")"'

echo "=== DOING ==="
monotask card list $board_id --col $doing_col --json | jq -r '.[] | "[\(.id)] \(.title)  role=\(.labels // [] | map(select(startswith("role:"))) | .[0] // "unassigned")"'

echo "=== DONE ==="
monotask card list $board_id --col $done_col --json | jq -r '.[] | "[\(.id)] \(.title)"'

Render as:

TASKS — org: <org_name>
──────────────────────────────────────────────
TODO (N)
  [abc123] Write homepage copy          → role:content-writer
  [def456]   └─ Draft hero section      → role:content-writer  (child of abc123)

DOING (N)
  [ghi789] Review brand guidelines      → role:reviewer

DONE (N)
  [jkl012] Research competitor sites

create

Create a task card and optionally link it to a parent or goal:

CARD_ID=$(monotask card create $board_id $todo_col "$task_title" --json | jq -r .id)
[ -n "$role_id" ] && monotask card label add $board_id $CARD_ID "role:${role_id}"
[ -n "$parent_id" ] && monotask card subtask add $board_id $CARD_ID $board_id $todo_col "$task_title" --json
[ -n "$goal_ref" ] && monotask card label add $board_id $CARD_ID "goal:${goal_ref}"
echo "Created task: $CARD_ID"

Emit org:task:created event to dashboard.

assign

[ -n "$role_id" ] && monotask card label add $board_id $task_id "role:${role_id}"
echo "Assigned task $task_id to role $role_id"

move

case "$status" in
  todo)  col_target=$todo_col ;;
  doing) col_target=$doing_col ;;
  done)  col_target=$done_col ;;
esac
monotask card move $board_id $task_id $col_target
echo "Moved task $task_id to $status"

Emit org:task:moved event.

chain

Build a task chain (parent → child sequence) from a list of task titles:

Parse task_title as newline-separated titles. Create each card in order, linking each as a prerequisite of the next:

prev_id=""
while IFS= read -r title; do
  CARD_ID=$(monotask card create $board_id $todo_col "$title" --json | jq -r .id)
  [ -n "$role_id" ] && monotask card label add $board_id $CARD_ID "role:${role_id}"
  [ -n "$prev_id" ] && monotask card prerequisite add $board_id $CARD_ID $board_id $prev_id
  prev_id=$CARD_ID
  echo "  Created: [$CARD_ID] $title"
done <<< "$task_title"

Step 3 — Return Output

domain: ops
status: complete
action: <action>
org: <org_name>
task_id: <task_id if applicable>

Step 4 — Brain Write (standalone only)

If caller is not "command", follow mastermind-protocol/SKILL.md Brain Write Procedure for domain ops.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.