home / skills / a5c-ai / babysitter / steering-behaviors
This skill helps implement AI steering behaviors for flocking, avoidance, and path following to coordinate agents in dynamic environments.
npx playbooks add skill a5c-ai/babysitter --skill steering-behaviorsReview the files below or copy the command above to add this skill to your agents.
---
name: steering-behaviors
description: Steering behaviors skill for flocking, avoidance, and group movement.
allowed-tools: Read, Grep, Write, Bash, Edit, Glob, WebFetch
---
# Steering Behaviors Skill
AI steering and movement behaviors.
## Capabilities
- Seek/flee/arrive
- Flocking (separation, alignment, cohesion)
- Obstacle avoidance
- Path following
This skill implements classic steering behaviors for agents to move naturally in virtual environments. It provides primitives like seek, flee, arrive, flocking (separation, alignment, cohesion), obstacle avoidance, and path following. The focus is on composable, real-time forces that produce emergent group movement and robust collision handling.
Each behavior computes a steering force vector based on agent state, targets, and nearby entities. Forces are combined, weighted, and constrained by physical limits (max speed, max force) to produce smooth motion. Spatial queries and simple obstacle geometry allow efficient avoidance and flocking at scale.
Can behaviors be combined dynamically at runtime?
Yes. Behaviors are designed to be composable and can be added, removed, or reweighted at runtime to change agent roles and reactions.
How do you prevent agents from oscillating or clipping through obstacles?
Clamp forces, apply arrival slowing, increase lookahead for avoidance, and use smoothing or predictive steering to reduce oscillation and clipping.