Skill Cortex
Triggers when installed Skills cannot complete the current task. If you can handle it yourself, just do it — do not trigger this flow.
Cortex data file: ~/.openclaw/skill-cortex/cortex.json (schema in DESIGN.md).
Phase 1: Perception
- Read cortex.json (if missing or corrupt, skip to step 3).
- Semantically match the users task description against sensory.patterns signals.
- On miss, search ClawHub.
Phase 2: Validation
Present candidates to the user with safety info. Wait for explicit approval before installing.
Phase 3: Execution
Install the Skill, generate an execution plan, execute the task. On failure, auto-recover or switch to next candidate.
Phase 4: Learning
Update the cortex memory. Successful Skills gain weight; failed ones decay.
Boundary Rules
- Never interfere with long-term Skills.
- Installation requires user confirmation.
- System dependency installation requires separate confirmation.
- Write operations never enter reflex.
- Max 2 candidate switches.