kubefleet-dev/kubefleet/cross-machine-coordination
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Enables squad agents on different machines to share work via git-based task queuing
Install
npx vskill@latest install kubefleet-dev/kubefleet/cross-machine-coordinationSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
Skill: Cross-Machine Coordination Pattern
Skill ID: cross-machine-coordination Owner: Ralph (Work Monitor) Squad Integration: All agents Status: Specification (ready for implementation)
Overview
Enables squad agents running on different machines (laptop, DevBox, Azure VM) to securely share work, coordinate execution, and pass results without manual intervention.
Pattern: Git-based task queuing + GitHub Issues supplement
Usage
For Task Sources (Orchestrating Machine)
To assign work to DevBox:
Ralph on DevBox will:
- Pull the task on next cycle (5-10 min)
- Validate schema & command whitelist
- Execute the GPU workload
- Write result to
.squad/cross-machine/results/gpu-voice-clone-001.yaml - Commit & push the result
For Task Executors (DevBox, Azure VMs)
Ralph automatically watches .squad/cross-machine/tasks/ for work targeted at this machine.
On each cycle (5-10 min):
For Urgent/Ad-Hoc Tasks
Use GitHub Issues with `squad:machine-{name}` label:
Ralph on DevBox will:
- Detect issue with
squad:machine-devboxlabel - Parse task from issue body
- Execute task
- Comment with result
- Close issue
File Formats
Task File (YAML)
Location: .squad/cross-machine/tasks/{timestamp}-{machine}-{task-id}.yaml
Required Fields:
Optional Fields:
Result File (YAML)
Location: .squad/cross-machine/results/{task-id}.yaml
Security Model
Validation Pipeline
All tasks go through:
- Schema Validation
- YAML structure matches spec
- Required fields present
- No unexpected fields (reject)
- Command Whitelist
- Only approved commands allowed
- Path validation (no
../../escapes) - Environment variable sanitization
- No inline shell operators (
&&,|,>)
- Resource Limits
- Timeout enforced (default: 60 min)
- Memory cap: 16GB (adjustable)
- CPU threads: 4 (adjustable)
- Disk write: 100GB (adjustable)
- Execution Isolation
- Runs as unprivileged user
- Temp directory cleaned after execution
- Network access: read-only (no outbound writes)
- Audit Trail
- All executions logged to git
- Commit signed with Ralph's key
- Result stored immutably
Threat Mitigations
| Threat | Mitigation | |
|---|---|---|
| Malicious task injection | Branch protection + PR review before merge | |
| Credential leakage | Pre-commit secret scan + environment scrubbing | |
| Resource exhaustion | Timeout + memory limits | |
| Code injection | Command whitelist + no shell evaluation | |
| Result tampering | Git commit history is immutable |
Configuration
Ralph reads config from .squad/config.json:
Examples
Example 1: GPU Voice Cloning (Laptop → DevBox)
1. Laptop creates task:
2. Laptop commits & pushes:
3. DevBox Ralph (5 min later):
4. Laptop Ralph (next cycle) sees result:
Example 2: Urgent Debug Request (Human → DevBox via Issue)
Create issue:
DevBox Ralph detects → executes → comments:
Error Handling
Task Execution Failures
If a task fails (exit code != 0):
- Result written with
status: failed+ exit code - stderr captured in result
- Committed to git for audit
- Source machine can retry by re-pushing task with
status: pending
Stalled Tasks
If a task doesn't complete within timeout:
- Process killed
- Result written with
status: timeout - stderr: "Execution exceeded X minutes"
- Source can investigate or retry
Network Failures
If git push/pull fails:
- Ralph retries on next cycle
- Tasks queue locally until connectivity restored
- No tasks lost (stored in local repo)
Monitoring & Debugging
Check Task Queue
Check Results
View Execution History
Monitor Ralph Cycles
Integration with Ralph Watch
Ralph automatically includes this pattern in its watch loop:
No manual Ralph configuration needed — just create task files or issues with the right labels.
Migration from Manual Handoff
Before (today):
- Laptop → user manually copies file to Teams chat
- user pastes into target terminal
- user copies output back
- user pastes result manually
After (with this pattern):
- Laptop Ralph writes task file → git push
- DevBox Ralph auto-executes → git push result
- Laptop Ralph auto-reads result
- 0 human intervention needed
Future Enhancements
Potential expansions (Phase 2+):
- Task Priorities: Execution order based on priority field
- Serial Pipelines: Machine A → B → C task chains
- GPU Availability Polling: Query DevBox before submitting work
- Cost Tracking: Log resource usage per task
- Notification Webhooks: Alert on task completion
- Web Dashboard: Real-time task status visualization
Questions?
Refer to research report: research/active/cross-machine-agents/README.md
Contact: Seven (Research & Docs) or Ralph (Work Monitor)
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.squad/templates/skills/cross-machine-coordination/SKILL.md
Popularity
- Repository stars
- 151
- Repository forks
- 27
- 7-day trend score
- 25
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kubefleet-dev/kubefleet/cross-machine-coordination)