Break down goals into multiple tasks and coordinate execution with gates and recovery. Based on Claw Code's agentic harness.
92
90%
Does it follow best practices?
Impact
100%
1.09xAverage score across 3 eval scenarios
Passed
No known issues
A foundational pattern for breaking down any goal into multiple coordinated tasks with explicit planning, execution, gating, and recovery.
Triggered when you need to:
This Tessl skill provides:
cat SKILL.mdls schemas/
# task-packet.schema.json — What to execute
# bootstrap-plan.schema.json — How to prepare
# worker-event.schema.json — State transitionsls contracts/
# planning-orchestrator.contract.yaml — Plan decomposition
# bootstrap-executor.contract.yaml — Phase execution
# worker-manager.contract.yaml — Worker lifecycle# Terminal 1: Start planning service
python3 examples/python-planning.py
# Terminal 2: Send a request
echo '{"id":"1","method":"decompose","params":{"objective":"add dark mode"}}' | nc localhost 5000# Run complete workflow (Python orchestrator + all services)
python3 examples/orchestrator.py "add dark mode to the dashboard"# Test planning service
echo '{"id":"1","method":"decompose","params":{"objective":"test"}}' | python3 examples/python-planning.py
# Test bootstrap service (if Rust available)
echo '{"id":"1","method":"execute_phase","params":{"phase":"system_prompt_fastpath"}}' | ./examples/rust-bootstrap
# Test worker manager
echo '{"id":"1","method":"spawn_worker","params":{"task_packet":{"objective":"test","scope":"module"}}}' | node examples/nodejs-worker.js┌─────────────────────────────────┐
│ High-Level Objective │
│ "add dark mode to app" │
└──────────────┬──────────────────┘
↓
┌─────────────────────────────────┐
│ Planning Orchestrator (Python) │ → Decompose into TaskPackets
└──────────────┬──────────────────┘
↓
┌─────────────────────────────────┐
│ Bootstrap Executor (Rust) │ → Prepare environment
└──────────────┬──────────────────┘
↓
┌─────────────────────────────────┐
│ Worker Manager (Node.js) │ → Manage lifecycle & trust
└──────────────┬──────────────────┘
↓
┌─────────────────────────────────┐
│ Permission Gates & Recovery │ → Gated execution
└──────────────┬──────────────────┘
↓
┌─────────────────────────────────┐
│ Execution (Tool Loop) │ → Agent runs tasks
└─────────────────────────────────┘A structured specification of work:
{
"objective": "Create theme provider component",
"scope": "module",
"scope_path": "src/theme",
"acceptance_tests": ["npm test -- theme"],
"commit_policy": "single verified commit",
"escalation_policy": "stop on ambiguity"
}Ordered preparation phases (idempotent):
cli_entry — Init config, auth, pathssystem_prompt_fastpath — Load instructionsmcp_fastpath — Initialize toolsdaemon_worker_fastpath — Spawn workermain_runtime — Ready for executionState machine transitions:
spawning → trust_required → trust_resolved → ready_for_prompt → running → finishedDefines what each service accepts/emits:
service: planning-orchestrator
input_messages:
decompose_request: {...}
output_messages:
plan_created: {...}All services use JSON-RPC over stdin/stdout:
// Request
{
"id": "req-001",
"method": "decompose",
"params": {
"objective": "add feature",
"context": {}
}
}
// Response
{
"id": "req-001",
"result": [
{
"objective": "...",
"scope": "module",
...
}
]
}planning-execution-harness/
├── SKILL.md # The main skill (architecture guide)
├── tile.json # Tessl package manifest (auto-optimized)
├── README.md # This file
├── PUBLISHING.md # Publishing & claiming guide
├── .github/workflows/
│ └── tessl-publish.yml # Auto-publish to Tessl on push
├── schemas/
│ ├── task-packet.schema.json
│ ├── bootstrap-plan.schema.json
│ └── worker-event.schema.json
├── contracts/
│ ├── planning-orchestrator.contract.yaml
│ ├── bootstrap-executor.contract.yaml
│ └── worker-manager.contract.yaml
└── examples/
├── orchestrator.py # Full workflow coordinator
├── python-planning.py # Planning service
├── rust-bootstrap.rs # Bootstrap service
├── nodejs-worker.js # Worker lifecycle service
└── request-examples.json # Sample requestsschemas/contracts/schemas/failure-scenario.schema.jsonValidate schema compliance:
# Install ajv (JSON Schema validator)
npm install -g ajv-cli
# Validate a request
ajv validate -s schemas/task-packet.schema.json -d examples/request-examples.json✅ Language-agnostic — Each service independent, any language
✅ Idempotent — Safe to retry any phase
✅ Event-driven — All state changes are published
✅ Schema-driven — Validate all I/O against schemas
✅ Gated execution — Explicit trust checks before action
✅ Observable — Complete event log for debugging
Use this skill when:
MIT
This is a reference implementation. Adapt for your needs!
Next Steps: