Mpc simulator controller

From XuShuwenn/RedAct · View interactive version

Mpc simulator controller is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Design, implement, and verify a linearized MPC controller that works with a provided simulator, generates required JSON outputs, and meets task-defined performance targets.

How to use this skill

Skill file

MPC Controller Workflow for Simulator-Based Tasks

This skill guides an agent to derive a linearized model, implement a compatible predictive controller (MPC/LQR-style), run a simulator for the required duration, log results in the task-defined schema, compute metrics, and validate outputs against performance targets.

When to Use

Activate this skill when the task:

Core Workflow

  1. Inspect the Environment
  1. Derive the Linearized Model
  1. Choose Controller Structure and Weights
  1. Implement the Control Loop
  1. Compute Metrics
  1. Write Controller Parameters
  1. Validate Outputs

Verification

Perform these checks before finalizing:

Common Pitfalls

Success Criteria

Optional Script Usage

Use the helper script in scripts/mpc_utils.py to:

This utility encodes reusable algorithms and validations across similar tasks.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.