control-systems-pid

Design and tune feedback controllers with anti-windup and stability checks.

2|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/NlightNFotis/skills --skill control-systems-pid
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: control-systems-pid
Source: https://github.com/NlightNFotis/skills/tree/main/control-systems-pid
Command: npx skills add https://github.com/NlightNFotis/skills --skill control-systems-pid

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you design, review, and tune feedback-driven regulators so they reach a target reliably without oscillation, overshoot, flapping, or prolonged recovery after saturation.

Core Features & Use Cases

  • Control loop definition: Identifies the process variable, setpoint, manipulated variable, plant behavior, dead time, and disturbances before tuning begins.
  • Controller selection and tuning: Guides you through choosing P, PI, or PID control, with a strong bias toward practical software-safe defaults such as PI and anti-windup handling.
  • Stability and operations review: Checks gain margin, phase margin, dead-time sensitivity, actuator saturation, and bumpless switching between manual and automatic modes.
  • Use cases: Useful for autoscalers, congestion control, rate limiters, retry budgets, queue-length controllers, admission controllers, and thermal or resource throttling.

Quick Start

Use the control-systems-pid skill to review an autoscaler that keeps flapping around its CPU target and recommend a stable PI controller design.

Frequently Asked Questions about control-systems-pid

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I stop my autoscaler from oscillating and overshooting the CPU target?

To stop autoscaler oscillation, define the control loop by identifying the process variable, setpoint, and dead time, then apply a PI controller with anti-windup handling to maintain stability without overshoot or flapping.

What is the best way to tune a rate limiter using control theory?

Tuning a rate limiter with control theory involves selecting a controller structure like PI, analyzing dead-time sensitivity, and verifying gain and phase margins to ensure the feedback loop regulates traffic without instability or prolonged recovery.

Why does my feedback loop struggle with recovery after actuator saturation?

Feedback loops struggle after saturation due to windup, which occurs when the controller integrates error beyond actuator limits. Implementing anti-windup handling and bumpless transfer between manual and automatic modes resolves this.

Can I use PID control for congestion control and admission controllers?

Yes, PID control applies to congestion control and admission controllers. It guides manipulated variables to keep queue lengths or throughput near a setpoint while checking actuator limits and stability margins to prevent flapping.

When should I choose PI control over a full PID controller for queue controllers?

Choose PI control over PID for queue controllers when software-safe defaults are needed. PI avoids derivative kick from noise while still eliminating steady-state error, making it highly suitable for infrastructure regulators with delay.

How do I verify stability margins when designing a retry budget controller?

Verify stability margins for retry budgets by checking the gain margin, phase margin, and dead-time sensitivity of the feedback loop to ensure the controller handles disturbances and actuator saturation without causing system instability.