structure-analysis

structure-analysis is a skill for Claude Code from synthetic-sciences/openscience. It costs 141 tokens per session (2,082 once invoked), scanned A, original, Apache-2.0.

A guide for measuring and comparing protein structures, which are three-dimensional arrangements of atoms in proteins. It covers PDB and mmCIF files, chains, residues, contacts, hydrogen bonds, and interfaces.

In plain words
What is it for?
Use it to read structure files, identify residues and chains, count contacts or hydrogen bonds, and analyse protein interfaces with clearly stated rules.
Why use it?
The same structure can produce different counts depending on chain numbering, waters, alternate atom locations, symmetry copies, and distance or angle limits. The guide makes those choices explicit and reproducible.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to read structure files, identify residues and chains, count contacts or hydrogen bonds, and analyse protein interfaces with clearly stated rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/synthetic-sciences/openscience/structure-analysis
About the project

synthetic-sciences/openscience is an AI workbench that carries out scientific research by reading papers, forming hypotheses, writing and running code, conducting experiments, analyzing results, and preparing reports. Researchers use it for work in machine learning, biology, physics, and chemistry with remote or local models. Catalogue add-ons extend its scientific workflows through skills and instructions.

synthetic-sciences/openscience · 4,025 stars · on GitHub · openscience.sh

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 synthetic-sciences/openscience --skill structure-analysis
Clone the repo
git clone --depth 1 https://github.com/synthetic-sciences/openscience

Made for: Claude Code.

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 structure-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/synthetic-sciences/openscience/structure-analysis/github.svg)](https://agentmods.dev/skills/synthetic-sciences/openscience/structure-analysis)
Your own site
<a href="https://agentmods.dev/skills/synthetic-sciences/openscience/structure-analysis"><img src="https://agentmods.dev/badge/skills/synthetic-sciences/openscience/structure-analysis/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 structure-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/synthetic-sciences/openscience/structure-analysis"><img src="https://agentmods.dev/badge/skills/synthetic-sciences/openscience/structure-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 141 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,082 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.00141 $0.02082
Opus 5.5 $0.00056 $0.00833
Sonnet 5.5 $0.00028 $0.00416
Haiku 4.5 $0.00014 $0.00208

Measured 1mo ago against content hash 56a493ca9dd2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

structure-analysis 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 1mo 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.

backend/cli/skills/biology/structure-analysis/SKILL.md · 110 lines

How it starts

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

Protein structure analysis

One PDB entry yields different residue counts, interface lists and hydrogen-bond totals depending on how waters, HETATM records, alternate locations and symmetry copies were treated. Those choices, and every distance or angle cutoff, are part of the result and are reported with it.

Files and identity

  1. Prefer PDBx/mmCIF over the legacy PDB format: PDB files break above 99,999 atoms and 62 chains, truncate chain IDs to one character and have no entity concept. Download https://files.rcsb.org/download/<id>.cif or use Biopython PDBList().retrieve_pdb_file("1abc", pdir=".", file_format="mmCif"). Record the entry id, the model used (NMR ensembles have many; state the index) and the download date.
  2. Chains and entities: mmCIF has label_asym_id (internal chain), auth_asym_id (the author chain that papers and viewers use) and label_entity_id; a homodimer is one entity with two chains. Residue numbering is auth_seq_id (author numbering with gaps, insertion codes and negatives) or label_seq_id (1..n over the entity sequence). UniProt numbering is a third scheme, mapped by SIFTS. Say which one every residue number in the report follows.
  3. HETATM policy: ligands, ions, modified residues inside the polymer (MSE, SEP, TPO) and waters (HOH, DOD) are all HETATM. Decide and state whether waters are removed, ions kept, and modified residues counted as protein. Biopython encodes this in residue.id[0] (" " standard, "W" water, "H_XXX" hetero) and Bio.PDB.Polypeptide.is_aa(res, standard=True); gemmi offers st.remove_waters(), st.remove_ligands_and_waters(), st.remove_hydrogens() and Residue.het_flag. Call st.setup_entities() after reading PDB files with gemmi.
  4. Alternate locations: pick one conformer consistently. Biopython's PDBParser wraps them in DisorderedAtom objects that default to the highest occupancy (atom.is_disordered()); gemmi st.remove_alternative_conformations() keeps the first; MDAnalysis selects with altloc A. Counting all altlocs doubles some contacts.
  5. Insertion codes: a Biopython residue id is (hetflag, resseq, icode), so 52 and 52A are distinct residues; parsing the number alone merges them. Antibody numbering schemes rely on them.
  6. Assemblies: the asymmetric unit may hold half a dimer or two copies of a monomer. The biological assembly applies the operators in _pdbx_struct_assembly (REMARK 350). gemmi: gemmi.make_assembly(st.assemblies[0], st[0], gemmi.HowToNameCopiedChain.AddNumber) or st.transform_to_assembly("1", how); PyMOL set assembly, 1 before fetch; ChimeraX sym #1 assembly 1; RCSB serves <id>-assembly1.cif. Interfaces across symmetry mates exist only in the assembly. Report which assembly, or that the asymmetric unit was used.
  7. Hydrogens: crystal structures rarely include them. Angle-based hydrogen-bond criteria need added hydrogens (PDBFixer or OpenMM Modeller.addHydrogens, PyMOL h_add, ChimeraX addh); heavy-atom-only criteria are the alternative. State which.

Read the full file on GitHub · 110 lines

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. 1mo ago First seen · 110 lines · 141 tokens per session scan A 56a493ca9dd2

Subscribe to this mod's changes

structure-analysis is a skill published in the GitHub repository synthetic-sciences/openscience (4,025 stars, last pushed today), licensed Apache-2.0. It adds 141 tokens to every session and 2,082 once invoked, about $0.0006 per session on Opus 5.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-09-15.