pdb

pdb is a skill for Claude Code, Codex from zongtingwei/Bioclaw_Skills_Hub. It costs 86 tokens per session (1,566 once invoked), scanned B, original, MIT.

A guide for retrieving and examining protein structures from the Protein Data Bank, a public database of experimentally determined molecular structures. It describes downloading structures by identifier, finding similar structures, and selecting chains or domains.

In plain words
What is it for?
Use it to download PDB or mmCIF files, retrieve FASTA sequences, inspect structure metadata, extract selected chains or domains, and prepare a target structure.
Why use it?
It provides repeatable ways to obtain the right structure and prepare it for analysis or protein-design work. It also distinguishes structure lookup from sequence lookup.

Skill for Claude CodeCodex

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

Good fit Use it to download PDB or mmCIF files, retrieve FASTA sequences, inspect structure metadata, extract selected chains or domains, and prepare a target structure.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zongtingwei/bioclaw_skills_hub/pdb
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 zongtingwei/Bioclaw_Skills_Hub --skill pdb
Clone the repo
git clone --depth 1 https://github.com/zongtingwei/Bioclaw_Skills_Hub

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 pdb

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/zongtingwei/bioclaw_skills_hub/pdb"><img src="https://agentmods.dev/badge/skills/zongtingwei/bioclaw_skills_hub/pdb.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,566 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 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.00086 $0.01566
Opus 5 $0.00043 $0.00783
Sonnet 5 $0.00017 $0.00313
Haiku 4.5 $0.00009 $0.00157

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

Security

Grade B, and why

pdb scanned grade B with 2 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 12d 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.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

response = requests.post( "https://search.rcsb.org/rcsbsearch/v2/query",

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -o 1alu.pdb "https://files.rcsb.org/download/1ALU.pdb"
skills/protein-design/skills/pdb/SKILL.md · 234 lines

How it starts

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

PDB Database Access

Note: This skill uses the RCSB PDB web API directly. No Modal deployment needed - all operations run locally via HTTP requests.

Fetching Structures

By PDB ID

# Download PDB file
curl -o 1alu.pdb "https://files.rcsb.org/download/1ALU.pdb"

# Download mmCIF
curl -o 1alu.cif "https://files.rcsb.org/download/1ALU.cif"

Using Python

from Bio.PDB import PDBList

pdbl = PDBList()
pdbl.retrieve_pdb_file("1ABC", pdir="structures/", file_format="pdb")

Using RCSB API

import requests

def fetch_pdb(pdb_id: str, format: str = "pdb") -> str:
    """Fetch structure from RCSB PDB."""
    url = f"https://files.rcsb.org/download/{pdb_id}.{format}"
    response = requests.get(url)
    response.raise_for_status()
    return response.text

def fetch_fasta(pdb_id: str) -> str:
    """Fetch sequence in FASTA format."""
    url = f"https://www.rcsb.org/fasta/entry/{pdb_id}"
    return requests.get(url).text

# Example usage
pdb_content = fetch_pdb("1ALU")
with open("1ALU.pdb", "w") as f:
    f.write(pdb_content)

Structure Preparation

Selecting Chains

from Bio.PDB import PDBParser, PDBIO, Select

class ChainSelect(Select):
    def __init__(self, chain_id):
        self.chain_id = chain_id

    def accept_chain(self, chain):
        return chain.id == self.chain_id

# Extract chain A
parser = PDBParser()
structure = parser.get_structure("protein", "1abc.pdb")
io = PDBIO()
io.set_structure(structure)
io.save("chain_A.pdb", ChainSelect("A"))

Trimming to Binding Region

def trim_around_residues(pdb_file, center_residues, buffer=10.0):
    """Trim structure to region around specified residues."""
    parser = PDBParser()
    structure = parser.get_structure("protein", pdb_file)

    # Get center coordinates
    center_coords = []
    for res in structure.get_residues():
        if res.id[1] in center_residues:
            center_coords.extend([a.coord for a in res.get_atoms()])

    center = np.mean(center_coords, axis=0)

    # Keep residues within buffer
    class RegionSelect(Select):
        def accept_residue(self, res):
            for atom in res.get_atoms():
                if np.linalg.norm(atom.coord - center) < buffer:
                    return True
            return False

    io = PDBIO()
    io.set_structure(structure)
    io.save("trimmed.pdb", RegionSelect())

Read the full file on GitHub · 234 lines

Files

What ships with it

1 file 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. 12d ago First seen · 234 lines · 86 tokens per session scan B 07c02211d5ea

Subscribe to this mod's changes

pdb is a skill published in the GitHub repository zongtingwei/Bioclaw_Skills_Hub (26 stars, last pushed 5mo ago), licensed MIT. It adds 86 tokens to every session and 1,566 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it B with 2 findings (sends data to an external url, makes network calls). 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

pdb

Fetch and analyze protein structures from RCSB PDB. Use this skill when: (1) Need to download a structure by PDB ID, (2) Search for similar structures, (3) Prepare target for binder design, (4) Extract specific chains or domains, (5) Get structure metadata. For sequence lookup, use uniprot. For binder design workflow…

BioTender-max/awesome-bio-agent-skills · 84 tokens

pdb

Fetch and analyze protein structures from RCSB PDB. Use this skill when: (1) Need to download a structure by PDB ID, (2) Search for similar structures, (3) Prepare target for binder design, (4) Extract specific chains or domains, (5) Get structure metadata. For sequence lookup, use uniprot. For binder design workflow…

adaptyvbio/protein-design-skills · 84 tokens

academic-paper-to-chinese-insight-pdf

Turn an academic paper PDF into a high-quality Chinese insight report and export it as a polished Chinese PDF. Use when asked to read a paper, translate or summarize a paper into Chinese, extract the paper's core ideas, produce original insights/opinions, explain the paper in simpler language, or deliver a Chinese PDF…

davidtoby/agent-skills · 113 tokens

chinese-pdf-document-workflows

Class-level workflow for extracting, converting, editing, and producing polished Chinese PDFs and document reports from PDFs, papers, webpages, markdown, and video transcripts. Use when asked to create Chinese PDF reports, fix Chinese font/glyph rendering, summarize academic papers into Chinese insight reports…

davidtoby/agent-skills · 83 tokens

foldseek

Structure similarity search with Foldseek. Use this skill when: (1) Finding similar structures in PDB/AFDB databases, (2) Structural homology search, (3) Database queries by 3D structure, (4) Finding remote homologs not detected by sequence, (5) Clustering structures by similarity. For sequence similarity, use uniprot…

BioTender-max/awesome-bio-agent-skills · 90 tokens

jupyter-live-kernel

Iterative Python via live Jupyter kernel (hamelnb).

davidtoby/agent-skills · 19 tokens