pymol

pymol is a skill for Claude Code, Codex from google-deepmind/science-skills. It costs 84 tokens per session (1,537 once invoked), scanned A, original, Apache-2.0.

A PyMOL-based tool for viewing, analyzing, and rendering protein and other molecular structures. PyMOL is software that displays three-dimensional molecular models and can measure or compare parts of them.

In plain words
What is it for?
Use it to render protein structures, compare two structures, measure distances or contacts, highlight binding sites, and color structures by B-factor or pLDDT.
Why use it?
It provides a way to inspect molecular structure files without needing a graphics card, display, or X server. It also supports focused analysis such as contacts, binding sites, and structural alignment.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to render protein structures, compare two structures, measure distances or contacts, highlight binding sites, and color structures by B-factor or pLDDT.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/google-deepmind/science-skills/pymol
About the project

Science Skills is a collection of add-ons that give AI agents structured instructions, scripts, and references for scientific research, including genomics, structural biology, cheminformatics, and literature search. Researchers use it to guide agents through specialized scientific tasks with information from databases and tools such as AlphaGenome, AFDB, and UniProt. The catalogue entries are individual skills from this collection.

google-deepmind/science-skills · 2,863 stars · on GitHub · antigravity.google

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 google-deepmind/science-skills --skill pymol
Clone the repo
git clone --depth 1 https://github.com/google-deepmind/science-skills

Made for: Claude Code, 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

README.md
[![agentmods](https://agentmods.dev/badge/skills/google-deepmind/science-skills/pymol.svg)](https://agentmods.dev/skills/google-deepmind/science-skills/pymol)
Your own site
<a href="https://agentmods.dev/skills/google-deepmind/science-skills/pymol"><img src="https://agentmods.dev/badge/skills/google-deepmind/science-skills/pymol.svg" alt="Measured on agentmods" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,537 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. Third-party audits
  • Socket pass 19 May 2026
  • Snyk pass 19 May 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00084 $0.01537
Opus 5 $0.00042 $0.00768
Sonnet 5 $0.00017 $0.00307
Haiku 4.5 $0.00008 $0.00154

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

Security

Grade A, and why

pymol 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 9d ago.

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.

skills/pymol/SKILL.md · 147 lines

How it starts

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

PyMOL

Prerequisites

  1. uv: Read the uv skill and follow its Setup instructions to ensure uv is installed and on PATH.
  2. User Notification: If .licenses/pymol_LICENSE.txt does not already exist in the workspace root directory then (1) prominently notify the user to check the license at https://www.pymol.org/, then (2) create the file recording the notification text and timestamp.

Overview

All PyMOL commands run on the host via uv with OSMesa software rendering — no GPU, display, or X server is needed. Structure files must be downloaded to the host before running PyMOL.

Do NOT use when:

  • The user wants to run AlphaFold predictions.
  • The user wants docking or molecular dynamics simulations.
  • The user only has a sequence and no structure file — fetch the structure first. Check if any other installed skills can retrieve structures from the PDB or AlphaFold Database before proceeding.

Setup (Agent Instructions)

Ensure that uv is installed on the host system. The PyMOL scripts use PEP 0723 headers to declare their dependencies, and uv run will automatically handle installing them (including pymol-open-source-whl) when the script is executed.

Core Rules

  • Output paths must be absolute or relative to the user's project root. Always run PyMOL scripts from the user's project directory.
  • Software rendering only. Use cmd.png() for output. Never use cmd.draw() or cmd.ray() with hardware acceleration — OSMesa does not support it. Set environment variable PYOPENGL_PLATFORM=osmesa for headless rendering.
  • Always save a .pse session file alongside any PNG output. This lets the user open the session in their local PyMOL for further inspection.
  • Always call cmd.quit() at the end of every PyMOL script. Omitting it causes the process to stop responding.
  • Init boilerplate is mandatory. Every PyMOL script must begin with the initialization sequence. from pymol import cmd must come after finish_launching(), not before.
  • See references/PYMOL_REFERENCE.md for selection syntax, common commands, and gotchas.
  • Pre-Flight File Check: Before writing the PyMOL script or running it, you MUST verify that the requested structure file actually exists on the host machine.
  • Verify Structure Load: After loading a structure with cmd.load(), always verify it succeeded by checking cmd.count_atoms("all"). If the result is 0, print an error to stdout and call cmd.quit() immediately.
  • Notification: If this skill is used, ensure this is mentioned in the output.

Read the full file on GitHub · 147 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. 9d ago First seen · 147 lines · 84 tokens per session scan A a9e65d014645

Subscribe to this mod's changes

pymol is a skill published in the GitHub repository google-deepmind/science-skills (2,863 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 84 tokens to every session and 1,537 once invoked, about $0.0004 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-30.

Related

Other skills, from other repositories

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

anthropics/knowledge-work-plugins · 123 tokens

exploratory-data-analysis

Perform bounded, local exploratory analysis of explicitly supported scientific files. Use for redacted CSV/TSV/JSON profiles; optional NumPy, HDF5, FASTA/FASTQ, and basic image metadata inspection; missingness/leakage audits; outlier and transformation sensitivity; and rigorous EDA report scaffolds. Other domain…

K-Dense-AI/scientific-agent-skills · 83 tokens

matlab

Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

K-Dense-AI/scientific-agent-skills · 42 tokens

phylogenetics

Build and analyze phylogenetic trees using MAFFT (multiple alignment), IQ-TREE 2 (maximum likelihood), and FastTree (fast NJ/ML). Visualize with ETE3 or FigTree. For evolutionary analysis, microbial genomics, viral phylodynamics, protein family analysis, and molecular clock studies.

K-Dense-AI/scientific-agent-skills · 68 tokens

research-engineer

An uncompromising Academic Research Engineer. Operates with absolute scientific rigor, objective criticism, and zero flair. Focuses on theoretical correctness, formal verification, and optimal implementation across any required technology.

davila7/claude-code-templates · 43 tokens

mapping-to-snomed

Maps clinical concept spans extracted by OpenMed to SNOMED CT concepts through a USER-SUPPLIED terminology server (the user's own Ontoserver, Snowstorm, or UMLS/UTS), never a bundled vocabulary. Use when the user wants to code findings, disorders, procedures, body structures, or substances to SNOMED CT, run an ECL…

maziyarpanahi/openmed · 205 tokens