[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M73J56W2JAW3Z5NA90RPF1YP":3,"skill-same:01M73J56W2JAW3Z5NA90RPF1YP":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M73J56W2JAW3Z5NA90RPF1YP","rdkit-cheminformatics",null,"Cheminformatics toolkit for molecular analysis and virtual screening: SMILES\u002FSDF parsing, descriptors (MW, LogP, TPSA), fingerprints (Morgan\u002FECFP, MACCS), Tanimoto similarity, SMARTS substructure filtering, Lipinski drug-likeness, reaction enumeration, 2D\u002F3D coordinates. For simpler API use datamol; use RDKit for fine-grained sanitization, custom fingerprints, or SMARTS\u002Freaction control.","bg-szy\u002FTOP-SKILLS","bg-szy","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F106576190?v=4","01M73A4E8KPV67SFXRY8XZGNBX","ShuZhiyong","01M73A4E96MQ294MHM74TZBVQD",6,"BSD-3-Clause","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fawesome-skills\u002Frdkit-cheminformatics\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: \"rdkit-cheminformatics\"\ndescription: \"Cheminformatics toolkit for molecular analysis and virtual screening: SMILES\u002FSDF parsing, descriptors (MW, LogP, TPSA), fingerprints (Morgan\u002FECFP, MACCS), Tanimoto similarity, SMARTS substructure filtering, Lipinski drug-likeness, reaction enumeration, 2D\u002F3D coordinates. For simpler API use datamol; use RDKit for fine-grained sanitization, custom fingerprints, or SMARTS\u002Freaction control.\"\nlicense: \"BSD-3-Clause\"\n---\n\n# RDKit Cheminformatics Toolkit\n\n## Overview\n\nRDKit is the standard open-source cheminformatics library for Python, providing comprehensive APIs for molecular parsing, descriptor calculation, fingerprinting, substructure searching, and chemical reactions. This skill walks through a complete compound library profiling and virtual screening workflow — from loading molecules through drug-likeness filtering, similarity screening, and result visualization.\n\n## When to Use\n\n- Calculate molecular properties (MW, LogP, TPSA, HBD\u002FHBA) for a compound set\n- Screen a library against a reference compound using fingerprint similarity\n- Filter compounds by substructure (SMARTS patterns) for functional group analysis\n- Assess drug-likeness using Lipinski's Rule of Five or custom filters\n- Generate 2D depictions or 3D conformers for downstream docking\n- Enumerate chemical libraries using reaction SMARTS (combinatorial chemistry)\n- Cluster compounds by structural similarity for diversity analysis\n- Standardize and deduplicate molecular datasets (canonical SMILES, InChI)\n- Use `datamol-cheminformatics` instead for a higher-level RDKit wrapper with batching and error handling; use `openbabel` instead for multi-format conversion (MOL2, XYZ, PDB)\n\n## Prerequisites\n\n- **Python packages**: `rdkit-pypi` (or `rdkit` via conda), `pandas`, `matplotlib`, `numpy`\n- **Data requirements**: Molecular structures as SMILES strings, SDF files, or MOL files\n- **Environment**: Python 3.8+; conda recommended for full RDKit installation\n\n```bash\n# Option 1: pip (lightweight)\npip install rdkit-pypi pandas matplotlib numpy\n\n# Option 2: conda (full features including cartridge)\nconda install -c conda-forge rdkit pandas matplotlib numpy\n```\n\n## Workflow\n\n### Step 1: Load and Validate Molecules\n\nRead molecular structures from SMILES or SDF and validate parsing.\n\n```python\nfrom rdkit import Chem\nimport pandas as pd\n\n# --- From SMILES list ---\nsmiles_list = [\n    \"CC(=O)Oc1ccccc1C(=O)O\",       # Aspirin\n    \"CC12CCC3C(C1CCC2O)CCC4=CC(=O)CCC34C\",  # Testosterone\n    \"c1ccc2[nH]c(-c3ccccn3)nc2c1\",  # Benzimidazole derivative\n    \"CC(C)Cc1ccc(C(C)C(=O)O)cc1\",   # Ibuprofen\n    \"INVALID_SMILES\",                 # Will fail\n]\n\nmols = []\nfailed = []\nfor smi in smiles_list:\n    mol = Chem.MolFromSmiles(smi)\n    if mol is not None:\n        mol.SetProp(\"_SMILES\", smi)\n        mols.append(mol)\n    else:\n        failed.append(smi)\n\nprint(f\"Successfully parsed: {len(mols)}\u002F{len(smiles_list)}\")\nprint(f\"Failed: {failed}\")\n\n# --- From SDF file ---\n# suppl = Chem.SDMolSupplier(\"library.sdf\")\n# mols = [mol for mol in suppl if mol is not None]\n# print(f\"Loaded {len(mols)} molecules from SDF\")\n```\n\n### Step 2: Standardize and Deduplicate\n\nCanonicalize SMILES and remove duplicates to ensure a clean dataset.\n\n```python\nfrom rdkit.Chem.MolStandardize import rdMolStandardize\n\n# Standardize: neutralize charges, remove fragments, canonicalize\nuncharger = rdMolStandardize.Uncharger()\nchooser = rdMolStandardize.LargestFragmentChooser()\n\nstandardized = []\nseen_smiles = set()\n\nfor mol in mols:\n    # Keep largest fragment (remove salts\u002Fcounterions)\n    mol = chooser.choose(mol)\n    # Neutralize charges\n    mol = uncharger.uncharge(mol)\n    # Canonical SMILES for deduplication\n    canon_smi = Chem.MolToSmiles(mol)\n    if canon_smi not in seen_smiles:\n        seen_smiles.add(canon_smi)\n        mol.SetProp(\"canonical_smiles\", canon_smi)\n        standardized.append(mol)\n\nprint(f\"After standardization: {len(standardized)} unique molecules\")\nprint(f\"Removed {len(mols) - len(standardized)} duplicates\u002Fsalts\")\n```\n\n### Step 3: Calculate Molecular Descriptors\n\nCompute physicochemical properties for each molecule.\n\n```python\nfrom rdkit.Chem import Descriptors\n\nrecords = []\nfor mol in standardized:\n    desc = {\n        \"SMILES\": Chem.MolToSmiles(mol),\n        \"MW\": round(Descriptors.MolWt(mol), 2),\n        \"LogP\": round(Descriptors.MolLogP(mol), 2),\n        \"TPSA\": round(Descriptors.TPSA(mol), 2),\n        \"HBD\": Descriptors.NumHDonors(mol),\n        \"HBA\": Descriptors.NumHAcceptors(mol),\n        \"RotBonds\": Descriptors.NumRotatableBonds(mol),\n        \"AromaticRings\": Descriptors.NumAromaticRings(mol),\n        \"HeavyAtoms\": mol.GetNumHeavyAtoms(),\n        \"RingCount\": Descriptors.RingCount(mol),\n    }\n    records.append(desc)\n\ndf = pd.DataFrame(records)\nprint(df.to_string(index=False))\nprint(f\"\\nDescriptor summary:\\n{df.describe().round(2)}\")\n```\n\n### Step 4: Apply Drug-Likeness Filters\n\nFilter compounds using Lipinski's Rule of Five and Veber criteria.\n\n```python\ndef lipinski_filter(row):\n    \"\"\"Lipinski Ro5: MW\u003C=500, LogP\u003C=5, HBD\u003C=5, HBA\u003C=10\"\"\"\n    return (row[\"MW\"] \u003C= 500 and row[\"LogP\"] \u003C= 5 and\n            row[\"HBD\"] \u003C= 5 and row[\"HBA\"] \u003C= 10)\n\ndef veber_filter(row):\n    \"\"\"Veber: RotBonds\u003C=10, TPSA\u003C=140\"\"\"\n    return row[\"RotBonds\"] \u003C= 10 and row[\"TPSA\"] \u003C= 140\n\ndf[\"Lipinski\"] = df.apply(lipinski_filter, axis=1)\ndf[\"Veber\"] = df.apply(veber_filter, axis=1)\ndf[\"DrugLike\"] = df[\"Lipinski\"] & df[\"Veber\"]\n\nprint(f\"Lipinski pass: {df['Lipinski'].sum()}\u002F{len(df)}\")\nprint(f\"Veber pass:    {df['Veber'].sum()}\u002F{len(df)}\")\nprint(f\"Drug-like:     {df['DrugLike'].sum()}\u002F{len(df)}\")\n\ndrug_like_mols = [standardized[i] for i in df[df[\"DrugLike\"]].index]\nprint(f\"\\n{len(drug_like_mols)} drug-like compounds retained\")\n```\n\n### Step 5: Generate Fingerprints and Similarity Search\n\nCompute Morgan fingerprints and screen against a reference compound.\n\n```python\nfrom rdkit.Chem import AllChem\nfrom rdkit import DataStructs\n\n# Reference compound (e.g., known active)\nref_smi = \"CC(=O)Oc1ccccc1C(=O)O\"  # Aspirin\nref_mol = Chem.MolFromSmiles(ref_smi)\nref_fp = AllChem.GetMorganFingerprintAsBitVect(ref_mol, radius=2, nBits=2048)\n\n# Screen library\nresults = []\nfor mol in drug_like_mols:\n    fp = AllChem.GetMorganFingerprintAsBitVect(mol, radius=2, nBits=2048)\n    tanimoto = DataStructs.TanimotoSimilarity(ref_fp, fp)\n    results.append({\n        \"SMILES\": Chem.MolToSmiles(mol),\n        \"Tanimoto\": round(tanimoto, 3),\n    })\n\nsim_df = pd.DataFrame(results).sort_values(\"Tanimoto\", ascending=False)\nprint(\"Similarity ranking:\")\nprint(sim_df.to_string(index=False))\n\n# Filter by threshold\nthreshold = 0.3\nhits = sim_df[sim_df[\"Tanimoto\"] >= threshold]\nprint(f\"\\n{len(hits)} compounds with Tanimoto >= {threshold}\")\n```\n\n### Step 6: Substructure Filtering with SMARTS\n\nFilter compounds containing specific functional groups.\n\n```python\n# Define SMARTS patterns for functional groups of interest\npatterns = {\n    \"Carboxylic acid\": \"[CX3](=O)[OX2H1]\",\n    \"Amide\": \"[CX3](=[OX1])[NX3]\",\n    \"Aromatic ring\": \"c1ccccc1\",\n    \"Hydroxyl\": \"[OX2H]\",\n    \"Ester\": \"[CX3](=O)[OX2][C]\",\n}\n\nprint(\"Substructure matches:\")\nfor name, smarts in patterns.items():\n    query = Chem.MolFromSmarts(smarts)\n    match_count = sum(1 for mol in drug_like_mols if mol.HasSubstructMatch(query))\n    print(f\"  {name}: {match_count}\u002F{len(drug_like_mols)} compounds\")\n\n# Get specific matches with atom indices\nquery = Chem.MolFromSmarts(\"[CX3](=O)[OX2H1]\")  # Carboxylic acid\nfor mol in drug_like_mols:\n    matches = mol.GetSubstructMatches(query)\n    if matches:\n        smi = Chem.MolToSmiles(mol)\n        print(f\"\\n{smi}: {len(matches)} carboxylic acid group(s)\")\n        for match in matches:\n            print(f\"  Atom indices: {match}\")\n```\n\n### Step 7: 2D Visualization and Grid Plots\n\nGenerate publication-quality molecular depictions.\n\n```python\nfrom rdkit.Chem import Draw\nfrom rdkit.Chem.Draw import rdMolDraw2D\n\n# Grid image of top hits\nlegends = [f\"Tan={row['Tanimoto']}\" for _, row in sim_df.head(4).iterrows()]\ntop_mols = [Chem.MolFromSmiles(smi) for smi in sim_df.head(4)[\"SMILES\"]]\n\nimg = Draw.MolsToGridImage(\n    top_mols,\n    molsPerRow=2,\n    subImgSize=(300, 300),\n    legends=legends,\n)\nimg.save(\"top_hits_grid.png\")\nprint(\"Saved top_hits_grid.png\")\n\n# Highlight substructure in a molecule\nmol = top_mols[0]\nquery = Chem.MolFromSmarts(\"[CX3](=O)[OX2H1]\")\nmatch = mol.GetSubstructMatch(query)\nif match:\n    highlight_img = Draw.MolToImage(mol, size=(400, 400), highlightAtoms=match)\n    highlight_img.save(\"substructure_highlight.png\")\n    print(\"Saved substructure_highlight.png\")\n```\n\n### Step 8: Export Results\n\nSave the profiling results and filtered compounds.\n\n```python\nimport os\n\nos.makedirs(\"results\", exist_ok=True)\n\n# Save descriptor table\ndf.to_csv(\"results\u002Fdescriptors.csv\", index=False)\nprint(f\"Saved descriptors for {len(df)} compounds to results\u002Fdescriptors.csv\")\n\n# Save drug-like compounds as SDF\nwriter = Chem.SDWriter(\"results\u002Fdrug_like_compounds.sdf\")\nfor i, mol in enumerate(drug_like_mols):\n    # Attach descriptors as SDF properties\n    row = df[df[\"DrugLike\"]].iloc[i]\n    mol.SetProp(\"MW\", str(row[\"MW\"]))\n    mol.SetProp(\"LogP\", str(row[\"LogP\"]))\n    mol.SetProp(\"TPSA\", str(row[\"TPSA\"]))\n    writer.write(mol)\nwriter.close()\nprint(f\"Saved {len(drug_like_mols)} drug-like compounds to results\u002Fdrug_like_compounds.sdf\")\n\n# Save similarity results\nsim_df.to_csv(\"results\u002Fsimilarity_results.csv\", index=False)\nprint(f\"Saved similarity rankings to results\u002Fsimilarity_results.csv\")\n```\n\n## Key Parameters\n\n| Parameter | Default | Range \u002F Options | Effect |\n|-----------|---------|-----------------|--------|\n| `MolFromSmiles(sanitize=)` | `True` | `True`, `False` | Automatic validation and aromaticity perception on parsing |\n| `Morgan radius` | `2` | `1`-`3` | Fingerprint radius; 2 ≈ ECFP4, 3 ≈ ECFP6 |\n| `Morgan nBits` | `2048` | `1024`-`4096` | Fingerprint bit length; higher = fewer collisions |\n| `Tanimoto threshold` | `0.7` | `0.3`-`0.9` | Similarity cutoff; lower = more permissive |\n| `Lipinski MW cutoff` | `500` | `300`-`600` | Max molecular weight for drug-likeness |\n| `Lipinski LogP cutoff` | `5` | `3`-`6` | Max lipophilicity |\n| `Veber RotBonds cutoff` | `10` | `7`-`15` | Max rotatable bonds for oral bioavailability |\n| `Veber TPSA cutoff` | `140` | `120`-`160` | Max polar surface area (Å²) |\n| `EmbedMolecule(randomSeed=)` | `None` | Any integer | Seed for reproducible 3D conformer generation |\n| `Butina distThresh` | `0.3` | `0.2`-`0.5` | Distance cutoff for Butina clustering |\n\n## Common Recipes\n\n### Recipe: Butina Clustering for Diversity Selection\n\nWhen to use: select a diverse subset from a large compound library.\n\n```python\nfrom rdkit.ML.Cluster import Butina\nfrom rdkit.Chem import AllChem\nfrom rdkit import DataStructs, Chem\n\n# Generate fingerprints\nfps = [AllChem.GetMorganFingerprintAsBitVect(mol, 2, nBits=2048)\n       for mol in standardized]\n\n# Build distance matrix (lower triangle)\ndists = []\nfor i in range(1, len(fps)):\n    sims = DataStructs.BulkTanimotoSimilarity(fps[i], fps[:i])\n    dists.extend([1 - s for s in sims])\n\n# Cluster\nclusters = Butina.ClusterData(dists, len(fps), distThresh=0.3, isDistData=True)\nprint(f\"{len(clusters)} clusters from {len(fps)} compounds\")\n\n# Pick centroid from each cluster (first element = centroid)\ndiverse_indices = [c[0] for c in clusters]\ndiverse_mols = [standardized[i] for i in diverse_indices]\nprint(f\"Selected {len(diverse_mols)} diverse representatives\")\n```\n\n### Recipe: Reaction Enumeration (Amide Coupling)\n\nWhen to use: generate a combinatorial library from building blocks via reaction SMARTS.\n\n```python\nfrom rdkit.Chem import AllChem, Chem\n\n# Amide coupling: carboxylic acid + amine → amide\nrxn = AllChem.ReactionFromSmarts(\n    \"[C:1](=[O:2])[OH].[N:3]([H])([H])[C:4]>>[C:1](=[O:2])[N:3][C:4]\"\n)\n\nacids = [Chem.MolFromSmiles(s) for s in [\"OC(=O)c1ccccc1\", \"OC(=O)CC\"]]\namines = [Chem.MolFromSmiles(s) for s in [\"NCC\", \"NC1CCCCC1\"]]\n\nproducts = []\nfor acid in acids:\n    for amine in amines:\n        ps = rxn.RunReactants((acid, amine))\n        for product_set in ps:\n            for prod in product_set:\n                Chem.SanitizeMol(prod)\n                products.append(Chem.MolToSmiles(prod))\n\nprint(f\"Generated {len(products)} products:\")\nfor p in products:\n    print(f\"  {p}\")\n```\n\n### Recipe: 3D Conformer Generation and MMFF Optimization\n\nWhen to use: prepare molecules for docking or 3D pharmacophore analysis.\n\n```python\nfrom rdkit import Chem\nfrom rdkit.Chem import AllChem\n\nmol = Chem.MolFromSmiles(\"CC(=O)Oc1ccccc1C(=O)O\")\nmol = Chem.AddHs(mol)  # Required for 3D embedding\n\n# Generate multiple conformers\nparams = AllChem.ETKDGv3()\nparams.randomSeed = 42\nparams.numThreads = 0  # Use all available cores\nconf_ids = AllChem.EmbedMultipleConfs(mol, numConfs=10, params=params)\nprint(f\"Generated {len(conf_ids)} conformers\")\n\n# Optimize with MMFF94 force field\nenergies = []\nfor conf_id in conf_ids:\n    result = AllChem.MMFFOptimizeMolecule(mol, confId=conf_id)\n    ff = AllChem.MMFFGetMoleculeForceField(mol, AllChem.MMFFGetMoleculeProperties(mol), confId=conf_id)\n    energy = ff.CalcEnergy()\n    energies.append((conf_id, energy))\n    print(f\"  Conformer {conf_id}: {energy:.2f} kcal\u002Fmol (converged={result == 0})\")\n\n# Get lowest energy conformer\nbest_id = min(energies, key=lambda x: x[1])[0]\nprint(f\"\\nBest conformer: {best_id} ({min(e for _, e in energies):.2f} kcal\u002Fmol)\")\n\n# Save to SDF\nwriter = Chem.SDWriter(\"conformers.sdf\")\nfor conf_id, energy in energies:\n    mol.SetProp(\"Energy\", f\"{energy:.2f}\")\n    writer.write(mol, confId=conf_id)\nwriter.close()\n```\n\n### Recipe: Molecular Visualization with Atom Indices and Custom Drawing\n\nWhen to use: debug SMARTS matches, annotate atom positions for reports.\n\n```python\nfrom rdkit import Chem\nfrom rdkit.Chem.Draw import rdMolDraw2D\n\nmol = Chem.MolFromSmiles(\"CC(=O)Oc1ccccc1C(=O)O\")\nAllChem.Compute2DCoords(mol)\n\n# Custom drawer with atom indices and stereo annotations\ndrawer = rdMolDraw2D.MolDraw2DCairo(500, 400)\nopts = drawer.drawOptions()\nopts.addAtomIndices = True\nopts.addStereoAnnotation = True\nopts.bondLineWidth = 2.0\n\ndrawer.DrawMolecule(mol)\ndrawer.FinishDrawing()\n\nwith open(\"annotated_molecule.png\", \"wb\") as f:\n    f.write(drawer.GetDrawingText())\nprint(\"Saved annotated_molecule.png with atom indices\")\n```\n\n## Expected Outputs\n\n- `results\u002Fdescriptors.csv` — Tabular descriptors (SMILES, MW, LogP, TPSA, HBD, HBA, RotBonds, Lipinski, Veber, DrugLike)\n- `results\u002Fdrug_like_compounds.sdf` — Filtered compounds in SDF format with attached properties\n- `results\u002Fsimilarity_results.csv` — Tanimoto similarity rankings against reference compound\n- `top_hits_grid.png` — 2D grid image of top similar compounds\n- `substructure_highlight.png` — Molecule image with highlighted functional group\n- `conformers.sdf` — 3D conformer ensemble with MMFF energies\n- `annotated_molecule.png` — Atom-indexed 2D depiction\n\n## Troubleshooting\n\n| Problem | Cause | Solution |\n|---------|-------|----------|\n| `MolFromSmiles` returns `None` | Invalid SMILES string or valence error | Check SMILES validity; use `Chem.MolFromSmiles(smi, sanitize=False)` then `DetectChemistryProblems()` to diagnose |\n| `Kekulization error` | Invalid aromatic ring system | Check for non-standard aromaticity; try `Chem.SanitizeMol(mol, sanitizeOps=Chem.SANITIZE_ALL ^ Chem.SANITIZE_KEKULIZE)` |\n| `EmbedMolecule` returns `-1` | 3D embedding failed (ring strain, steric clash) | Use `AllChem.EmbedMolecule(mol, maxAttempts=50, useRandomCoords=True)` |\n| `MMFF has null force field` | Missing MMFF parameters for atom types | Switch to UFF: `AllChem.UFFOptimizeMolecule(mol)` |\n| Wrong descriptor values | Missing explicit hydrogens | Call `Chem.AddHs(mol)` before descriptor calculation for H-dependent properties |\n| `ForwardSDMolSupplier` empty | File not found or wrong format | Verify path; use `Chem.SDMolSupplier(path, sanitize=False)` to skip problematic molecules |\n| Slow fingerprint computation on large library | Sequential processing | Use `AllChem.GetMorganFingerprintAsBitVect` with pre-allocated arrays; consider `rdkit.Chem.MultithreadedSDMolSupplier` |\n| SMARTS pattern no matches | Incorrect SMARTS syntax or aromaticity mismatch | Test pattern with simple SMILES first; use `[#6]` instead of `C` for any carbon |\n| `MemoryError` on large SDF | Loading entire file into memory | Use `ForwardSDMolSupplier` for streaming; process in batches |\n| Inconsistent canonical SMILES | Different RDKit versions | Pin RDKit version; use `Chem.MolToSmiles(mol, canonical=True)` explicitly |\n\n## Bundled Resources\n\nThis skill includes reference files in the `references\u002F` subdirectory:\n\n- `references\u002Fapi_reference.md` — Key RDKit modules and function lookup organized by capability (I\u002FO, descriptors, fingerprints, drawing, reactions)\n- `references\u002Fdescriptors_guide.md` — Complete list of 200+ molecular descriptors with names, descriptions, and typical ranges\n- `references\u002Fsmarts_patterns.md` — Common SMARTS patterns for functional group detection, organized by chemical class\n\n## References\n\n- [RDKit Documentation](https:\u002F\u002Fwww.rdkit.org\u002Fdocs\u002F) — Official documentation and Getting Started guide\n- [RDKit Cookbook](https:\u002F\u002Fwww.rdkit.org\u002Fdocs\u002FCookbook.html) — Recipes and common workflow patterns\n- [Getting Started with RDKit in Python](https:\u002F\u002Fwww.rdkit.org\u002Fdocs\u002FGettingStartedInPython.html) — Comprehensive tutorial\n- [Lipinski, C.A. et al. (2001) Advanced Drug Delivery Reviews 46:3-26](https:\u002F\u002Fdoi.org\u002F10.1016\u002FS0169-409X(00)00129-0) — Rule of Five\n- [Veber, D.F. et al. (2002) J. Med. Chem. 45:2615-2623](https:\u002F\u002Fdoi.org\u002F10.1021\u002Fjm020017n) — Oral bioavailability criteria\n- [Morgan, H.L. (1965) J. Chem. Doc. 5:107-113](https:\u002F\u002Fdoi.org\u002F10.1021\u002Fc160017a018) — Circular fingerprint algorithm\n","# RDKit Cheminformatics Toolkit\n\n## Overview\n\nRDKit is the standard open-source cheminformatics library for Python, providing comprehensive APIs for molecular parsing, descriptor calculation, fingerprinting, substructure searching, and chemical reactions. This skill walks through a complete compound library profiling and virtual screening workflow — from loading molecules through drug-likeness filtering, similarity screening, and result visualization.\n\n## When to Use\n\n- Calculate molecular properties (MW, LogP, TPSA, HBD\u002FHBA) for a compound set\n- Screen a library against a reference compound using fingerprint similarity\n- Filter compounds by substructure (SMARTS patterns) for functional group analysis\n- Assess drug-likeness using Lipinski's Rule of Five or custom filters\n- Generate 2D depictions or 3D conformers for downstream docking\n- Enumerate chemical libraries using reaction SMARTS (combinatorial chemistry)\n- Cluster compounds by structural similarity for diversity analysis\n- Standardize and deduplicate molecular datasets (canonical SMILES, InChI)\n- Use `datamol-cheminformatics` instead for a higher-level RDKit wrapper with batching and error handling; use `openbabel` instead for multi-format conversion (MOL2, XYZ, PDB)\n\n## Prerequisites\n\n- **Python packages**: `rdkit-pypi` (or `rdkit` via conda), `pandas`, `matplotlib`, `numpy`\n- **Data requirements**: Molecular structures as SMILES strings, SDF files, or MOL files\n- **Environment**: Python 3.8+; conda recommended for full RDKit installation\n\n```bash\n# Option 1: pip (lightweight)\npip install rdkit-pypi pandas matplotlib numpy\n\n# Option 2: conda (full features including cartridge)\nconda install -c conda-forge rdkit pandas matplotlib numpy\n```\n\n## Workflow\n\n### Step 1: Load and Validate Molecules\n\nRead molecular structures from SMILES or SDF and validate parsing.\n\n```python\nfrom rdkit import Chem\nimport pandas as pd\n\n# --- From SMILES list ---\nsmiles_list = [\n    \"CC(=O)Oc1ccccc1C(=O)O\",       # Aspirin\n    \"CC12CCC3C(C1CCC2O)CCC4=CC(=O)CCC34C\",  # Testosterone\n    \"c1ccc2[nH]c(-c3ccccn3)nc2c1\",  # Benzimidazole derivative\n    \"CC(C)Cc1ccc(C(C)C(=O)O)cc1\",   # Ibuprofen\n    \"INVALID_SMILES\",                 # Will fail\n]\n\nmols = []\nfailed = []\nfor smi in smiles_list:\n    mol = Chem.MolFromSmiles(smi)\n    if mol is not None:\n        mol.SetProp(\"_SMILES\", smi)\n        mols.append(mol)\n    else:\n        failed.append(smi)\n\nprint(f\"Successfully parsed: {len(mols)}\u002F{len(smiles_list)}\")\nprint(f\"Failed: {failed}\")\n\n# --- From SDF file ---\n# suppl = Chem.SDMolSupplier(\"library.sdf\")\n# mols = [mol for mol in suppl if mol is not None]\n# print(f\"Loaded {len(mols)} molecules from SDF\")\n```\n\n### Step 2: Standardize and Deduplicate\n\nCanonicalize SMILES and remove duplicates to ensure a clean dataset.\n\n```python\nfrom rdkit.Chem.MolStandardize import rdMolStandardize\n\n# Standardize: neutralize charges, remove fragments, canonicalize\nuncharger = rdMolStandardize.Uncharger()\nchooser = rdMolStandardize.LargestFragmentChooser()\n\nstandardized = []\nseen_smiles = set()\n\nfor mol in mols:\n    # Keep largest fragment (remove salts\u002Fcounterions)\n    mol = chooser.choose(mol)\n    # Neutralize charges\n    mol = uncharger.uncharge(mol)\n    # Canonical SMILES for deduplication\n    canon_smi = Chem.MolToSmiles(mol)\n    if canon_smi not in seen_smiles:\n        seen_smiles.add(canon_smi)\n        mol.SetProp(\"canonical_smiles\", canon_smi)\n        standardized.append(mol)\n\nprint(f\"After standardization: {len(standardized)} unique molecules\")\nprint(f\"Removed {len(mols) - len(standardized)} duplicates\u002Fsalts\")\n```\n\n### Step 3: Calculate Molecular Descriptors\n\nCompute physicochemical properties for each molecule.\n\n```python\nfrom rdkit.Chem import Descriptors\n\nrecords = []\nfor mol in standardized:\n    desc = {\n        \"SMILES\": Chem.MolToSmiles(mol),\n        \"MW\": round(Descriptors.MolWt(mol), 2),\n        \"LogP\": round(Descriptors.MolLogP(mol), 2),\n        \"TPSA\": round(Descriptors.TPSA(mol), 2),\n        \"HBD\": Descriptors.NumHDonors(mol),\n        \"HBA\": Descriptors.NumHAcceptors(mol),\n        \"RotBonds\": Descriptors.NumRotatableBonds(mol),\n        \"AromaticRings\": Descriptors.NumAromaticRings(mol),\n        \"HeavyAtoms\": mol.GetNumHeavyAtoms(),\n        \"RingCount\": Descriptors.RingCount(mol),\n    }\n    records.append(desc)\n\ndf = pd.DataFrame(records)\nprint(df.to_string(index=False))\nprint(f\"\\nDescriptor summary:\\n{df.describe().round(2)}\")\n```\n\n### Step 4: Apply Drug-Likeness Filters\n\nFilter compounds using Lipinski's Rule of Five and Veber criteria.\n\n```python\ndef lipinski_filter(row):\n    \"\"\"Lipinski Ro5: MW\u003C=500, LogP\u003C=5, HBD\u003C=5, HBA\u003C=10\"\"\"\n    return (row[\"MW\"] \u003C= 500 and row[\"LogP\"] \u003C= 5 and\n            row[\"HBD\"] \u003C= 5 and row[\"HBA\"] \u003C= 10)\n\ndef veber_filter(row):\n    \"\"\"Veber: RotBonds\u003C=10, TPSA\u003C=140\"\"\"\n    return row[\"RotBonds\"] \u003C= 10 and row[\"TPSA\"] \u003C= 140\n\ndf[\"Lipinski\"] = df.apply(lipinski_filter, axis=1)\ndf[\"Veber\"] = df.apply(veber_filter, axis=1)\ndf[\"DrugLike\"] = df[\"Lipinski\"] & df[\"Veber\"]\n\nprint(f\"Lipinski pass: {df['Lipinski'].sum()}\u002F{len(df)}\")\nprint(f\"Veber pass:    {df['Veber'].sum()}\u002F{len(df)}\")\nprint(f\"Drug-like:     {df['DrugLike'].sum()}\u002F{len(df)}\")\n\ndrug_like_mols = [standardized[i] for i in df[df[\"DrugLike\"]].index]\nprint(f\"\\n{len(drug_like_mols)} drug-like compounds retained\")\n```\n\n### Step 5: Generate Fingerprints and Similarity Search\n\nCompute Morgan fingerprints and screen against a reference compound.\n\n```python\nfrom rdkit.Chem import AllChem\nfrom rdkit import DataStructs\n\n# Reference compound (e.g., known active)\nref_smi = \"CC(=O)Oc1ccccc1C(=O)O\"  # Aspirin\nref_mol = Chem.MolFromSmiles(ref_smi)\nref_fp = AllChem.GetMorganFingerprintAsBitVect(ref_mol, radius=2, nBits=2048)\n\n# Screen library\nresults = []\nfor mol in drug_like_mols:\n    fp = AllChem.GetMorganFingerprintAsBitVect(mol, radius=2, nBits=2048)\n    tanimoto = DataStructs.TanimotoSimilarity(ref_fp, fp)\n    results.append({\n        \"SMILES\": Chem.MolToSmiles(mol),\n        \"Tanimoto\": round(tanimoto, 3),\n    })\n\nsim_df = pd.DataFrame(results).sort_values(\"Tanimoto\", ascending=False)\nprint(\"Similarity ranking:\")\nprint(sim_df.to_string(index=False))\n\n# Filter by threshold\nthreshold = 0.3\nhits = sim_df[sim_df[\"Tanimoto\"] >= threshold]\nprint(f\"\\n{len(hits)} compounds with Tanimoto >= {threshold}\")\n```\n\n### Step 6: Substructure Filtering with SMARTS\n\nFilter compounds containing specific functional groups.\n\n```python\n# Define SMARTS patterns for functional groups of interest\npatterns = {\n    \"Carboxylic acid\": \"[CX3](=O)[OX2H1]\",\n    \"Amide\": \"[CX3](=[OX1])[NX3]\",\n    \"Aromatic ring\": \"c1ccccc1\",\n    \"Hydroxyl\": \"[OX2H]\",\n    \"Ester\": \"[CX3](=O)[OX2][C]\",\n}\n\nprint(\"Substructure matches:\")\nfor name, smarts in patterns.items():\n    query = Chem.MolFromSmarts(smarts)\n    match_count = sum(1 for mol in drug_like_mols if mol.HasSubstructMatch(query))\n    print(f\"  {name}: {match_count}\u002F{len(drug_like_mols)} compounds\")\n\n# Get specific matches with atom indices\nquery = Chem.MolFromSmarts(\"[CX3](=O)[OX2H1]\")  # Carboxylic acid\nfor mol in drug_like_mols:\n    matches = mol.GetSubstructMatches(query)\n    if matches:\n        smi = Chem.MolToSmiles(mol)\n        print(f\"\\n{smi}: {len(matches)} carboxylic acid group(s)\")\n        for match in matches:\n            print(f\"  Atom indices: {match}\")\n```\n\n### Step 7: 2D Visualization and Grid Plots\n\nGenerate publication-quality molecular depictions.\n\n```python\nfrom rdkit.Chem import Draw\nfrom rdkit.Chem.Draw import rdMolDraw2D\n\n# Grid image of top hits\nlegends = [f\"Tan={row['Tanimoto']}\" for _, row in sim_df.head(4).iterrows()]\ntop_mols = [Chem.MolFromSmiles(smi) for smi in sim_df.head(4)[\"SMILES\"]]\n\nimg = Draw.MolsToGridImage(\n    top_mols,\n    molsPerRow=2,\n    subImgSize=(300, 300),\n    legends=legends,\n)\nimg.save(\"top_hits_grid.png\")\nprint(\"Saved top_hits_grid.png\")\n\n# Highlight substructure in a molecule\nmol = top_mols[0]\nquery = Chem.MolFromSmarts(\"[CX3](=O)[OX2H1]\")\nmatch = mol.GetSubstructMatch(query)\nif match:\n    highlight_img = Draw.MolToImage(mol, size=(400, 400), highlightAtoms=match)\n    highlight_img.save(\"substructure_highlight.png\")\n    print(\"Saved substructure_highlight.png\")\n```\n\n### Step 8: Export Results\n\nSave the profiling results and filtered compounds.\n\n```python\nimport os\n\nos.makedirs(\"results\", exist_ok=True)\n\n# Save descriptor table\ndf.to_csv(\"results\u002Fdescriptors.csv\", index=False)\nprint(f\"Saved descriptors for {len(df)} compounds to results\u002Fdescriptors.csv\")\n\n# Save drug-like compounds as SDF\nwriter = Chem.SDWriter(\"results\u002Fdrug_like_compounds.sdf\")\nfor i, mol in enumerate(drug_like_mols):\n    # Attach descriptors as SDF properties\n    row = df[df[\"DrugLike\"]].iloc[i]\n    mol.SetProp(\"MW\", str(row[\"MW\"]))\n    mol.SetProp(\"LogP\", str(row[\"LogP\"]))\n    mol.SetProp(\"TPSA\", str(row[\"TPSA\"]))\n    writer.write(mol)\nwriter.close()\nprint(f\"Saved {len(drug_like_mols)} drug-like compounds to results\u002Fdrug_like_compounds.sdf\")\n\n# Save similarity results\nsim_df.to_csv(\"results\u002Fsimilarity_results.csv\", index=False)\nprint(f\"Saved similarity rankings to results\u002Fsimilarity_results.csv\")\n```\n\n## Key Parameters\n\n| Parameter | Default | Range \u002F Options | Effect |\n|-----------|---------|-----------------|--------|\n| `MolFromSmiles(sanitize=)` | `True` | `True`, `False` | Automatic validation and aromaticity perception on parsing |\n| `Morgan radius` | `2` | `1`-`3` | Fingerprint radius; 2 ≈ ECFP4, 3 ≈ ECFP6 |\n| `Morgan nBits` | `2048` | `1024`-`4096` | Fingerprint bit length; higher = fewer collisions |\n| `Tanimoto threshold` | `0.7` | `0.3`-`0.9` | Similarity cutoff; lower = more permissive |\n| `Lipinski MW cutoff` | `500` | `300`-`600` | Max molecular weight for drug-likeness |\n| `Lipinski LogP cutoff` | `5` | `3`-`6` | Max lipophilicity |\n| `Veber RotBonds cutoff` | `10` | `7`-`15` | Max rotatable bonds for oral bioavailability |\n| `Veber TPSA cutoff` | `140` | `120`-`160` | Max polar surface area (Å²) |\n| `EmbedMolecule(randomSeed=)` | `None` | Any integer | Seed for reproducible 3D conformer generation |\n| `Butina distThresh` | `0.3` | `0.2`-`0.5` | Distance cutoff for Butina clustering |\n\n## Common Recipes\n\n### Recipe: Butina Clustering for Diversity Selection\n\nWhen to use: select a diverse subset from a large compound library.\n\n```python\nfrom rdkit.ML.Cluster import Butina\nfrom rdkit.Chem import AllChem\nfrom rdkit import DataStructs, Chem\n\n# Generate fingerprints\nfps = [AllChem.GetMorganFingerprintAsBitVect(mol, 2, nBits=2048)\n       for mol in standardized]\n\n# Build distance matrix (lower triangle)\ndists = []\nfor i in range(1, len(fps)):\n    sims = DataStructs.BulkTanimotoSimilarity(fps[i], fps[:i])\n    dists.extend([1 - s for s in sims])\n\n# Cluster\nclusters = Butina.ClusterData(dists, len(fps), distThresh=0.3, isDistData=True)\nprint(f\"{len(clusters)} clusters from {len(fps)} compounds\")\n\n# Pick centroid from each cluster (first element = centroid)\ndiverse_indices = [c[0] for c in clusters]\ndiverse_mols = [standardized[i] for i in diverse_indices]\nprint(f\"Selected {len(diverse_mols)} diverse representatives\")\n```\n\n### Recipe: Reaction Enumeration (Amide Coupling)\n\nWhen to use: generate a combinatorial library from building blocks via reaction SMARTS.\n\n```python\nfrom rdkit.Chem import AllChem, Chem\n\n# Amide coupling: carboxylic acid + amine → amide\nrxn = AllChem.ReactionFromSmarts(\n    \"[C:1](=[O:2])[OH].[N:3]([H])([H])[C:4]>>[C:1](=[O:2])[N:3][C:4]\"\n)\n\nacids = [Chem.MolFromSmiles(s) for s in [\"OC(=O)c1ccccc1\", \"OC(=O)CC\"]]\namines = [Chem.MolFromSmiles(s) for s in [\"NCC\", \"NC1CCCCC1\"]]\n\nproducts = []\nfor acid in acids:\n    for amine in amines:\n        ps = rxn.RunReactants((acid, amine))\n        for product_set in ps:\n            for prod in product_set:\n                Chem.SanitizeMol(prod)\n                products.append(Chem.MolToSmiles(prod))\n\nprint(f\"Generated {len(products)} products:\")\nfor p in products:\n    print(f\"  {p}\")\n```\n\n### Recipe: 3D Conformer Generation and MMFF Optimization\n\nWhen to use: prepare molecules for docking or 3D pharmacophore analysis.\n\n```python\nfrom rdkit import Chem\nfrom rdkit.Chem import AllChem\n\nmol = Chem.MolFromSmiles(\"CC(=O)Oc1ccccc1C(=O)O\")\nmol = Chem.AddHs(mol)  # Required for 3D embedding\n\n# Generate multiple conformers\nparams = AllChem.ETKDGv3()\nparams.randomSeed = 42\nparams.numThreads = 0  # Use all available cores\nconf_ids = AllChem.EmbedMultipleConfs(mol, numConfs=10, params=params)\nprint(f\"Generated {len(conf_ids)} conformers\")\n\n# Optimize with MMFF94 force field\nenergies = []\nfor conf_id in conf_ids:\n    result = AllChem.MMFFOptimizeMolecule(mol, confId=conf_id)\n    ff = AllChem.MMFFGetMoleculeForceField(mol, AllChem.MMFFGetMoleculeProperties(mol), confId=conf_id)\n    energy = ff.CalcEnergy()\n    energies.append((conf_id, energy))\n    print(f\"  Conformer {conf_id}: {energy:.2f} kcal\u002Fmol (converged={result == 0})\")\n\n# Get lowest energy conformer\nbest_id = min(energies, key=lambda x: x[1])[0]\nprint(f\"\\nBest conformer: {best_id} ({min(e for _, e in energies):.2f} kcal\u002Fmol)\")\n\n# Save to SDF\nwriter = Chem.SDWriter(\"conformers.sdf\")\nfor conf_id, energy in energies:\n    mol.SetProp(\"Energy\", f\"{energy:.2f}\")\n    writer.write(mol, confId=conf_id)\nwriter.close()\n```\n\n### Recipe: Molecular Visualization with Atom Indices and Custom Drawing\n\nWhen to use: debug SMARTS matches, annotate atom positions for reports.\n\n```python\nfrom rdkit import Chem\nfrom rdkit.Chem.Draw import rdMolDraw2D\n\nmol = Chem.MolFromSmiles(\"CC(=O)Oc1ccccc1C(=O)O\")\nAllChem.Compute2DCoords(mol)\n\n# Custom drawer with atom indices and stereo annotations\ndrawer = rdMolDraw2D.MolDraw2DCairo(500, 400)\nopts = drawer.drawOptions()\nopts.addAtomIndices = True\nopts.addStereoAnnotation = True\nopts.bondLineWidth = 2.0\n\ndrawer.DrawMolecule(mol)\ndrawer.FinishDrawing()\n\nwith open(\"annotated_molecule.png\", \"wb\") as f:\n    f.write(drawer.GetDrawingText())\nprint(\"Saved annotated_molecule.png with atom indices\")\n```\n\n## Expected Outputs\n\n- `results\u002Fdescriptors.csv` — Tabular descriptors (SMILES, MW, LogP, TPSA, HBD, HBA, RotBonds, Lipinski, Veber, DrugLike)\n- `results\u002Fdrug_like_compounds.sdf` — Filtered compounds in SDF format with attached properties\n- `results\u002Fsimilarity_results.csv` — Tanimoto similarity rankings against reference compound\n- `top_hits_grid.png` — 2D grid image of top similar compounds\n- `substructure_highlight.png` — Molecule image with highlighted functional group\n- `conformers.sdf` — 3D conformer ensemble with MMFF energies\n- `annotated_molecule.png` — Atom-indexed 2D depiction\n\n## Troubleshooting\n\n| Problem | Cause | Solution |\n|---------|-------|----------|\n| `MolFromSmiles` returns `None` | Invalid SMILES string or valence error | Check SMILES validity; use `Chem.MolFromSmiles(smi, sanitize=False)` then `DetectChemistryProblems()` to diagnose |\n| `Kekulization error` | Invalid aromatic ring system | Check for non-standard aromaticity; try `Chem.SanitizeMol(mol, sanitizeOps=Chem.SANITIZE_ALL ^ Chem.SANITIZE_KEKULIZE)` |\n| `EmbedMolecule` returns `-1` | 3D embedding failed (ring strain, steric clash) | Use `AllChem.EmbedMolecule(mol, maxAttempts=50, useRandomCoords=True)` |\n| `MMFF has null force field` | Missing MMFF parameters for atom types | Switch to UFF: `AllChem.UFFOptimizeMolecule(mol)` |\n| Wrong descriptor values | Missing explicit hydrogens | Call `Chem.AddHs(mol)` before descriptor calculation for H-dependent properties |\n| `ForwardSDMolSupplier` empty | File not found or wrong format | Verify path; use `Chem.SDMolSupplier(path, sanitize=False)` to skip problematic molecules |\n| Slow fingerprint computation on large library | Sequential processing | Use `AllChem.GetMorganFingerprintAsBitVect` with pre-allocated arrays; consider `rdkit.Chem.MultithreadedSDMolSupplier` |\n| SMARTS pattern no matches | Incorrect SMARTS syntax or aromaticity mismatch | Test pattern with simple SMILES first; use `[#6]` instead of `C` for any carbon |\n| `MemoryError` on large SDF | Loading entire file into memory | Use `ForwardSDMolSupplier` for streaming; process in batches |\n| Inconsistent canonical SMILES | Different RDKit versions | Pin RDKit version; use `Chem.MolToSmiles(mol, canonical=True)` explicitly |\n\n## Bundled Resources\n\nThis skill includes reference files in the `references\u002F` subdirectory:\n\n- `references\u002Fapi_reference.md` — Key RDKit modules and function lookup organized by capability (I\u002FO, descriptors, fingerprints, drawing, reactions)\n- `references\u002Fdescriptors_guide.md` — Complete list of 200+ molecular descriptors with names, descriptions, and typical ranges\n- `references\u002Fsmarts_patterns.md` — Common SMARTS patterns for functional group detection, organized by chemical class\n\n## References\n\n- [RDKit Documentation](https:\u002F\u002Fwww.rdkit.org\u002Fdocs\u002F) — Official documentation and Getting Started guide\n- [RDKit Cookbook](https:\u002F\u002Fwww.rdkit.org\u002Fdocs\u002FCookbook.html) — Recipes and common workflow patterns\n- [Getting Started with RDKit in Python](https:\u002F\u002Fwww.rdkit.org\u002Fdocs\u002FGettingStartedInPython.html) — Comprehensive tutorial\n- [Lipinski, C.A. et al. (2001) Advanced Drug Delivery Reviews 46:3-26](https:\u002F\u002Fdoi.org\u002F10.1016\u002FS0169-409X(00)00129-0) — Rule of Five\n- [Veber, D.F. et al. (2002) J. Med. Chem. 45:2615-2623](https:\u002F\u002Fdoi.org\u002F10.1021\u002Fjm020017n) — Oral bioavailability criteria\n- [Morgan, H.L. (1965) J. Chem. Doc. 5:107-113](https:\u002F\u002Fdoi.org\u002F10.1021\u002Fc160017a018) — Circular fingerprint algorithm\n",{"name":5,"license":15,"description":7},"master","63f17866001c5ca854bf2fa0b678ce277133de5b","skills\u002Fawesome-skills\u002Frdkit-cheminformatics",0,"https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS","https:\u002F\u002Fbg-szy.github.io\u002FTOP-SKILLS\u002F","https:\u002F\u002Fgithub.com\u002Fbg-szy","https:\u002F\u002Fwww.ecust.edu.cn\u002F","a student of East China University of Science and Technology","2026-11-15 03:38:02",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add bg-szy\u002FTOP-SKILLS --skill rdkit-cheminformatics",{"tool":40,"command":41},"bunx","bunx skills add bg-szy\u002FTOP-SKILLS --skill rdkit-cheminformatics",{"tool":43,"command":44},"pnpm","pnpm dlx skills add bg-szy\u002FTOP-SKILLS --skill rdkit-cheminformatics","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fawesome-skills\u002Frdkit-cheminformatics\u002FSKILL.md",true,[],[49,58,65,72,79,86],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":53,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":57},"01M7DXW9N826PKXK174PVW3038","serpmaven","Scrape Google search results (SERP) to JSON with SERP Maven (serpmaven) - a real Chrome browser on a residential proxy with sticky sessions. Run it as a CLI, a Python library, a local HTTP search API (`serve`), an MCP server or a Docker image; set the proxy login, workers, pages and cost tracking. Use when the user wants Google results, rank tracking, a self-hosted SERP API, or live Google search for an AI agent.","MIT","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fserpmaven\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":53,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":57},"01M7DXVHSTWDV65475QEQ915M7","revnu-landing-page-audit","Find out why a landing page isn't turning visitors into signups, demos or sales. Audits one page against what the ad, post or search that sends people there promised, then checks the first screen, proof, call to action, friction and mobile. Returns at most 7 prioritized fixes, plus what is fine and what could not be checked; rewrites specific lines and fixes the page in the repo when asked. Never promises a conversion lift. Works without a Revnu account. Use when the user says or asks: \"audit my landing page\", \"why isn't this page converting\", \"review my homepage\", \"my ads get clicks but no signups\", \"people bounce from the pricing page\", \"CRO review\", \"improve conversion rate\", \"is my hero section clear\", \"roast my landing page\", \"rewrite my headline\", \"what's wrong with this page\", \"landing page feedback\", \"make the signup page convert better\". Not for SEO or AI-search audits, page speed engineering on its own, or building a new page from scratch.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-landing-page-audit\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":53,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":57},"01M7DXV8X2D7B3VTD4HHYYHTGR","revnu-growth-context","Write down once who buys, what they're stuck on, what it costs, what proof you have and what you've already tried, so every growth task starts from facts instead of a questionnaire. Creates or updates .agents\u002Frevnu-growth.md from the repo, the live site and the user, and imports an existing product-marketing.md. Use when the user says \"set up our marketing context\", \"who is our ideal customer\", \"write our ICP\", \"describe the product for marketing\", \"positioning doc\", \"what's our brand voice\", \"remember this about our customers\", \"log what we tried\", \"what have we learned from marketing\", \"we changed pricing, update the context\", \"update our growth notes\", \"summarize the business for the agent\", \"import my product-marketing.md\", \"start a growth doc\", or before a first marketing, SEO, outreach or launch task when no context file exists. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-growth-context\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":53,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":57},"01M7DXV0DGJ1G0A60PAHC6J3C5","revnu-get-listed","Get onto the third-party pages AI answers and search cite when buyers ask for the best tool in your category: \"best X\" roundups, directories, review sites, GitHub awesome lists, community threads and comparison pages. Finds which ones are cited, ranks them by fit and effort, and drafts each submission, PR or pitch by the target's own rules. Use when the user says \"get us listed\", \"which directories should we submit to\", \"how do we get into best-of lists\", \"why does ChatGPT recommend competitors and not us\", \"get mentioned in AI answers\", \"submit to awesome lists\", \"get on G2\", \"where are our competitors listed\", \"pitch listicle authors\", \"find backlink opportunities\", \"launch directories\", \"get into roundups\", \"Product Hunt alternatives\", \"where should we be listed\", \"get cited by Perplexity\". Never submits, pays or posts without a yes. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-get-listed\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":53,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":57},"01M7DXTSPMGT9D6DSS0HP9BSTA","revnu-ai-readiness-audit","Audit whether your website gives ChatGPT, Perplexity, Claude, Gemini and Google's AI Overviews something worth quoting, and fix the pages that don't. Use when the user says or asks \"is my site ready for AI search\", \"audit my site for AI answers\", \"AEO audit\", \"GEO audit\", \"why doesn't ChatGPT quote our pricing\", \"make our pages citable by AI\", \"do I need llms.txt\", \"does schema help with ChatGPT\", \"check our structured data\", \"is our content visible without JavaScript\", \"AI SEO audit\", \"optimize our homepage for AI answers\", \"LLM SEO check\", \"why does AI get our product wrong\", \"fix our site for AI Overviews\". Checks fetchability and indexability, answers in the raw HTML, entity facts, schema (including JS-injected markup), headings, dates and llms.txt, then gives at most 10 prioritised fixes and edits the repo when asked. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-ai-readiness-audit\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":53,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":57},"01M7DXSZHCVTRS620GC3S97JZV","proxy-troubleshooting","Diagnose residential proxy failures, with NodeMaven's gateway as the reference - 407 with correct credentials, 406, 410, 500, a connection that hangs, ERR_TUNNEL_CONNECTION_FAILED in a browser, Playwright or Puppeteer ignoring proxy credentials, a sticky session that changes IP, geo-targeting that is silently ignored, passwords with special characters, and unexpected traffic from headless Chrome. Use when a proxy connection fails, returns the wrong location, or costs more traffic than expected.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fproxy-troubleshooting\u002FSKILL.md",[],[]]