Agent skill
fleet
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.
Install this agent skill to your Project
npx add-skill https://github.com/arisng/github-copilot-fc/tree/main/coding-agents/kimi/skills/fleet
SKILL.md
Fleet Flow Skill
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.
Agent Flow
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:
- Initialize → Create metadata, snapshot initial state
- Plan → Decompose work, snapshot todo plan
- Execute Waves → Dispatch subagents, collect results, snapshot progress
- Review → Validate outputs, loop if issues
- Document → Extract insights, write to
.docs/using diataxis - Commit → Compose atomic commits using git-atomic-commit
Core Principles
Parallel Dispatch
- Dispatch independent tasks simultaneously using
Agenttool withrun_in_background=true - Never dispatch just one subagent when multiple tasks are ready
- Serialize only tasks with true dependencies
Subagent Types
| 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 |
UI Validation
For tasks involving UI coding or web interfaces, mandatory runtime validation using playwright-cli skill:
- Navigate to the UI endpoint
- Interact with critical user flows
- Capture screenshots for verification
- Validate backend integration through UI testing
Artifact Structure (Streamlined)
Minimal Observability Footprint
<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 Rationale
| 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 |
What's NOT Included
| 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 |
Dual-Layer Todo Architecture
┌─────────────────────────────────────────────────────────────────┐
│ 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 │
└─────────────────────────────────────────────────────────────────┘
Layer 1: SetTodoList (Runtime)
- Source of truth for orchestration
- In-memory, fast, no I/O overhead
- Updated after each subagent completes
Layer 2: todos.yaml (Observability)
- Derived snapshot for human inspection
- Written at wave boundaries
- Git-shareable for team visibility
Execution Flow
1. Initialize Session
Actions:
- Create
.fleet-sessions/<session-id>/metadata.yaml - Snapshot initial
todos.yaml
metadata.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
2. Create Master Plan
Dispatch plan subagent to decompose work. When complete:
- Update
SetTodoListwith all todos - Snapshot to
todos.yaml
3. Execute Waves
For each wave:
- Identify ready tasks from
SetTodoList - Dispatch in parallel using
Agenttool - Collect results from subagent responses
- Update
SetTodoListstatus - Snapshot to
todos.yaml
4. Review and Validate
Standard Validation:
- Read all
reports/*.md - Validate against original goal
UI Runtime Validation (if UI involved):
Activate skill: playwright-cli
Actions:
- Start the application (if not already running)
- Navigate to UI endpoints using
playwright-cli open - Test critical user flows (clicks, forms, navigation)
- Capture screenshots for verification
- Persist screenshots to
.fleet-sessions/<session-id>/reports/ - Validate backend integration through UI
- Report any UI/runtime issues with screenshot evidence
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 "test@example.com"
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
5. Document Insights (Diataxis)
Activate skills: diataxis, diataxis-categorizer
Actions:
- Analyze session for reusable insights
- Classify using Diátaxis framework:
- Tutorials: Step-by-step learning experiences
- How-to Guides: Task-oriented instructions
- Reference: Technical descriptions
- Explanation: Conceptual understanding
- Determine domain sub-category using
diataxis-categorizer - Write to appropriate
.docs/<category>/<domain>/location
Documentation triggers:
- New patterns discovered
- Workflow rules established
- Gotchas or pitfalls encountered
- Reusable solutions
6. Git Atomic Commit
Activate skill: git-atomic-commit
Actions:
- Analyze all changes (code +
.fleet-sessions/+.docs/) - Group into atomic commits per file type/scope
- Generate conventional commit messages
- Auto-commit all changes
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
Subagent Dispatch Pattern
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
Session Observability
Purpose
Fleet sessions produce observability artifacts — human-readable, git-shareable telemetry that captures the AI-assisted development process.
Collaboration Scenarios
| 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 |
Git Integration
Recommended .gitignore:
# Optional: exclude fleet sessions from git
# .fleet-sessions/
# Keep: documentation is valuable
# .docs/
Recommendation: Commit .fleet-sessions/ for:
- Cross-team visibility into AI work
- Debugging context
- Historical analysis
Quality Gates
Before proceeding to documentation and commit:
- All todos marked
done - No
blockedtodos remaining - Outputs validated against requirements
- Implementation sensible and robust
- UI runtime validation passed (if UI tasks involved) - Use
playwright-clito verify:- UI renders correctly
- User interactions work
- Backend integration functions
- Screenshots persisted to
.fleet-sessions/<session-id>/reports/as evidence
Completion Summary
At session end, report:
- Tasks dispatched and completed
- Files created/modified
- UI runtime validation results (if applicable)
- Documentation added to
.docs/ - Commits created (with hashes)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
openspec-propose
Propose a new change with all artifacts generated in one step. Use when the user wants to quickly describe what they want to build and get a complete proposal with design, specs, and tasks ready for implementation.
openspec-archive-change
Archive a completed change in the experimental workflow. Use when the user wants to finalize and archive a change after implementation is complete.
openspec-explore
Enter explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements. Use when the user wants to think through something before or during a change.
openspec-apply-change
Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through tasks.
github-pages-deploy
Deploy a static HTML file or static site directory to GitHub Pages. Use when the user wants a durable GitHub-hosted URL for a static page, diagram, report, or generated site, and can provide GitHub authentication via GITHUB_TOKEN or GH_TOKEN.
mermaid-creator
Create Mermaid diagrams (activity, deployment, sequence, architecture) from text descriptions or source code. Use when asked to "create a diagram", "generate mermaid", "document architecture", "code to diagram", "create design doc", or "convert code to diagram". Supports hierarchical on-demand guide loading, Unicode semantic symbols, and Python utilities for diagram extraction and image conversion.
Didn't find tool you were looking for?