From mk
Manages task claiming and file ownership tracking for parallel agent execution. Agents claim tasks from a shared queue with ownership enforcement to prevent conflicts.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mk:task-queueWhen to use
Auto-invoked when multiple agents claim tasks during parallel execution. Not user-callable directly.
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Manages task assignment and file ownership during parallel execution.
Manages task assignment and file ownership during parallel execution.
Tasks are tracked in session-state/task-queue.json:
{
"tasks": [
{
"id": 1,
"description": "Implement API endpoints",
"owner": null,
"status": "pending",
"ownership": ["src/api/*", "src/routes/*"],
"blocked_by": []
},
{
"id": 2,
"description": "Implement UI components",
"owner": null,
"status": "pending",
"ownership": ["src/components/*", "src/pages/*"],
"blocked_by": []
}
]
}
pending → claimed (agent assigned) → in_progress → completed
→ blocked (dependency not met)
status=pending AND blocked_by all completedstatus=in_progress, record ownerEach task declares file ownership via glob patterns. Before any file write, check if the file matches the agent's declared ownership.
| Action | Owned File? | Result |
|---|---|---|
| Read | Any | Always allowed |
| Write/Edit | Owned | Allowed |
| Write/Edit | Not owned | STOP — report ownership violation |
| Write/Edit | Overlapping | STOP — report conflict to orchestrator |
Team-mode coordination rules (file ownership, commit discipline, completion messages) live
in .claude/skills/team-config/references/team-coordination.md, loaded by mk:team-config
on team activation.
task-queue.json simultaneously may both claim the same task. Mitigation: orchestrator is the sole claim-serializer — agents REQUEST claims through orchestrator, never self-claim directlysrc/api/* and src/api/auth/* overlap — the more specific glob must be in the SAME task, not split across agentssession-state/task-queue.json before dispatching parallel agents. If missing, agents should STOP and report, not create it themselvesstatus=completed for audit trail. Queue is cleaned up only when the parallel execution phase endsnpx claudepluginhub ngocsangyem/meowkit --plugin mkGuides team leads coordinating task-executing agents: enforces one commit per task, serializes overlapping file tasks or uses worktrees, checkpoints idle states.
Configures parallel agent team for complex tasks: creates git worktrees, generates ownership map, initializes task queue.
Executes remaining tasks in parallel using agent teams for context isolation. Each task runs in its own teammate session. For large batches (>5 tasks) where context accumulation is a concern.