mk-team-config
Set up a parallel agent team for COMPLEX tasks: creates worktree structure, an ownership map, and an initialized task queue. Use when a task is decomposed into parallel subtasks.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 16
- Forks
- 3
01 前言 Front Matter
- name
- mk-team-config
- description
- Set up a parallel agent team for COMPLEX tasks: creates worktree structure, an ownership map, and an initialized task queue. Use when a task is decomposed into parallel subtasks.
02 资源文件 2
- 参考文档references/team-coordination.md858 B
- 参考文档templates/ownership-map-template.md837 B
03 SKILL.md 正文
Team Configuration
Sets up the infrastructure for parallel agent execution. Called by orchestrator when a COMPLEX task is decomposed into independent subtasks.
What It Does
- Analyzes the task — identifies independent subtasks from the plan
- Generates ownership map — assigns file ownership globs per subtask
- Creates worktrees — one git worktree per parallel agent
- Initializes task queue —
.meowkit/state/task-queue.jsonwith claiming protocol - Validates no overlap — checks ownership globs for conflicts before starting
Setup Flow
Plan approved (Gate 1)
↓
Orchestrator identifies parallel opportunity
↓
mk:team-config
├── 1. Parse plan for independent subtasks
├── 2. Generate ownership map (which agent owns which files)
├── 3. Validate zero overlap between ownerships
├── 4. Create git worktrees via mk:worktree
└── 5. Create task-queue.json via mk:task-queue
↓
Parallel agents start claiming tasks
Team Coordination Rules
When team mode activates, Read references/team-coordination.md — the team-only
coordination rules (file ownership per task, no force-push, worktree-branch commits,
actionable completion messages, lead docs-impact ownership). These were moved out of
always-loaded parallel-execution rules so they load only on team activation.
Ownership Map Template
See templates/ownership-map-template.md for the format agents use to declare file ownership.
Constraints
- Max 3 parallel agents (from the parallel-execution rules)
- Only COMPLEX tasks qualify (orchestrator enforces this)
- Gates (1 and 2) are never parallelized
- All worktrees branch from current feature branch HEAD
Gotchas
- Overlapping ownership kills parallelism — if two subtasks need the same file, they can't be parallel. Restructure the decomposition or handle the shared file in a sequential pre-step
- Worktree naming with special characters — skill names with
:(e.g.,mk:review) need quoting in shell paths - Stale worktrees from crashed sessions — run
git worktree listto check for orphaned worktrees before creating new ones - Integration test is mandatory — after merging all worktrees, the full test suite MUST pass. Don't skip this
Teardown
After all parallel agents complete and integration test passes:
- Merge all worktree branches to feature branch
- Remove worktrees via
mk:worktree cleanup - Archive
.meowkit/state/task-queue.json
04 同仓库更多 Skills
mk-worktree
Manages git worktrees for parallel agent isolation: creates parallel/{name}-{timestamp} branches, merges with conflict detection. NOT for user feature branches (use git worktree directly).
mk-workflow-orchestrator
Auto-invoked 7-phase workflow for complex-feature intent; fasttrack mode for pre-approved specs. NOT for explicit single tasks (mk:cook), green-field builds (mk:autobuild), or simple fixes (mk:fix).
mk-web-to-markdown
Fetch a URL and return clean markdown, for arbitrary external pages (blog, RFC, GitHub issue, vendor doc) not covered by mk:docs-finder. Static-only by default; opt-in JS rendering available.
mk-vulnerability-scanner
Vulnerability analysis: OWASP Top 10, current threat landscape, supply chain security, attack surface mapping, risk prioritization. Use for security audits. NOT for STRIDE/CSO infra audits (mk:cso).
mk-vue
Vue 3 authoring/review: components, composables, reactivity, Pinia, Pinia Colada, file routing, forms. Composition API + script setup. Auto-activates on .vue files. Deep review: mk:vue-best-practices.
mk-vue-testing-best-practices
Vue 3 testing best-practices review: Vitest + Vue Test Utils for components, composables, Pinia, Router, async/Suspense, forms, a11y, plus Playwright E2E strategy. Advisory only.