drug-db-pdb
Skill174 starsChanged 6 months agoMITView on GitHub
Search, filter, and retrieve macromolecular structures from the RCSB Protein Data Bank (PDB), including metadata, bound ligands, and optional coordinate/validation downloads.
In this repository133 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/atomisticskills.mdcCursor rule
- .cursor/rules/use-agent-skills.mdcCursor rule
- chem-bond-dissociationSkill
- chem-conformer-searchSkill
- chem-db-mofSkill
- chem-db-qmofSkill
- chem-db-spectraSkill
- chem-dft-orca-advanced-calculationSkill
- chem-dft-orca-optimizationSkill
- chem-dft-orca-singlepointSkill
- chem-docking-voidSkill
- chem-hazard-toxicitySkill
- chem-irc-verificationSkill
- chem-msms-predictSkill
- chem-neb-barrierSkill
- chem-nmr-analysisSkill
- chem-nmr-predictSkill
- chem-react-otSkill
- chem-similarity-searchSkill
- chem-solution-mdSkill
- chem-sorption-gcmcSkill
- chem-sorption-relaxSkill
- chem-sorption-widomSkill
- chem-spectrum-matcherSkill
- chem-thermochemistrySkill
- chem-ts-optimizationSkill
- chem-vibrationSkill
- drug-admet-predictionSkill
- drug-binding-site-definitionSkill
- drug-bioactivity-assaySkill
- drug-complex-system-builderSkill
- drug-db-chemblSkill
- drug-db-pubchemSkill
- drug-docking-analysisSkill
- drug-docking-vinaSkill
- drug-ligand-prepSkill
- drug-mmpbsa-gbsaSkill
- drug-molecular-fingerprintsSkill
- drug-pocket-detectionSkill
- drug-pose-validationSkill
- drug-protein-ligand-mdSkill
- drug-protein-prepSkill
- drug-redocking-rmsdSkill
- drug-retrosynthesisSkill
- drug-trajectory-analysisSkill
- general-arxiv-searchSkill
- general-biorxiv-searchSkill
- general-chemical-literatureSkill
- general-chemical-pricingSkill
- general-deep-researchSkill
- general-fair-data-reviewSkill
- general-patent-searchSkill
- general-peer-reviewSkill
- general-plot-digitizerSkill
- general-presentationSkill
- general-property-unitsSkill
- general-publisher-access-guardSkill
- general-query-literature-databaseSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Keep downloaded coordinates/JSON in a reproducible folder.
- Distinctive: line 85
Search HIV-1 protease entries, then fetch + download the best candidate:
- Distinctive: line 110
File formats: Prefer mmCIF for robustness.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
db-pdb
Goal
To programmatically discover and retrieve protein (and protein-ligand complex) structures from the RCSB Protein Data Bank (PDB) by combining the RCSB Search API (to find matching PDB IDs) with the RCSB Data API (to retrieve rich metadata and ligand information), and optionally downloading coordinate files (PDB/mmCIF) and wwPDB validation reports for downstream modeling.
Instructions
1. (Recommended) Create a dedicated output directory
Keep downloaded coordinates/JSON in a reproducible folder.
# Env: base-agent
mkdir -p research/db-pdb/ace2_example2. Search by keyword (full-text)
Uses the RCSB Search API to return the top scoring PDB IDs for a query.
# Env: base-agent
python .agents/skills/drug-db-pdb/scripts/query_pdb.py \
--search "kinase inhibitor" \
--max_results 10 \
--output research/db-pdb/kinase_results.json3. Search with structure-quality filters (recommended for drug discovery)
For ligand modeling, you often want:
- An experimental method like X-RAY DIFFRACTION (or high-resolution cryo-EM).
- A resolution cutoff (e.g., <= 2.5 A for X-ray, context dependent).
# Env: base-agent
python .agents/skills/drug-db-pdb/scripts/query_pdb.py \
--search "ACE2" \
--organism "Homo sapiens" \
--method "X-RAY DIFFRACTION" \
--resolution 2.5 \
--max_results 25 \
--output research/db-pdb/ace2_xray_le2p5.json4. Retrieve a specific PDB entry by ID
This pulls metadata via the Data API and (by default) also collects bound ligands by enumerating non-polymer entities.
# Env: base-agent
python .agents/skills/drug-db-pdb/scripts/query_pdb.py \
--pdb_id 1HSG \
--output research/db-pdb/1hsg_info.json5. Download coordinate files (mmCIF recommended)
The PDB ecosystem's canonical archival format is PDBx/mmCIF (legacy PDB format can be unavailable or insufficient for very large structures).
# Env: base-agent
python .agents/skills/drug-db-pdb/scripts/query_pdb.py \
--pdb_id 1HSG \
--download mmcif \
--download_dir research/db-pdb/structures \
--output research/db-pdb/1hsg_with_file.json6. (Recommended) Download wwPDB validation report PDF
Quality assessment for experimental structures is standardized via wwPDB validation reports; these are especially important for ligand-bound structures in drug discovery workflows.
# Env: base-agent
python .agents/skills/drug-db-pdb/scripts/query_pdb.py \
--pdb_id 1HSG \
--download_validation \
--download_dir research/db-pdb/validation \
--output research/db-pdb/1hsg_with_validation.jsonExamples
Search HIV-1 protease entries, then fetch + download the best candidate:
# Env: base-agent
python .agents/skills/drug-db-pdb/scripts/query_pdb.py \
--search "HIV-1 protease" \
--method "X-RAY DIFFRACTION" \
--resolution 2.0 \
--max_results 10 \
--output research/db-pdb/hiv1_protease_candidates.json# Env: base-agent
python .agents/skills/drug-db-pdb/scripts/query_pdb.py \
--pdb_id 1HSG \
--download mmcif \
--download_validation \
--download_dir research/db-pdb/hiv1_protease_files \
--output research/db-pdb/1hsg_full.jsonConstraints
- API Rate Limits: RCSB PDB APIs are rate-limited; the script implements a minimum inter-request interval and exponential backoff on HTTP 429.
- Ligand metadata: "Ligands" here refer to non-polymer entities in the PDB hierarchy. The script enumerates non-polymer entity IDs from the entry container identifiers and queries each nonpolymer entity object.
- File formats: Prefer mmCIF for robustness; legacy PDB may be incomplete or unavailable for some entries.
- Quality selection: For drug discovery, do not select structures using resolution alone -- use wwPDB validation reports and ligand-quality metrics when available.
- Environment: Requires the
base-agentconda environment.
Author: Matthew Cox Contact: GitHub @mcox3406
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

