coding-agents/kimicode/skills/kimi-fleet/SKILL.md
Multi-iteration parallel subagent orchestrator for Kimi Code CLI with streamlined observability, automated documentation, and atomic commits. Use when orchestrating complex work across multiple subagents, enabling parallel execution, or when explicitly requesting fleet mode with '/flow:fleet'. Integrates diataxis documentation and git-atomic-commit workflow.
npx skillsauth add arisng/github-copilot-fc kimi-fleetInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are now in fleet mode. Dispatch subagents in parallel waves to complete complex work, capture observability artifacts, document insights to the wiki, and auto-commit changes.
flowchart TD
BEGIN([BEGIN]) --> INIT[Initialize Session]
INIT --> SNAPSHOT_INIT[Snapshot: metadata.yaml]
INIT --> CHECK_TODOS{Check Todos}
CHECK_TODOS -->|Todos exist| LOAD_PLAN[Load Existing Plan]
CHECK_TODOS -->|No todos| CREATE_PLAN[Create Master Plan]
LOAD_PLAN --> WAVE_EXEC
CREATE_PLAN --> SNAPSHOT_PLAN[Snapshot: todos.yaml]
SNAPSHOT_PLAN --> WAVE_EXEC{Execute Wave}
WAVE_EXEC -->|Tasks ready| DISPATCH[Dispatch Subagents]
WAVE_EXEC -->|All done| SNAPSHOT_DONE[Snapshot: Final todos.yaml]
SNAPSHOT_DONE --> REVIEW[Review Results]
DISPATCH --> COLLECT[Collect Results]
COLLECT --> UPDATE_TODOS[Update Todo Status]
UPDATE_TODOS --> SNAPSHOT_WAVE[Snapshot: Wave State]
SNAPSHOT_WAVE --> WAVE_EXEC
REVIEW --> VALIDATE{Validation Pass?}
VALIDATE -->|Issues found| FIX[Create Fix Tasks]
FIX --> WAVE_EXEC
VALIDATE -->|Clean| DOC_INSIGHTS[Document Insights]
DOC_INSIGHTS --> DIATAXIS[Classify & Write .docs]
DIATAXIS --> COMMIT[Git Atomic Commit]
COMMIT --> END([END])
Flow Stages:
.docs/ using diataxisAgent tool with run_in_background=true| Type | Purpose | Tools |
|------|---------|-------|
| coder | Implementation, refactoring, bug fixes | Full toolset including write |
| explore | Read-only codebase exploration | No write tools |
| plan | Architecture and planning | No Shell, no write tools |
For tasks involving UI coding or web interfaces, mandatory runtime validation using playwright-cli skill:
<working-directory>/
└── .fleet-sessions/<session-id>/
├── metadata.yaml # Session definition (REQUIRED)
├── todos.yaml # Observability snapshot (REQUIRED)
└── reports/ # Subagent outputs + UI evidence (REQUIRED)
├── auth-001.md # Text report
├── auth-001-ui-validation.png # UI screenshot evidence
├── api-002.md
└── ...
| Artifact | Purpose | Why Required |
|----------|---------|--------------|
| metadata.yaml | Session goal, scope, state | Entry point for understanding the session |
| todos.yaml | Todo state snapshot | Human-readable progress tracking |
| reports/*.md | Subagent execution outputs | Evidence of work completed |
| reports/*-ui-validation.png | UI validation screenshots | Visual proof of UI functionality |
| Excluded | Reason |
|----------|--------|
| waves/<N>/tasks/<ID>.md | Task briefs are ephemeral; included in subagent prompt |
| waves/<N>/ nesting | Flattened structure for simpler navigation |
| knowledge/ folder | Insights go directly to .docs/ via diataxis workflow |
┌─────────────────────────────────────────────────────────────────┐
│ LAYER 1: Runtime State (Internal) │
│ ├── Tool: SetTodoList │
│ ├── Storage: ~/.kimi/sessions/<hash>/<id>/state.json │
│ └── Purpose: Orchestration coordination │
│ ↓ (snapshot after each wave) │
├─────────────────────────────────────────────────────────────────┤
│ LAYER 2: Observability (External) │
│ ├── File: .fleet-sessions/<id>/todos.yaml │
│ ├── Storage: Git-tracked workspace │
│ └── Purpose: Human observation, debugging │
└─────────────────────────────────────────────────────────────────┘
Actions:
.fleet-sessions/<session-id>/metadata.yamltodos.yamlmetadata.yaml template:
session:
id: "260323-192800"
cli_session_path: "~/.kimi/sessions/<hash>/260323-192800"
started_at: "2026-03-23T19:20:00Z"
status: in_progress # in_progress | completed | failed
goal: "Implement user authentication system"
scope:
- Login endpoint
- JWT token generation
- Password hashing
Dispatch plan subagent to decompose work. When complete:
SetTodoList with all todostodos.yamlFor each wave:
SetTodoListAgent toolSetTodoList statustodos.yamlStandard Validation:
reports/*.mdUI Runtime Validation (if UI involved):
Activate skill: playwright-cli
Actions:
playwright-cli open.fleet-sessions/<session-id>/reports/Example validation flow:
# Start the dev server (background)
npm run dev &
# Navigate and test
playwright-cli open http://localhost:3000
playwright-cli click e5 # Login button
playwright-cli fill e8 "[email protected]"
playwright-cli fill e10 "password123"
playwright-cli click e12 # Submit
# Capture evidence to fleet session
playwright-cli screenshot .fleet-sessions/260323-192800/reports/auth-ui-validation.png
Screenshot persistence requirement: All UI validation screenshots MUST be saved to:
.fleet-sessions/<session-id>/reports/
├── <task-id>-ui-validation.png
├── <task-id>-error-state.png
└── <task-id>-final-result.png
If validation fails → Create fix tasks, return to wave execution
Activate skills: diataxis, diataxis-categorizer
Actions:
diataxis-categorizer.docs/<category>/<domain>/ locationDocumentation triggers:
Activate skill: git-atomic-commit
Actions:
.fleet-sessions/ + .docs/)Commit grouping example:
feat(auth): implement login endpoint
└─ src/auth/login.ts
docs(fleet): add session observability for auth implementation
└─ .fleet-sessions/260323-192800/
docs(how-to): add authentication pattern guide
└─ .docs/how-to/backend/auth-patterns.md
description: "Implement user auth"
prompt: |
Task: Implement user authentication
Todo ID: auth-001
Requirements:
- Add login endpoint at POST /api/auth/login
- Validate credentials against database
- Return JWT token on success
When done:
1. Write implementation summary to:
.fleet-sessions/260323-192800/reports/auth-001.md
2. Report status: done | needs_revision | blocked
3. List any files created/modified
subagent_type: coder
run_in_background: true
Fleet sessions produce observability artifacts — human-readable, git-shareable telemetry that captures the AI-assisted development process.
| Scenario | How observability helps |
|----------|------------------------|
| Code review | Reviewer checks .fleet/ to see AI session context |
| Debugging | Check todos.yaml to see execution flow and blockers |
| Knowledge handoff | .docs/ contains extracted insights |
| Audit trail | Immutable record of AI-assisted work |
Recommended .gitignore:
# Optional: exclude fleet sessions from git
# .fleet-sessions/
# Keep: documentation is valuable
# .docs/
Recommendation: Commit .fleet-sessions/ for:
Before proceeding to documentation and commit:
doneblocked todos remainingplaywright-cli to verify:
.fleet-sessions/<session-id>/reports/ as evidenceAt session end, report:
.docs/devops
Programmatically create tldraw whiteboards and visualize them with a self-hosted tldraw instance. Create boards with shapes, text, and connectors, then deploy to a self-hosted server for collaborative editing and gallery management.
tools
Execute Google Cloud Platform operations using the gcloud CLI (and gsutil/bq where applicable). Use when the user wants to: authenticate with GCP, manage GCP resources, deploy applications, configure projects or IAM, view logs, run SQL/BigQuery, or interact with any GCP service from the command line. Triggers on phrases like "gcloud", "Google Cloud CLI", "deploy to GCP", "create a VM", "Cloud Run", "GKE cluster", "Cloud Storage bucket", "set GCP project", "service account", "Cloud Functions", "App Engine deploy", or any request to manage Google Cloud resources via command line.
testing
Grilling session that challenges your plan against the existing domain model, sharpens terminology, and updates documentation (CONTEXT.md, ADRs) inline as decisions crystallise. Use when user wants to stress-test a plan against their project's language and documented decisions.
development
Session-scoped git commit orchestrator that commits only current-session changes and leaves unrelated dirty worktree edits untouched. Inherits git-atomic-commit for atomic grouping and commit message execution, and git-commit-scope-constitution for scope governance and validation. Use when asked to commit this session only or isolate commits from mixed worktree state.