generate, refactor, and review pybricks python for lego spike competition robots. use when the user wants correct pybricks code, port mapping, drivebase setup, reusable subroutines, or safe code patterns for fll, wro, robocup junior rescue line, or other autonomous lego spike tasks.
Turn competition intent into pybricks code that is easy to tune at the table, uses the official api correctly, and stays readable under competition pressure.
main() entry point.DriveBase for two-motor chassis.drive() loops only for sensor-guided behavior such as line following.deliver_sample() over run_attachment_a().Use this structure unless the user requests a different one:
Provide a full runnable program.
references/pybricks-competition-patterns.md for standard imports, structure, and review checks.assets/competition_base.py as the default starting skeleton when writing a new program.