hello-qm/catgo-lrg/energy-diagram
Claude Code and agent skill by hello-qm/catgo-lrg
- community
Checking that the SKILL.md file is still in the repository.
Use when the user asks to generate a reaction energy diagram, free energy profile, potential energy surface plot, or pathway comparison diagram for catalysis or reaction mechanism studies.
Install
npx vskill@latest install hello-qm/catgo-lrg/energy-diagramSKILL.md
Energy Diagram Generation
Overview
Generates Plotly-compatible reaction energy pathway diagrams from computed intermediate and transition-state energies. The output includes horizontal line segments for intermediates, cubic-spline curves for transition states, and dashed connectors between consecutive steps.
Key applications:
- Reaction mechanism comparison: Overlay multiple pathways on one diagram
- Catalysis studies: Visualize OER, HER, CO2RR, NRR free energy profiles
- Transition state analysis: Show activation barriers as TS arches
- Publication figures: Export as SVG/PNG from the Plotly viewer
MCP Tool: catgo_catalysis_energy_diagram
In the full MCP server, use the catgo_catalysis_energy_diagram tool. In the workflow engine, the free_energy node generates energy diagrams automatically from upstream gibbs_energy nodes.
Generate a Simple Energy Diagram
Compare Multiple Pathways
Include Transition States
Mark transition states with "is_ts": true. These appear as cubic-spline arches between the adjacent intermediates:
Custom Layout Configuration
Parameters
pathways (required)
Array of pathway objects. Each pathway contains:
| Field | Type | Required | Description | |
|---|---|---|---|---|
| name | string | no | Legend label for this pathway | |
| color | string | no | Line color (CSS color, e.g., "#1f77b4") | |
| steps | list[dict] | yes | Ordered list of intermediates and TSs |
Each step dict:
| Field | Type | Required | Description | |
|---|---|---|---|---|
| label | string | yes | State label (e.g., "*OH", "TS1") | |
| energy | float | yes | Energy in eV | |
| is_ts | bool | no | True for transition states (default false) |
config (optional)
| Parameter | Type | Default | Description | |
|---|---|---|---|---|
| base_spacing | float | 1.0 | Base horizontal spacing between states | |
| hline_ratio | float | 0.3 | Width of horizontal energy lines | |
| ts_spacing_ratio | float | 0.4 | Width of TS spline curves | |
| vline_ratio | float | 0.3 | Width of dashed connectors | |
| line_width | float | 3 | Line thickness | |
| energy_format | string | ".2f" | Python format string for energy labels | |
| height | int | 450 | Plot height in pixels | |
| y_label | string | "Free Energy (eV)" | Y-axis title | |
| x_label | string | "Reaction Coordinate" | X-axis title |
Return Format
The return value is directly compatible with Plotly: pass traces as the data array, merge annotations into layout.annotations, and render with Plotly.newPlot(div, traces, layout).
Workflow Integration: free_energy Node
In the CatGo workflow engine, the free_energy node automatically generates an energy diagram from upstream gibbs_energy nodes:
The free_energy node collects Gibbs energies from all connected upstream nodes and arranges them into a pathway diagram automatically.
Important: Use Gibbs Free Energies, NOT DFT Energies
All energy values passed to this tool must be Gibbs free energies (G), not raw DFT electronic energies (E_DFT). Each intermediate and gas-phase reference must go through the full chain: geo_opt --> freq --> gibbs_energy.
Using raw E_DFT omits zero-point energy (ZPE) and entropy (TS), which contribute 0.2-0.5 eV per intermediate. This makes the resulting diagram quantitatively wrong and can change which step is potential-determining.
For electrochemical reactions (OER, HER, CO2RR, NRR), also apply:
- Atom balancing with gas-phase references (H2, H2O, CO2, N2, NH3)
- pH correction: subtract 0.059 * pH eV per proton-transfer step at 298 K
Common Pitfalls
- Transition-state steps (
is_ts: true) must be placed between two
non-TS steps in the pathway. A TS at the start or end of a pathway will cause errors because the spline needs adjacent energy values.
- Energies should be Gibbs free energies in eV, referenced to a common
zero (typically the clean slab + gas-phase references).
- When comparing pathways, use the same energy reference for all of
them. Shifting one pathway by a constant offset invalidates the comparison.
- The anti-overlap algorithm adjusts annotation positions when
multiple pathways have states at the same x-coordinate. For heavily overlapping pathways, increase base_spacing in the config.
- The returned traces use null-gap separation for disconnected
line segments. This is a standard Plotly pattern for drawing multiple segments in one trace.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingserver/catgo/workflow/skills/analysis/energy_diagram/SKILL.md
Popularity
- Repository stars
- 172
- Repository forks
- 18
- 7-day trend score
- 26
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hello-qm/catgo-lrg/energy-diagram)