Agent skill

cobrapy

Constraint-based metabolic modeling (COBRA). FBA, FVA, gene knockouts, flux sampling, SBML models, for systems biology and metabolic engineering analysis.

K-Dense-AIgithub.com/K-Dense-AIGitHub ↗
claude-codecan modify filesMIT
Install
npx skills add K-Dense-AI/scientific-agent-skills --skill cobrapy --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 3
SKILL.md size: 14 KB
Bundled scripts: none
Version: 1.1
Allowed tools: ReadWriteEditBash
Requires: Requires Python 3.9+ (cobra 0.30+ dropped 3.8). Install with uv pip install. GLPK (swiglpk) is the default solver…
Path: skills/cobrapy/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 32,619
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# COBRApy - Constraint-Based Reconstruction and Analysis ## Overview COBRApy is a Python library for constraint-based reconstruction and analysis (COBRA) of metabolic models, essential for systems biology research. Work with genome-scale metabolic models, perform computational simulations of cellular metabolism, conduct metabolic engineering analyses, and predict phenotypic behaviors. **Version note:** Examples target **cobra 0.31.1** on PyPI (import `cobra`). Docs: [cobrapy.readthedocs.io](https://cobrapy.readthedocs.io/en/latest/). Repo: [opencobra/cobrapy](https://github.com/opencobra/cobrapy). ## When to Use This Skill Use this skill when: - Loading, building, or exporting genome-scale metabolic models (SBML, JSON, YAML) - Running FBA, pFBA, FVA, or flux sampling on COBRA models - Performing gene or reaction knockout screens and production envelope analysis - Designing or optimizing growth media and exchange constraints - Gap-filling infeasible models or validating model consistency ## Installation ```bash uv pip install "cobra==0.31.1" ``` MATLAB model I/O (optional): ```bash uv pip install "cobra[array]==0.31.1" ``` COBRApy uses [optlang](https://optlang.readthedocs.io/) for

What's inside
Steps it walks through
  1. Overview
  2. When to Use This Skill
  3. Installation
  4. Core Capabilities
  5. 1. Model Management
  6. 2. Model Structure and Components
  7. 3. Flux Balance Analysis (FBA)
  8. 4. Flux Variability Analysis (FVA)
  9. 5. Gene and Reaction Deletion Studies
  10. 6. Growth Media and Minimal Media
  11. 7. Flux Sampling
  12. 8. Production Envelopes
  13. 9. Gapfilling
  14. 10. Model Building
Ships with 2 files
  • references/api_quick_reference.md
  • references/workflows.md
Commands it runs
uv pip install "cobra==0.31.1"
uv pip install "cobra[array]==0.31.1"
More from scientific-agent-skills
All skills →
About this skill
What does the cobrapy skill do?

Constraint-based metabolic modeling (COBRA). FBA, FVA, gene knockouts, flux sampling, SBML models, for systems biology and metabolic engineering analysis.

How do I install it?

Run `npx skills add K-Dense-AI/scientific-agent-skills --skill cobrapy --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From K-Dense-AI/scientific-agent-skills, a repository with 32,619 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going