First Order Model Fitting
Fit first-order dynamic models to experimental step response data and extract K (gain) and tau (time constant) parameters.
Install
npx skills add UCSB-NLP-Chang/Skill-Usage --skill first-order-model-fittinggit 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/hvac-control/environment/skills/first-order-model-fitting ~/.claude/skills/first-order-model-fittingPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# First-Order System Model Fitting
## Overview
Many physical systems (thermal, electrical, mechanical) exhibit first-order dynamics. This skill explains the mathematical model and how to extract parameters from experimental data.
## The First-Order Model
The dynamics are described by:
```
tau * dy/dt + y = y_ambient + K * u
```
Where:
- `y` = output variable (e.g., temperature, voltage, position)
- `u` = input variable (e.g., power, current, force)
- `K` = process gain (output change per unit input at steady state)
- `tau` = time constant (seconds) - characterizes response speed
- `y_ambient` = baseline/ambient value
## Step Response Formula
When you apply a step input from 0 to u, the output follows:
```
y(t) = y_ambient + K * u * (1 - exp(-t/tau))
```
This is the key equation for fitting.
## Extracting Parameters
### Process Gain (K)
At steady state (t -> infinity), the exponential term goes to zero:
```
y_steady = y_ambient + K * u
```
Therefore:
```
K = (y_steady - y_ambient) / u
```
### Time Constant (tau)
The time constant can be found from the 63.2% rise point:
At t = tau:
```
y(tau) = y_ambient + K*u*(1 - exp(-1))
= y_ambient + 0.632 * (y_steady - y_ambient)
```
So tau is the time to reach 63.2% of the final output change.
## Model Function for Curve Fitting
```python
def step_response(t, K, tau, y_ambient, u):
"""First-order step response model."""
return y_ambient + K * u * (1 - np.exp(-t / tau))
```Details
- Skill name
first-order-model-fitting- Repository
- UCSB-NLP-Chang/Skill-Usage
- Path
tasks/hvac-control/environment/skills/first-order-model-fitting/SKILL.md- Repo updated
- 8 April 2026
FAQ
What does the First Order Model Fitting skill do?
Fit first-order dynamic models to experimental step response data and extract K (gain) and tau (time constant) parameters.
How do I install the First Order Model Fitting skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add UCSB-NLP-Chang/Skill-Usage --skill first-order-model-fitting. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is First Order Model Fitting popular?
It lives in UCSB-NLP-Chang/Skill-Usage, which has 49 GitHub stars and 5 forks.
Related skills
Pubchem Database
49UCSB-NLP-Chang/Skill-Usage
Query PubChem via PUG-REST API/PubChemPy (110M+ compounds). Search by name/CID/SMILES, retrieve properties, similarity/substructure searches, bioactivity, for cheminformatics.
Pymatgen
49UCSB-NLP-Chang/Skill-Usage
Materials science toolkit. Crystal structures (CIF, POSCAR), phase diagrams, band structure, DOS, Materials Project integration, format conversion, for computational materials science.
Rdkit
49UCSB-NLP-Chang/Skill-Usage
Cheminformatics toolkit for fine-grained molecular control. SMILES/SDF parsing, descriptors (MW, LogP, TPSA), fingerprints, substructure search, 2D/3D generation, similarity, reactions. For standard workflows with simpler interface, use datamol (wrapper around RDKit). Use rdkit for advanced control, custom sanitization, specialized algorithms.
Glm Basics
49UCSB-NLP-Chang/Skill-Usage
Basic usage of the General Lake Model (GLM) for lake temperature simulation. Use when you need to run GLM, understand input files, or modify configuration parameters.
Feature Engineering
49UCSB-NLP-Chang/Skill-Usage
Engineer dataset features before ML or Causal Inference. Methods include encoding categorical variables, scaling numerics, creating interactions, and selecting relevant features.
Glm Calibration
49UCSB-NLP-Chang/Skill-Usage
Calibrate GLM parameters for water temperature simulation. Use when you need to adjust model parameters to minimize RMSE between simulated and observed temperatures.
Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.