google-deepmind/science-skills/pdb-database
Claude Code and agent skill by google-deepmind/science-skills
- community
Checking that the SKILL.md file is still in the repository.
Use when you want to search for or download experimentally-determined 3D structures for biomolecules (proteins, nucleic acids, bound ligands). Supports searching by sequence similarity, structure similarity, chemical and other attributes. Also use to get metadata about biomolecular structure experiments.
Install
npx vskill@latest install google-deepmind/science-skills/pdb-databaseSKILL.md
The same SKILL.md was published earlier as google-deepmind/science-skills/pdb-database.
RCSB Protein Data Bank skill
Prerequisites
- `uv`: Read the
uvskill and follow its Setup instructions to ensure
uv is installed and on PATH.
- User Notification: If .licenses/pdb_database_LICENSE.txt does not
already exist in the workspace root directory then (1) prominently notify the user to check the terms at https://www.rcsb.org/pages/usage-policy, then (2) create the file recording the notification text and timestamp.
Core Rules
- Always prefer to use the provided scripts. Only as a last resort use
curl, urllib, raw HTTP requests, or any other method to access PDB APIs. The scripts automatically enforce required rate limits.
- Always redirect output to a file. Parse output with e.g.
jq,grep,
or a short Python snippet. Do NOT print large API responses to stdout to avoid truncation.
- Notification: If this skill is used, ensure this is mentioned in the
output.
- Explain your queries On completing a task that used PDB JSON/GraphQL
queries, explain in clear language what your query did so the user can correct any bad assumptions.
Attribute-based search workflow
- Fetch the relevant schema to discover searchable attribute names. For
structure attributes: uv run scripts/fetch_schema.py --api search_structure --output schema_structure.txt For chemical attributes: uv run scripts/fetch_schema.py --api search_chemical --output schema_chemical.txt
- Grep the schema to find relevant attributes. Grep one keyword at a time
and examine many lines — there are lots of similar attributes and you must choose the best match for the user's intent.
- Compose and run a JSON search query using the discovered attributes: `uv
run scripts/search_pdb.py --query '<JSON>' --return_type <RETURN_TYPE> --output results.json Pass the --count_only` flag to get just the number of matching entries.
For step 2: some basic PDB concepts (helpful for attribute choice)
- Entity: A unique molecule found in a structure.
- Instance / Chain: A particular copy of an entity. E.g. if a structure
contains two protein chains with the same sequence, they are the same entity but different instances / chains.
- Assembly: A biologically relevant collection of instances / chains. This
may be the same as the deposited structure, a subset, or multiple copies.
- Label vs Auth: Polymer instances get letter labels ("A", "B", "AA") and
their monomers are numbered. There are author-assigned ("auth") and PDB-internal ("label") schemes. The label scheme is more consistent and is always used in scripts and APIs. However, users and papers may refer to the author scheme (clarify which scheme is being used if necessary).
- Chemical component: A small molecule / monomer, with an ID matching
[A-Z]{1,3}
- Primary citation: The main publication about a structure. Prefer
primary_citation attributes over citation attributes.
- Resolution: Frequently used measure of structure quality (lower is
better). Usually prefer rcsb_entry_info.resolution_combined, which accounts for different experimental methods.
For step 3: Example queries
Common operators: exact_match, equals, exists, contains_phrase, contains_words, in, greater, less
Similarity-based search workflow
Similarity searches do not require a schema fetch. Basic examples:
See https://search.rcsb.org/#search-services for more details.
Full text search workflow
Searches all text associated with an entry. Example:
Important: usefull_textsearch as a last resort when there's nomore precise attribute search available. Consider using thestruct.titleorrcsb_pubmed_abstract_textattributes instead.
File download workflow
To download full PDB entries, use the download_coordinate_files.py script. Use this when you need access to atomic coordinates, when asked for a pdb / mmcif file, or when non-specifically asked to fetch a PDB code. Example:
Metadata query workflow
This flow is significantly more efficient than downloading full coordinate files when you only need a few pieces of metadata about each entry / entity.
- Fetch the schema for the relevant object type. E.g. `uv run
scripts/fetch_schema.py --api data_entry --output schema_entry.txt`
- Grep the schema for relevant fields (one keyword at a time, many lines).
- Compose and run a GraphQL metadata query: `uv run
scripts/fetch_pdb_metadata.py --query '<GraphQL>' --output results.json`
For step 3: Example queries
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/pdb_database/SKILL.md
Popularity
- Repository stars
- 1,645
- Repository forks
- 156
- 7-day trend score
- 37
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/google-deepmind/science-skills/pdb-database)