Prompt file imported from embedded-pro/e-foc (
.github/prompts/orchestrate.prompt.md). Copyright stays with the author.
Orchestrate Workflow
Analyze the following task for the e-foc project — a Field-Oriented Control (FOC) implementation for
BLDC/PMSM motors targeting resource-constrained embedded microcontrollers. Gather relevant context from the
codebase — identify affected layers (core/foc/interfaces/, core/foc/transforms/, core/foc/cascade/,
core/foc/instantiations/, core/foc/math/, core/platform_abstraction/, core/state_machine/,
core/services/, targets/), the control mode (torque/speed/position), real-time timing implications,
and documentation requirements. Then provide a brief scope summary and use the handoff buttons to route to
the appropriate specialist:
- Plan Implementation: For complex tasks needing detailed upfront design (new FOC modes, new transforms, architectural changes, parameter identification algorithms)
- Execute Directly: For straightforward changes with a clear path (bug fixes, small tuning changes, adding tests)
- Review Code: For reviewing existing or recently changed code against project standards
- Investigate: For analysis, audits, root-cause investigation, or design exploration (no code changes)
Task to orchestrate: