State Space Linearization

Linearizing nonlinear dynamics around operating points for control design.

49 stars 5 forksOther

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add UCSB-NLP-Chang/Skill-Usage --skill state-space-linearization
Manual install
git clone --depth 1 https://github.com/UCSB-NLP-Chang/Skill-Usage.git /tmp/Skill-Usage
mkdir -p ~/.claude/skills
cp -r /tmp/Skill-Usage/tasks/r2r-mpc-control/environment/skills/state-space-linearization ~/.claude/skills/state-space-linearization

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# State-Space Linearization

## Jacobian Computation

For nonlinear dynamics dx/dt = f(x, u), linearize around (x_ref, u_ref):

```
A = ∂f/∂x |_{x_ref}  (n×n matrix)
B = ∂f/∂u |_{x_ref}  (n×m matrix)
```

## Discretization

For discrete-time control with timestep dt:

**Euler method** (simple, first-order accurate):
```python
A_d = I + dt * A_c
B_d = dt * B_c
```

**Matrix exponential** (exact for LTI):
```python
A_d = expm(A_c * dt)
B_d = inv(A_c) @ (A_d - I) @ B_c
```

## For R2R Systems

The Jacobian depends on current tensions and velocities. Key partial derivatives:

```python
∂(dT_i/dt)/∂T_i = -v_i / L
∂(dT_i/dt)/∂v_i = EA/L - T_i/L
∂(dv_i/dt)/∂T_i = -R²/J
∂(dv_i/dt)/∂u_i = R/J
```

## Tips

- Linearize around the reference operating point
- Update linearization if operating point changes significantly
- Check stability via eigenvalue analysis
Read the full skill on GitHub

Details

Skill name
state-space-linearization
Path
tasks/r2r-mpc-control/environment/skills/state-space-linearization/SKILL.md
Repo updated
8 April 2026

FAQ

What does the State Space Linearization skill do?

Linearizing nonlinear dynamics around operating points for control design.

How do I install the State Space Linearization skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add UCSB-NLP-Chang/Skill-Usage --skill state-space-linearization. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is State Space Linearization popular?

It lives in UCSB-NLP-Chang/Skill-Usage, which has 49 GitHub stars and 5 forks.

Related skills

Browse the most popular Claude skills, all other skills, or write your own with the skills generator.