Agent skill

Pdb Database

by davila7 in davila7/claude-code-templates

Access RCSB PDB for 3D protein/nucleic acid structures. An agent skill from davila7/claude-code-templates.

MITAuto-check passedResearch & Science

Install Pdb Database

skills CLI
$ npx skills add davila7/claude-code-templates --skill pdb-database -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install davila7/claude-code-templates pdb-database --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/davila7/claude-code-templates.git skills-src && mkdir -p .claude/skills && cp -r skills-src/cli-tool/components/skills/scientific/pdb-database .claude/skills/pdb-database && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pdb-database
GitHub stars
32k
Used in
9 other repos
Token cost
~2.3k tokens
SKILL.md length
528 words
Files
2 (incl. references)
Skills in repo
477
Repo updated
First seen
Licence
MIT

At a glance

Access RCSB PDB for 3D protein/nucleic acid structures. An agent skill from davila7/claude-code-templates.

  • Works in 5 steps: Searching for Structures → Retrieving Structure Data → Downloading Structure Files → …
  • Tasks that involve Protein structure and design
  • SKILL.md covers Overview, When to Use This Skill, Core Capabilities and Python Package Installation, plus 4 more sections
  • Calls uv; reaches files.rcsb.org

What it does

Pdb Database is an agent skill from davila7/claude-code-templates. Access RCSB PDB for 3D protein/nucleic acid structures. Search by text/sequence/structure, download coordinates (PDB/mmCIF), retrieve metadata, for structural biology and drug discovery.

Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/api_reference.md`).

It sits in Research & Science, covering Protein structure and design and Drug discovery and cheminformatics. The repository describes itself as: CLI tool for configuring and monitoring Claude Code. The licence is MIT.

When your agent uses it

  • Tasks that involve Protein structure and design
  • Tasks that involve Drug discovery and cheminformatics

Example prompts

  • “/pdb-database”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Searching for Structures
  2. Retrieving Structure Data
  3. Downloading Structure Files
  4. Working with Structure Data
  5. Batch Operations

What it can do on your machine

Read from SKILL.md and the folder at commit 4c82aba. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • uv

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • files.rcsb.org

    Also links to:

    • rcsb.org
    • pdb101.rcsb.org
    • rcsbapi.readthedocs.io
    • data.rcsb.org
    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Pdb Database loads about 2.3k tokens when it runs, and up to ~6.1k if it reads all its reference files. Until then it costs about 50 tokens; SKILL.md has 528 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~50
When it runs · the whole SKILL.md, loaded when a task matches
~2.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from davila7/claude-code-templates at commit 4c82aba, republished under its MIT licence (© davila7). 528 words, ~2,293 tokens.

Download SKILL.mdSave it as .claude/skills/pdb-database/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
pdb-database
description
Access RCSB PDB for 3D protein/nucleic acid structures. Search by text/sequence/structure, download coordinates (PDB/mmCIF), retrieve metadata, for structural biology and drug discovery.

PDB Database

Overview

RCSB PDB is the worldwide repository for 3D structural data of biological macromolecules. Search for structures, retrieve coordinates and metadata, perform sequence and structure similarity searches across 200,000+ experimentally determined structures and computed models.

When to Use This Skill

This skill should be used when:

  • Searching for protein or nucleic acid 3D structures by text, sequence, or structural similarity
  • Downloading coordinate files in PDB, mmCIF, or BinaryCIF formats
  • Retrieving structural metadata, experimental methods, or quality metrics
  • Performing batch operations across multiple structures
  • Integrating PDB data into computational workflows for drug discovery, protein engineering, or structural biology research

Core Capabilities

1. Searching for Structures

Find PDB entries using various search criteria:

Text Search: Search by protein name, keywords, or descriptions

python
from rcsbapi.search import TextQuery
query = TextQuery("hemoglobin")
results = list(query())
print(f"Found {len(results)} structures")

Attribute Search: Query specific properties (organism, resolution, method, etc.)

python
from rcsbapi.search import AttributeQuery
from rcsbapi.search.attrs import rcsb_entity_source_organism

# Find human protein structures
query = AttributeQuery(
    attribute=rcsb_entity_source_organism.scientific_name,
    operator="exact_match",
    value="Homo sapiens"
)
results = list(query())

Sequence Similarity: Find structures similar to a given sequence

python
from rcsbapi.search import SequenceQuery

query = SequenceQuery(
    value="MTEYKLVVVGAGGVGKSALTIQLIQNHFVDEYDPTIEDSYRKQVVIDGETCLLDILDTAGQEEYSAMRDQYMRTGEGFLCVFAINNTKSFEDIHHYREQIKRVKDSEDVPMVLVGNKCDLPSRTVDTKQAQDLARSYGIPFIETSAKTRQGVDDAFYTLVREIRKHKEKMSKDGKKKKKKSKTKCVIM",
    evalue_cutoff=0.1,
    identity_cutoff=0.9
)
results = list(query())

Structure Similarity: Find structures with similar 3D geometry

python
from rcsbapi.search import StructSimilarityQuery

query = StructSimilarityQuery(
    structure_search_type="entry",
    entry_id="4HHB"  # Hemoglobin
)
results = list(query())

Combining Queries: Use logical operators to build complex searches

python
from rcsbapi.search import TextQuery, AttributeQuery
from rcsbapi.search.attrs import rcsb_entry_info

# High-resolution human proteins
query1 = AttributeQuery(
    attribute=rcsb_entity_source_organism.scientific_name,
    operator="exact_match",
    value="Homo sapiens"
)
query2 = AttributeQuery(
    attribute=rcsb_entry_info.resolution_combined,
    operator="less",
    value=2.0
)
combined_query = query1 & query2  # AND operation
results = list(combined_query())
2. Retrieving Structure Data

Access detailed information about specific PDB entries:

Basic Entry Information:

python
from rcsbapi.data import Schema, fetch

# Get entry-level data
entry_data = fetch("4HHB", schema=Schema.ENTRY)
print(entry_data["struct"]["title"])
print(entry_data["exptl"][0]["method"])

Polymer Entity Information:

python
# Get protein/nucleic acid information
entity_data = fetch("4HHB_1", schema=Schema.POLYMER_ENTITY)
print(entity_data["entity_poly"]["pdbx_seq_one_letter_code"])

Using GraphQL for Flexible Queries:

python
from rcsbapi.data import fetch

# Custom GraphQL query
query = """
{
  entry(entry_id: "4HHB") {
    struct {
      title
    }
    exptl {
      method
    }
    rcsb_entry_info {
      resolution_combined
      deposited_atom_count
    }
  }
}
"""
data = fetch(query_type="graphql", query=query)
3. Downloading Structure Files

Retrieve coordinate files in various formats:

Download Methods:

  • PDB format (legacy text format): https://files.rcsb.org/download/{PDB_ID}.pdb
  • mmCIF format (modern standard): https://files.rcsb.org/download/{PDB_ID}.cif
  • BinaryCIF (compressed binary): Use ModelServer API for efficient access
  • Biological assembly: https://files.rcsb.org/download/{PDB_ID}.pdb1 (for assembly 1)

Example Download:

python
import requests

pdb_id = "4HHB"

# Download PDB format
pdb_url = f"https://files.rcsb.org/download/{pdb_id}.pdb"
response = requests.get(pdb_url)
with open(f"{pdb_id}.pdb", "w") as f:
    f.write(response.text)

# Download mmCIF format
cif_url = f"https://files.rcsb.org/download/{pdb_id}.cif"
response = requests.get(cif_url)
with open(f"{pdb_id}.cif", "w") as f:
    f.write(response.text)
4. Working with Structure Data

Common operations with retrieved structures:

Parse and Analyze Coordinates: Use BioPython or other structural biology libraries to work with downloaded files:

python
from Bio.PDB import PDBParser

parser = PDBParser()
structure = parser.get_structure("protein", "4HHB.pdb")

# Iterate through atoms
for model in structure:
    for chain in model:
        for residue in chain:
            for atom in residue:
                print(atom.get_coord())

Extract Metadata:

python
from rcsbapi.data import fetch, Schema

# Get experimental details
data = fetch("4HHB", schema=Schema.ENTRY)

resolution = data.get("rcsb_entry_info", {}).get("resolution_combined")
method = data.get("exptl", [{}])[0].get("method")
deposition_date = data.get("rcsb_accession_info", {}).get("deposit_date")

print(f"Resolution: {resolution} Å")
print(f"Method: {method}")
print(f"Deposited: {deposition_date}")
5. Batch Operations

Process multiple structures efficiently:

python
from rcsbapi.data import fetch, Schema

pdb_ids = ["4HHB", "1MBN", "1GZX"]  # Hemoglobin, myoglobin, etc.

results = {}
for pdb_id in pdb_ids:
    try:
        data = fetch(pdb_id, schema=Schema.ENTRY)
        results[pdb_id] = {
            "title": data["struct"]["title"],
            "resolution": data.get("rcsb_entry_info", {}).get("resolution_combined"),
            "organism": data.get("rcsb_entity_source_organism", [{}])[0].get("scientific_name")
        }
    except Exception as e:
        print(f"Error fetching {pdb_id}: {e}")

# Display results
for pdb_id, info in results.items():
    print(f"\n{pdb_id}: {info['title']}")
    print(f"  Resolution: {info['resolution']} Å")
    print(f"  Organism: {info['organism']}")

Python Package Installation

Install the official RCSB PDB Python API client:

bash
# Current recommended package
uv pip install rcsb-api

# For legacy code (deprecated, use rcsb-api instead)
uv pip install rcsbsearchapi

The rcsb-api package provides unified access to both Search and Data APIs through the rcsbapi.search and rcsbapi.data modules.

Common Use Cases

Drug Discovery
  • Search for structures of drug targets
  • Analyze ligand binding sites
  • Compare protein-ligand complexes
  • Identify similar binding pockets
Protein Engineering
  • Find homologous structures for modeling
  • Analyze sequence-structure relationships
  • Compare mutant structures
  • Study protein stability and dynamics
Show full SKILL.md (205 more words)Show less
Structural Biology Research
  • Download structures for computational analysis
  • Build structure-based alignments
  • Analyze structural features (secondary structure, domains)
  • Compare experimental methods and quality metrics
Education and Visualization
  • Retrieve structures for teaching
  • Generate molecular visualizations
  • Explore structure-function relationships
  • Study evolutionary conservation

Key Concepts

PDB ID: Unique 4-character identifier (e.g., "4HHB") for each structure entry. AlphaFold and ModelArchive entries start with "AF_" or "MA_" prefixes.

mmCIF/PDBx: Modern file format that uses key-value structure, replacing legacy PDB format for large structures.

Biological Assembly: The functional form of a macromolecule, which may contain multiple copies of chains from the asymmetric unit.

Resolution: Measure of detail in crystallographic structures (lower values = higher detail). Typical range: 1.5-3.5 Å for high-quality structures.

Entity: A unique molecular component in a structure (protein chain, DNA, ligand, etc.).

Resources

This skill includes reference documentation in the references/ directory:

references/api_reference.md

Comprehensive API documentation covering:

  • Detailed API endpoint specifications
  • Advanced query patterns and examples
  • Data schema reference
  • Rate limiting and best practices
  • Troubleshooting common issues

Use this reference when you need in-depth information about API capabilities, complex query construction, or detailed data schema information.

Additional Resources

© davila7, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in cli-tool/components/skills/scientific/pdb-database of davila7/claude-code-templates.

  • SKILL.md
  • references/api_reference.md

Open the folder on GitHubat commit 4c82aba

Used in 9 other repositories

We found 12 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 9 other GitHub owners. This page covers the copy in davila7/claude-code-templates, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Pdb Database next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Pdb Database compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Pdb Database this skilldavila7/claude-code-templates32k9 repos~2.3kAutomated safety check: PassMIT
DiffDock Molecular DockingK-Dense-AI/scientific-agent-skills48k1 repos~3kAutomated safety check: NotesMIT
Biopipelineslocbp-uzh/biopipelines109—~2.4kAutomated safety check: PassMIT
Tooluniverseynulihao/AgentSkillOS6173 repos~2.5kAutomated safety check: PassNone
Chai1JimLiu/science-skills2274 repos~1.2kAutomated safety check: PassApache-2.0
Hugging Sciencemajiayu000/claude-skill-registry6662 repos~2.4kAutomated safety check: NotesMIT

Similar skills

  • DiffDock Molecular Docking

    K-Dense-AI/scientific-agent-skills

    Predicts how small molecules bind to a protein with DiffDock, covering batch docking, pose ranking by confidence and checks on the results; not for binding affinity.

    48k GitHub starsUsed in 1 repo~3k tokens
    Research & ScienceAuto-check: notes
  • Biopipelines

    locbp-uzh/biopipelines

    Design and run computational protein and ligand workflows on a GPU: binder and enzyme design, de novo backbone generation, inverse folding and sequence redesign, structure prediction, protein-ligand…

    109 GitHub stars~2.4k tokensUpdated 7 days ago
    Research & ScienceAuto-check passed
  • Tooluniverse

    ynulihao/AgentSkillOS

    A skill your agent uses when working with scientific research tools and workflows across bioinformatics, cheminformatics, genomics, structural biology, proteomics, and drug discovery.

    617 GitHub starsUsed in 3 repos~2.5k tokens
    Research & ScienceAuto-check passed
  • Chai1

    JimLiu/science-skills

    Structure prediction for protein, nucleic-acid, and small-molecule complexes with the Chai-1 foundation model (Chai Discovery 2024, github.com/chaidiscovery/chai-lab).

    227 GitHub starsUsed in 4 repos~1.2k tokens
    Research & ScienceAuto-check passed
  • Hugging Science

    majiayu000/claude-skill-registry

    A skill your agent uses when the user is doing AI/ML work in a scientific domain such as biology, chemistry, physics, astronomy, climate, genomics, materials, medicine, ecology, energy, engineering…

    666 GitHub starsUsed in 2 repos~2.4k tokens
    Research & ScienceAuto-check: notes
  • Mdanalysis Trajectory

    jaechang-hits/SciAgent-Skills

    Analyze MD trajectories from GROMACS, AMBER, NAMD, CHARMM, LAMMPS.

    370 GitHub starsUsed in 1 repo~3.6k tokens
    Research & ScienceAuto-check passed

More from davila7/claude-code-templates

All 477 skills in this repo
  • Perplexity Web Search

    davila7/claude-code-templates

    Runs web-grounded searches through Perplexity's Sonar models over OpenRouter for current events, recent literature and cited facts beyond the model's training cutoff.

    32k GitHub starsUsed in 12 repos~3.5k tokens
    Auto-check: notes
  • Neuropixels Data Analysis

    davila7/claude-code-templates

    Analyzes Neuropixels recordings from SpikeGLX or Open Ephys through preprocessing, drift correction, Kilosort4 spike sorting, quality metrics and curation.

    32k GitHub starsUsed in 10 repos~2.8k tokens
    Auto-check passed
  • Scientific Venue Templates

    davila7/claude-code-templates

    Supplies LaTeX templates and formatting rules for journals, conferences, posters, and grant proposals, then can check a draft against them.

    32k GitHub starsUsed in 9 repos~5.1k tokens
    Auto-check: notes
  • Brand Voice Content Creator

    davila7/claude-code-templates

    Analyzes a brand's existing writing to lock in a consistent voice, then builds SEO blog posts and platform-specific social content around it.

    32k GitHub starsUsed in 2 repos~1.9k tokens
    Auto-check passed
  • CAPA Officer

    davila7/claude-code-templates

    Guides corrective and preventive action (CAPA) work in a quality management system, from initiation and root cause analysis through effectiveness verification.

    32k GitHub starsUsed in 1 repo~2k tokens
    Auto-check passed
  • Fda Consultant Specialist

    davila7/claude-code-templates

    Senior FDA consultant and specialist for medical device companies including HIPAA compliance and requirement management.

    32k GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check passed

Questions about Pdb Database

What does Pdb Database do?

Access RCSB PDB for 3D protein/nucleic acid structures. An agent skill from davila7/claude-code-templates. Pdb Database is an agent skill from davila7/claude-code-templates. Access RCSB PDB for 3D protein/nucleic acid structures.

When should I use Pdb Database?

Pdb Database fits situations like: tasks that involve Protein structure and design; tasks that involve Drug discovery and cheminformatics.

How do I install Pdb Database in Claude Code?

Run `npx skills add davila7/claude-code-templates --skill pdb-database -a claude-code`. Or copy the skill folder (cli-tool/components/skills/scientific/pdb-database in davila7/claude-code-templates) into .claude/skills/pdb-database in your project. Claude Code loads it when a task matches its description.

How do I install Pdb Database in Codex?

Run `npx skills add davila7/claude-code-templates --skill pdb-database -a codex`. Or copy the skill folder (cli-tool/components/skills/scientific/pdb-database in davila7/claude-code-templates) into .agents/skills/pdb-database in your project. Codex loads it when a task matches its description.

Can I use Pdb Database in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add davila7/claude-code-templates --skill pdb-database -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pdb-database, .gemini/skills/pdb-database, .github/skills/pdb-database and .opencode/skills/pdb-database in your project.

What does Pdb Database need to run?

Going by SKILL.md and its folder, Pdb Database needs the command-line tools its instructions call (uv). Our summary lists: Python 3.

Does Pdb Database access the network?

SKILL.md names 6 domains. In commands or code: files.rcsb.org; the agent is likely to contact it when it follows the instructions. As links in the text: rcsb.org, pdb101.rcsb.org, rcsbapi.readthedocs.io, data.rcsb.org and github.com. This is read from the text; nothing was executed.

Is Pdb Database safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Pdb Database use?

Pdb Database is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Pdb Database use?

About 2.3k tokens (SKILL.md is roughly 9.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.8k tokens, read only when the agent opens those files.

What are the alternatives to Pdb Database?

Skills that share tags, products or a category with Pdb Database: DiffDock Molecular Docking (K-Dense-AI/scientific-agent-skills, 48k stars), Biopipelines (locbp-uzh/biopipelines, 109 stars), Tooluniverse (ynulihao/AgentSkillOS, 617 stars) and Chai1 (JimLiu/science-skills, 227 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Pdb Database?

davila7 (a GitHub user) maintains it in davila7/claude-code-templates, which has 32,432 GitHub stars. The repository holds 477 skills in this directory. The repository was last updated on October 7, 2026.

Source: davila7/claude-code-templates on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.