Agent skill

State Space Linearization

by benchflow-ai in benchflow-ai/skillsbench

Linearizing nonlinear dynamics around operating points for control design.

Apache-2.0Auto-check passed

Install State Space Linearization

skills CLI
$ npx skills add benchflow-ai/skillsbench --skill state-space-linearization -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install benchflow-ai/skillsbench state-space-linearization --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/benchflow-ai/skillsbench.git skills-src && mkdir -p .claude/skills && cp -r skills-src/tasks/r2r-mpc-control/environment/skills/state-space-linearization .claude/skills/state-space-linearization && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
state-space-linearization
GitHub stars
1.8k
Token cost
~248 tokens
SKILL.md length
64 words
Files
1
Skills in repo
180
Repo updated
First seen
Licence
Apache-2.0

At a glance

Linearizing nonlinear dynamics around operating points for control design.

  • SKILL.md covers Jacobian Computation, Discretization, For R2R Systems and Tips
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

State Space Linearization is an agent skill from benchflow-ai/skillsbench. Linearizing nonlinear dynamics around operating points for control design.

Its SKILL.md is about 250 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: SkillsBench evaluates how well skills work and how effective agents are at using them. The licence is Apache-2.0.

Example prompts

  • “/state-space-linearization”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 9a1f4dd. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are python).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

State Space Linearization loads about 248 tokens when it runs. Until then it costs about 25 tokens; SKILL.md has 64 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~25
When it runs · the whole SKILL.md, loaded when a task matches
~248

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from benchflow-ai/skillsbench at commit 9a1f4dd, republished under its Apache-2.0 licence (© benchflow-ai). 64 words, ~248 tokens.

Download SKILL.mdSave it as .claude/skills/state-space-linearization/SKILL.md (or your agent's skills folder).
name
state-space-linearization
description
Linearizing nonlinear dynamics around operating points for control design.

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

© benchflow-ai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in tasks/r2r-mpc-control/environment/skills/state-space-linearization of benchflow-ai/skillsbench.

Open the folder on GitHubat commit 9a1f4dd

Compare with similar skills

State Space Linearization next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

State Space Linearization compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
State Space Linearization this skillbenchflow-ai/skillsbench1.8k—~248Automated safety check: PassApache-2.0
Linearasgeirtj/system_prompts_leaks69k—~653Automated safety check: PassCC0-1.0
Linearyc-software/qm15k—~886Automated safety check: PassMIT
Linear Issue Workflowlobehub/lobehub83k—~1.5kAutomated safety check: PassCustom licence
It Operationsdavila7/claude-code-templates32k1 repos~3.7kAutomated safety check: PassMIT
Linearkaranhudia/borg-ui1.7k—~1.7kAutomated safety check: PassAGPL-3.0

Similar skills

  • Linear

    asgeirtj/system_prompts_leaks

    Read and manage software issues, tickets, projects, and planning data in Linear.

    69k GitHub stars~653 tokensUpdated 2 days ago
    Product & Project ManagementAuto-check passed
  • Linear

    yc-software/qm

    Search, read, create, and update the user's Linear issues, projects, and comments through per-user OAuth.

    15k GitHub stars~886 tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Linear Issue Workflow

    lobehub/lobehub

    Handles Linear issues for the team: reading details and images, checking sub-issues, marking progress, labeling AI-created issues and writing completion comments.

    83k GitHub stars~1.5k tokensUpdated today
    Productivity & AutomationAuto-check passed
  • It Operations

    davila7/claude-code-templates

    Manages IT infrastructure, monitoring, incident response, and service reliability.

    32k GitHub starsUsed in 1 repo~3.7k tokens
    DevOps & CloudAuto-check passed
  • Linear

    karanhudia/borg-ui

    Use Symphony's lineargraphql client tool for raw Linear GraphQL operations such as comment editing and upload flows.

    1.7k GitHub stars~1.7k tokensUpdated today
    Backend & APIsAuto-check passed
  • Design task-local harnesses, eval gates, and reusable skill extraction for Claude dynamic workflow mode and other adaptive agent harnesses.

    274k GitHub starsUsed in 1 repo~1.3k tokens
    Auto-check passed

More from benchflow-ai/skillsbench

All 180 skills in this repo
  • Lean4 Memories

    benchflow-ai/skillsbench

    This skill should be used when working on Lean 4 formalization projects to maintain persistent memory of successful proof patterns, failed approaches, project conventions, and user preferences…

    1.8k GitHub stars~3.2k tokensUpdated 2 mo ago
    Auto-check passed
  • Senior Data Engineer

    benchflow-ai/skillsbench

    World-class data engineering skill for building scalable data pipelines, ETL/ELT systems, real-time streaming, and data infrastructure.

    1.8k GitHub stars~5.9k tokensUpdated 2 mo ago
    Auto-check passed
  • Ac Branch Pi Model

    benchflow-ai/skillsbench

    AC branch pi-model power flow equations (P/Q and |S|) with transformer tap ratio and phase shift, matching acopf-math-model.md and MATPOWER branch fields.

    1.8k GitHub stars~1.1k tokensUpdated 2 mo ago
    Auto-check passed
  • Civ6lib

    benchflow-ai/skillsbench

    Civilization 6 district mechanics library. An agent skill from benchflow-ai/skillsbench.

    1.8k GitHub stars~1.7k tokensUpdated 2 mo ago
    Auto-check passed
  • D3 Visualization

    benchflow-ai/skillsbench

    Build deterministic, verifiable data visualizations with D3.js (v6).

    1.8k GitHub stars~1.5k tokensUpdated 2 mo ago
    Auto-check passed
  • Dc Power Flow

    benchflow-ai/skillsbench

    DC power flow analysis for power systems. An agent skill from benchflow-ai/skillsbench.

    1.8k GitHub stars~717 tokensUpdated 2 mo ago
    Auto-check passed

Questions about State Space Linearization

What does State Space Linearization do?

Linearizing nonlinear dynamics around operating points for control design. State Space Linearization is an agent skill from benchflow-ai/skillsbench. Linearizing nonlinear dynamics around operating points for control design.

How do I install State Space Linearization in Claude Code?

Run `npx skills add benchflow-ai/skillsbench --skill state-space-linearization -a claude-code`. Or copy the skill folder (tasks/r2r-mpc-control/environment/skills/state-space-linearization in benchflow-ai/skillsbench) into .claude/skills/state-space-linearization in your project. Claude Code loads it when a task matches its description.

How do I install State Space Linearization in Codex?

Run `npx skills add benchflow-ai/skillsbench --skill state-space-linearization -a codex`. Or copy the skill folder (tasks/r2r-mpc-control/environment/skills/state-space-linearization in benchflow-ai/skillsbench) into .agents/skills/state-space-linearization in your project. Codex loads it when a task matches its description.

Can I use State Space Linearization in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add benchflow-ai/skillsbench --skill state-space-linearization -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/state-space-linearization, .gemini/skills/state-space-linearization, .github/skills/state-space-linearization and .opencode/skills/state-space-linearization in your project.

What does State Space Linearization need to run?

SKILL.md names no scripts, command-line tools or credentials: State Space Linearization is instructions for the agent only. Our summary lists: Python 3.

Does State Space Linearization access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is State Space Linearization safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does State Space Linearization use?

State Space Linearization is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does State Space Linearization use?

About 248 tokens (SKILL.md is roughly 992 characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to State Space Linearization?

Skills that share tags, products or a category with State Space Linearization: Linear (asgeirtj/system_prompts_leaks, 69k stars), Linear (yc-software/qm, 15k stars), Linear Issue Workflow (lobehub/lobehub, 83k stars) and It Operations (davila7/claude-code-templates, 32k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains State Space Linearization?

benchflow-ai (a GitHub organization) maintains it in benchflow-ai/skillsbench, which has 1,832 GitHub stars. The repository holds 180 skills in this directory. The repository was last updated on July 23, 2026.

Source: benchflow-ai/skillsbench on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.