pymol-interface-hbond-figures

pymol-interface-hbond-figures is a skill for Codex from Ling-MD/md-agent-skills. It costs 97 tokens per session (1,004 once invoked), scanned A, original, MIT.

A workflow for making PyMOL images of contacts between two protein chains. PyMOL is molecular-visualization software, and hydrogen bonds are attractions between atoms that can help hold molecules together.

In plain words
What is it for?
Use it to create reusable figures from PDB files or molecular-dynamics snapshots, showing protein chains, interface residues, hydrogen bonds, and labels.
Why use it?
It removes the manual work of cleaning a structure, finding interface hydrogen bonds, styling the view, and labeling the relevant residues consistently.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Good fit Use it to create reusable figures from PDB files or molecular-dynamics snapshots, showing protein chains, interface residues, hydrogen bonds, and labels.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ling-md/md-agent-skills/pymol-interface-hbond-figures
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Ling-MD/md-agent-skills --skill pymol-interface-hbond-figures
Clone the repo
git clone --depth 1 https://github.com/Ling-MD/md-agent-skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pymol-interface-hbond-figures

README.md
[![agentmods](https://agentmods.dev/badge/skills/ling-md/md-agent-skills/pymol-interface-hbond-figures/github.svg)](https://agentmods.dev/skills/ling-md/md-agent-skills/pymol-interface-hbond-figures)
Your own site
<a href="https://agentmods.dev/skills/ling-md/md-agent-skills/pymol-interface-hbond-figures"><img src="https://agentmods.dev/badge/skills/ling-md/md-agent-skills/pymol-interface-hbond-figures/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pymol-interface-hbond-figures

Your own site · 80×15
<a href="https://agentmods.dev/skills/ling-md/md-agent-skills/pymol-interface-hbond-figures"><img src="https://agentmods.dev/badge/skills/ling-md/md-agent-skills/pymol-interface-hbond-figures.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,004 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00097 $0.01004
Opus 5 $0.00048 $0.00502
Sonnet 5 $0.00019 $0.00201
Haiku 4.5 $0.00010 $0.00100

Measured 11d ago against content hash 121b4a399eb0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

pymol-interface-hbond-figures scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/render_interface_hbonds.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

pymol-interface-hbond-figures/SKILL.md · 81 lines

How it starts

The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PyMOL Interface H-Bond Figures

Create publication-style interface hydrogen-bond figures from local PDB snapshots. This skill captures the workflow used for the Fang_Guobing MD snapshots: protein only, chain-colored transparent cartoon, only hydrogen-bonding interface residues as sticks, green dashed H-bonds, readable residue labels, and reproducible output files.

Quick Start

Use PyMOL's bundled Python interpreter on this machine:

& 'C:\Users\dell\Downloads\PyMOL-3.1.6.1_appveyor2641-Win64-portable-py310\PyMOL\python.exe' `
  'C:\Users\dell\.codex\skills\pymol-interface-hbond-figures\scripts\render_interface_hbonds.py' `
  --pdb 'E:\path\to\snapshot_100ns.pdb' `
  --chain-a A `
  --chain-b B

The script writes, by default, next to the input PDB:

  • <prefix>_interface_hbonds.png
  • <prefix>_interface_hbonds.pml
  • <prefix>_interface_hbond_pairs.tsv
  • <prefix>_interface_hbond_residues.tsv

Workflow

  1. Confirm the interface chains. Default is A and B; override with --chain-a and --chain-b for other systems.
  2. Run scripts/render_interface_hbonds.py with the PDB path and optional output prefix.
  3. Inspect the PNG. If labels are crowded, regenerate with a larger image size, smaller labels, or use the generated PML as the refinement starting point.
  4. Report the PNG/PML/TSV output paths and summarize detected hydrogen-bonding residues.

Style Defaults

Use these defaults unless the user asks otherwise:

  • Remove everything except polymer.protein.
  • Cartoon all protein chains with transparency 0.35.
  • Chain A color: blue #0B7DB3, matching the prior MM/PBSA bar plot style.
  • Chain B color: orange-yellow #E69F00, matching the prior MM/PBSA bar plot style.
  • Hydrogen bonds: green #00C71F, dashed.
  • Show only hydrogen-bond-forming residues as sticks.
  • Carbon atoms in sticks match their chain cartoon color; hetero atoms keep atomic colors.
  • Labels show residue name and number, for example ARG142; label color matches the chain.
  • No explanatory caption or small text in the upper-left corner.

Read the full file on GitHub · 81 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 81 lines · 97 tokens per session scan A 121b4a399eb0

Subscribe to this mod's changes

pymol-interface-hbond-figures is a skill published in the GitHub repository Ling-MD/md-agent-skills (4 stars, last pushed 3mo ago), licensed MIT. It adds 97 tokens to every session and 1,004 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

ase-atomistic

Atomic Simulation Environment (ASE) for atomistic simulations: structure building, geometry optimization, NEB, molecular dynamics, and trajectory analysis.

xjtulyc/awesome-rosetta-skills · 32 tokens

mdanalysis-trajectory

Analyze molecular dynamics trajectories with MDAnalysis — RMSD, RMSF, hydrogen bonds, contact maps, and protein-ligand distances.

xjtulyc/awesome-rosetta-skills · 32 tokens

md-analysis

This skill covers quantitative post-processing of atomistic molecular dynamics trajectories: loading and preprocessing trajectories from LAMMPS, GROMACS, or ASE; computing structural observables (RDF, coordination numbers, angular distributions, bond orientational order, common-neighbor analysis, centrosymmetry…

SFETNI/Deep-Matter-Chem-Skills · 2 tokens

md-force-fields

This skill covers selection, validation, and deployment of interatomic force fields for molecular dynamics: the physical basis and transferability limits of every major functional form (EAM, MEAM, Tersoff, Stillinger-Weber, Buckingham, COMB, ReaxFF, AMBER, CHARMM, OPLS, GROMOS, and ML potentials); parameter-file…

SFETNI/Deep-Matter-Chem-Skills · 3 tokens

reactive-md

This skill covers reactive molecular dynamics (reactive MD) using LAMMPS with the ReaxFF and COMB force fields: force-field selection and parameter provenance, charge equilibration (QEq) setup and diagnostics, timestep and thermostat selection for reactive systems, thermal protocols for reaction sampling, reaction…

SFETNI/Deep-Matter-Chem-Skills · 3 tokens

coarse-grained-md

This skill covers coarse-grained (CG) molecular dynamics: mapping atomistic structures to CG bead representations, parameterizing CG force fields (Martini 3, iterative Boltzmann inversion, force matching), running CG simulations in GROMACS and LAMMPS, backmapping CG configurations to atomistic resolution, and…

SFETNI/Deep-Matter-Chem-Skills · 5 tokens