Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By ScottDuncanAIv0.1.0MIT
Shows whether a process unit's mass balances close, and whether a meter error or real material loss explains any gap. Needs Python 3.10 or newer; also builds a process knowledge graph from a P&ID PDF.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Scott Duncan. Reach me on LinkedIn or at scottduncanai.com.
Find out whether your plant's balances close, and if they don't, whether a meter is wrong or material is really going missing.
mass-balance is a Claude skill that performs a mass balance on a process unit from its historian data and its process context. Give it a historian export, the tag list and a P&ID or PFD, and it:
The pid-to-kg skill comes with it. If you have a P&ID or PFD as a PDF but no knowledge graph, the mass balance skill first builds one with the bundled pid-to-kg skill and then uses it to find the streams, meters, valves and vessels. One download gets both.
No programming is needed. You need Claude Code (the desktop app or the terminal version) and Python 3.10 or newer (3.12 is the best choice).
1. Download the skills. On this page, click the green Code button, then Download ZIP. Unzip the file.
2. Install them. In the unzipped folder, open skills and copy both folders, mass-balance and pid-to-kg, into your personal Claude skills folder:
| System | Skills folder |
|---|---|
| Windows | C:\Users\<your user name>\.claude\skills\ |
| macOS | /Users/<your user name>/.claude/skills/ |
If the skills folder doesn't exist yet, create it. The .claude folder is hidden by default: in Windows File Explorer use View → Show → Hidden items, and in macOS Finder press Cmd + Shift + . to show it.
3. Put your files in a project folder.
tag, timestamp, value) or wide (one column per tag).Open that folder in Claude Code. In the desktop app, start a new Code session and choose the folder.
No data at hand? The worked example has a complete set to try.
4. Ask Claude for the balance. For example:
Do a mass balance on the evaporator. The first two weeks were normal operation.
The skill loads by itself. Claude installs the Python packages it needs the first time, and asks permission before running commands. It shows you the decisions that matter and asks you to confirm them:
5. Open the report. Claude opens results/mass_balance_report.html in your browser when it finishes; it is the only file at the top of the results folder. The first section is the key takeaways and a numbered list of actions. Incidents, closure, drift and the technical details follow. Everything else (data tables, charts, results.json) is in results/supporting_files/ for anyone who wants the numbers.
Claude does the reading and the engineering judgement; tested Python scripts do the arithmetic. Reading a drawing and deciding what crosses a balance boundary need judgement. Unit conversion, reconciliation and statistical tests have to come out the same every time.
7-day copy clicks
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: skills.0: Invalid string: must start with "./", skills.1: Invalid string: must start with "./"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
Plugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.