/pai:Tasksfrom PAI Knowledge OS
Runs the task bus: reads cross-session work from the tracker, dispatches tasks to owning sessions, and files new findings. Use for morning routine, task triage, or capturing discoveries.
Ships in PAI Knowledge OS. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
USE WHEN user says 'morning routine', 'what needs doing', 'run the routine', 'check my tasks', 'dispatch tasks', 'file a finding', 'add this to todoist', 'what did we find', OR /tasks.
The task bus is shared state that outlives any one session. Session-local work stays in each project's Notes/TODO.md; the bus carries work that is broader than one session — findings discovered sideways, and work that belongs to a project other than the one you are sitting in.
Three workflows: morning routine, file a finding, triage.
Run this before anything else. If it reports the bus is not configured, say so and stop — do not attempt to work around it by calling the Todoist MCP directly.
pai task list --limit 1
If it prints "Task bus is not configured", tell the user to run pai setup and complete the Task Bus step. Nothing else in this skill will work.
Trigger: "morning routine", "what needs doing", "run the routine".
pai task list --today
This shows tasks due today or overdue. Drop --today for everything open.
Group what you found by owner and present it. Lead with anything overdue or p1.
Do not dispatch silently. The user should see the list before sessions start receiving work.
pai task dispatch --today --dry-run # always preview first
pai task dispatch --today # then, once the user approves
Outcomes and what each means:
| Symbol | Outcome | Meaning |
|---|---|---|
→ | delivered | Sent to an already-running session |
+ | spawned | No session was running; one was launched, then sent to |
? | unrouted | No owner resolved — the task stays in the findings inbox |
! | unlaunchable | An owner resolved but it has no PAI alias to launch |
· | skipped | Auto-dispatch is off, or no transport — reported only |
On ! unlaunchable: the fix is pai project name <identifier> <shortname>. Only projects with a curated alias can be dispatched to. Say this rather than reporting a vague failure.
On ? unrouted: this is normal, not an error. It means triage is pending — see Workflow 3.
State what actually reached a session and what did not. If nothing was dispatched because auto-dispatch is off, say that plainly — do not imply work was handed off when it was not.
Trigger: "file a finding", "add this to todoist", or any time you discover something outside the current task.
This is the point of the bus. When you notice something while doing something else, file it rather than only mentioning it in passing — mentions get lost.
pai task add "Short actionable title" \
--owner <project> \
--body "Full procedure AND reasoning" \
--priority p2 \
--url "hook://..."
--body is not optional in practice. Put the full procedure and the reasoning in it — enough that the task is actionable months later, or by the user alone, without re-deriving anything. A title alone is a reminder that something was once known, which is worthless later.--owner when you genuinely do not know. The task lands in the findings inbox for triage. Guessing an owner is worse than leaving it unrouted.hook:// URLs over file paths for --url. Get one with mcp__hook__hookmark_link. They survive renames and moves, and open in DEVONthink To Go on iOS. Fall back to a plain path if Hookmark is unavailable.Trigger: "triage", "what did we find", or weekly as part of the routine.
pai task list --limit 100
Look at everything marked unrouted. For each, decide with the user: assign an owner, act on it now, or delete it.
Assigning an owner means adding a pai:<project> label on the tracker. The label is authoritative and beats the container the task sits in, so it survives being moved.
The findings inbox should normally be empty. If it is filling up, the bus has become another place for items to rot — say so. That is the failure mode worth naming out loud, and it is a judgement about the system, not about the user.
Resolution order:
pai:<project> label — authoritativeAn explicit label that matches nothing does not fall through to the container. That is deliberate: the user meant to route it somewhere specific, and quietly sending it elsewhere would be worse than not routing it at all.
pai task done <id> closes a task on the tracker. Dispatched tasks tell the receiving session to do this, so work is not dispatched twice.docs/task-bus.md.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub mnott/pai --plugin pai6 skills in this plugin
/BrainstormRun a round table: one moderator and several cloud participants discuss a goal on a shared board and return a ranked synthesis. USE WHEN user says 'brainstorm', 'round table', 'let us think this through with several views', OR /brainstorm./PAIHow to use the pai MCP server (memory, projects, sessions, code graph, workers, queue, plans, config). USE WHEN a task touches past work or decisions, project status, session handover, delegating code changes to workers, or PAI configuration./ReconstructRetroactively create session notes from JSONL transcripts and git history when automatic capture failed or was incomplete. USE WHEN user says 'reconstruct sessions', 'rebuild session notes', 'recover session notes', 'retroactively create notes', 'create notes from git history', 'notes are missing', 'backfill session notes', 'reconstruct what we did', OR /reconstruct./setupInstall, configure and verify PAI Knowledge OS, including workers, the router and the cockpit. USE WHEN user says "set up PAI", "install PAI", "configure PAI", "give Claude a memory", "set up workers", "set up the cockpit", or asks whether their PAI install is healthy. Phase-based and idempotent: every phase checks its state first and only does what is missing.
/TestsClean up a project's tests down to the governed core and keep suites from growing again (tests/KEPT.md: fix evidence, security guard, external contract; unit, UI/simulator, snapshot and run outputs). USE WHEN user says 'clean up tests', 'prune tests', 'test cleanup', 'too many tests', 'test governance', 'clean up testing', OR a notice says a project's suite outgrew its core.Other plugins' skills for the same job