| name | jikime-team-swarm |
| description | Claude Code skill for operating as part of a jikime multi-agent team (swarm). Provides command reference, coordination protocols, and role-specific workflows for leader, worker, and reviewer agents. Triggers when the task involves multi-agent coordination, spawning workers, assigning tasks, monitoring team progress, or when the scope exceeds what a single agent can efficiently handle (e.g., "build a full-stack app", "implement multiple features in parallel", "refactor the entire codebase"). Also triggers on keywords: "create a team", "spawn agents", "assign tasks", "team status", "board attach", "agent inbox", "multi-agent", "swarm", "jikime team". |
JiKiME Team Swarm
You are operating as part of a jikime multi-agent team. This skill provides the complete
command reference and coordination protocol for all team roles.
Your Identity
Your identity is injected as environment variables at spawn time:
echo $JIKIME_AGENT_ID
echo $JIKIME_TEAM_NAME
echo $JIKIME_ROLE
echo $JIKIME_DATA_DIR
echo $JIKIME_WORKTREE_PATH
Role: Leader
Activate when: $JIKIME_ROLE == "leader"
Core Workflow
jikime team tasks create $JIKIME_TEAM_NAME "Implement feature X" \
--desc "Detailed description" \
--dod "Done when: unit tests pass, PR merged"
jikime team status $JIKIME_TEAM_NAME
jikime team board show $JIKIME_TEAM_NAME
jikime team inbox receive $JIKIME_TEAM_NAME
jikime team inbox broadcast $JIKIME_TEAM_NAME "Integration complete. Shutting down."
jikime team lifecycle shutdown $JIKIME_TEAM_NAME
Handling Join Requests
When a worker sends a join request to your inbox:
jikime team discover approve <agent-id> --team $JIKIME_TEAM_NAME
jikime team discover reject <agent-id> --team $JIKIME_TEAM_NAME --reason "team full"
Task Dependency Management
jikime team tasks create $JIKIME_TEAM_NAME "Deploy service" \
--desc "Deploy after tests pass" \
--depends-on "<task-id-of-tests>"
jikime team tasks get $JIKIME_TEAM_NAME <task-id>
Role: Worker
Activate when: $JIKIME_ROLE == "worker"
Core Workflow (Loop until idle)
jikime team tasks list $JIKIME_TEAM_NAME --status pending
jikime team tasks claim $JIKIME_TEAM_NAME <task-id> --agent $JIKIME_AGENT_ID
jikime team tasks get $JIKIME_TEAM_NAME <task-id>
jikime team tasks complete $JIKIME_TEAM_NAME <task-id> \
--agent $JIKIME_AGENT_ID \
--result "Implemented X: created files A, B, C. All tests pass."
jikime team inbox send $JIKIME_TEAM_NAME leader \
"Completed <task-id>: brief one-line summary"
When No Tasks Remain
jikime team inbox send $JIKIME_TEAM_NAME leader \
"No more pending tasks. $JIKIME_AGENT_ID idle."
Worktree Usage
If $JIKIME_WORKTREE_PATH is set, all your file changes go there:
cd $JIKIME_WORKTREE_PATH
git add -A
git commit -m "feat(<task-id>): implement X"
git status
git log --oneline -5
Role: Reviewer
Activate when: $JIKIME_ROLE == "reviewer"
Core Workflow
jikime team tasks list $JIKIME_TEAM_NAME --status done
jikime team tasks get $JIKIME_TEAM_NAME <task-id>
jikime team inbox send $JIKIME_TEAM_NAME leader \
"Approved <task-id>: quality good, no issues."
jikime team tasks update $JIKIME_TEAM_NAME <task-id> --status pending
jikime team inbox send $JIKIME_TEAM_NAME leader \
"Revision needed <task-id>: [what to fix]"
jikime team inbox send $JIKIME_TEAM_NAME <original-worker-id> \
"Please revise <task-id>: [specific feedback]"
Inbox (All Roles)
jikime team inbox receive $JIKIME_TEAM_NAME
jikime team inbox peek $JIKIME_TEAM_NAME
jikime team inbox send $JIKIME_TEAM_NAME <to-agent-id> "message body"
jikime team inbox broadcast $JIKIME_TEAM_NAME "Announcement message"
Team Discovery (All Roles)
jikime team discover list
jikime team discover join my-team --role worker --agent-id my-worker-3
jikime team board attach my-team
Monitoring (All Roles)
jikime team status $JIKIME_TEAM_NAME
jikime team tasks list $JIKIME_TEAM_NAME
jikime team tasks list $JIKIME_TEAM_NAME --status pending
jikime team tasks list $JIKIME_TEAM_NAME --status in_progress
jikime team tasks wait $JIKIME_TEAM_NAME --timeout 3600
jikime team board live $JIKIME_TEAM_NAME --interval 5
jikime team budget show $JIKIME_TEAM_NAME
Lifecycle
jikime team lifecycle idle --agent $JIKIME_AGENT_ID --team $JIKIME_TEAM_NAME
jikime team lifecycle on-exit --agent $JIKIME_AGENT_ID --team $JIKIME_TEAM_NAME
jikime team lifecycle shutdown --agent <agent-id> --team $JIKIME_TEAM_NAME
Worktree Collaboration (Workspace Commands)
jikime team workspace list $JIKIME_TEAM_NAME
jikime team workspace checkpoint $JIKIME_TEAM_NAME $JIKIME_AGENT_ID
jikime team workspace merge $JIKIME_TEAM_NAME $JIKIME_AGENT_ID
jikime team workspace cleanup $JIKIME_TEAM_NAME $JIKIME_AGENT_ID
Available Templates
Launch a pre-configured team:
jikime team template list
jikime team launch --template leader-worker --goal "your goal" --name my-team
jikime team launch --template leader-worker-reviewer --goal "your goal" --name qa-team
jikime team launch --template parallel-workers --goal "your goal" --name parallel-team
jikime team launch --template hedge-fund --goal "Research best AI stocks for 2025 portfolio" --name invest-team
Anti-Patterns to Avoid
| Anti-Pattern | Correct Approach |
|---|
| Working directly in main branch | Always use $JIKIME_WORKTREE_PATH if set |
| Claiming multiple tasks simultaneously | Claim one task, complete it, then claim next |
Skipping inbox send after completion | Always notify leader after each task |
| Polling inbox every 5 seconds | Check inbox naturally between tasks |
| Modifying files outside your worktree | Stay within your assigned directory |
| Shutting down before final integration | Leader must integrate before shutdown |
Troubleshooting
jikime team status $JIKIME_TEAM_NAME
jikime team tasks update $JIKIME_TEAM_NAME <task-id> --status pending
jikime team board show $JIKIME_TEAM_NAME
jikime team budget show $JIKIME_TEAM_NAME
Additional Resources
Reference Files
For complete command arguments, all options, data models, and storage layout:
references/cli-reference.md โ Full CLI reference: every command, every flag, data model, file storage layout, agent liveness detection
For step-by-step coordination workflows and common patterns:
references/workflows.md โ 8 complete workflows: team launch, manual setup with dependencies, worker loop, join protocol, plan approval, reviewer-gated QA, graceful shutdown, monitoring & debugging. Plus: dependency chain, fan-out/fan-in, investment research, and worktree isolation patterns.