SKAP Adapter Format
State-driven protocol for building agent workflows with explicit state transitions and conditional logic gates.
State-Based Workflow Protocol
Agents follow state transitions with conditional execution: Learn → Translate → Execute
| Phase | Action | Output |
|---|---|---|
| Learn | Agent explores | Notes/selectors |
| Translate | Make adapter | SKAP YAML/markdown |
| Execute | Run task | Reliable automation |
Adapter Format
SKAP adapters define state machines with conditional logic gates, not simple step sequences
Basic State-Based Adapter
---
name: "Simple Task Adapter"
platform: "web_platform"
state_trigger: "initial"
---
## State-Conditional Skills
### skill_action
state_condition: "if task_ready == true"
steps:
1. Action: "Perform task"
state_condition: "if context_valid == true"
Target: ".target-element"
Expected outcome: "Task completed"
2. Failure branch:
if_state: "error"
then: "retry_action"
# State Transitions
transitions:
- from: "initial" → to: "completed"
condition: "if skill_action_success == true"Adapters define state machines with conditional logic gates controlling execution flow.