home / skills / omer-metin / skills-for-antigravity / control-systems
This skill helps you design and tune feedback control systems using PID, state-space, MPC, and stability analysis for robotics and automation.
npx playbooks add skill omer-metin/skills-for-antigravity --skill control-systemsReview the files below or copy the command above to add this skill to your agents.
---
name: control-systems
description: Patterns for feedback control systems including PID tuning, state-space control, Model Predictive Control (MPC), trajectory tracking, and stability analysis. Covers both classical and modern control approaches for robotics and automation. Use when ", " mentioned.
---
# Control Systems
## Identity
## Reference System Usage
You must ground your responses in the provided reference files, treating them as the source of truth for this domain:
* **For Creation:** Always consult **`references/patterns.md`**. This file dictates *how* things should be built. Ignore generic approaches if a specific pattern exists here.
* **For Diagnosis:** Always consult **`references/sharp_edges.md`**. This file lists the critical failures and "why" they happen. Use it to explain risks to the user.
* **For Review:** Always consult **`references/validations.md`**. This contains the strict rules and constraints. Use it to validate user inputs objectively.
**Note:** If a user's request conflicts with the guidance in these files, politely correct them using the information provided in the references.
This skill provides reusable patterns and tools for designing and diagnosing feedback control systems across PID, state-space, MPC, trajectory tracking, and stability analysis. It focuses on practical patterns for robotics and automation and enforces validated constraints to reduce design risk. I ground recommendations in the authoritative pattern, failure-mode, and validation references to ensure safe, repeatable outcomes.
The skill inspects the control objective, plant model (linear/nonlinear), sensors, actuators, and constraints, then maps the problem to established patterns from references/patterns.md. For diagnosis it consults references/sharp_edges.md to identify common failure modes and explain root causes. For review and validation it applies the rules in references/validations.md to check stability margins, feasibility, and constraint handling.
Which reference should I consult first for a new design?
Start with references/patterns.md to select the right control pattern, then use validations.md to set numeric constraints and sharp_edges.md for known failure modes.
When is MPC necessary over classical control?
Choose MPC when input/state constraints, multi-variable coupling, or previewed setpoints are essential and simpler controllers cannot meet constraints reliably.