Skip to content
Agentmart
Submit a tool

general-chemical-literature

Retrieve extensive literature (PubMed) and patent associated with a specific chemical compound via PubChem.

Skill by learningmatter-mit

IndexedMIT★ 183
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/learningmatter-mit-general-chemical-literature

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Retrieve extensive literature (PubMed) and patent associated with a specific chemical compound via PubChem.

Use cases: research

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 4

  • codeload.github.com · found in install command
  • patents.google.com · found in code
  • pubchem.ncbi.nlm.nih.gov · found in code
  • pubmed.ncbi.nlm.nih.gov · found in code

Files it touches

  • ~/.claude/skills/general-chemical-literature

What's inside

Skill name
general-chemical-literature
Description
Retrieve extensive literature (PubMed) and patent associated with a specific chemical compound via PubChem.
License
MIT
Instructions
44 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (4)

  • SKILL.md
  • README.md · examples/aspirin/
  • xrefs_aspirin.json · examples/aspirin/
  • get_xrefs.py · scripts/

SKILL.md (first lines)

# Chemical Literature and Patent Mapping

## Goal
To programmatically check if a specific chemical compound exists in recent literature or patent databases. This skill uses PubChem's PUG-REST XRefs endpoint to extract an exhaustive list of associated PubMed IDs and Patent numbers.

This is incredibly useful as an autonomous "novelty check" for generated molecules.

## Instructions

### 1. Extract Literature and Patents by CID
Provide the CID of the target molecule. By default, the script will output the absolute total number of hits but limits the JSON save array to `1000` to prevent memory flooding for ubiquitous molecules (like Aspirin, which has over 100,000 patents). Adjust `--limit` as needed.

```bash
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/get_xrefs.py \
  --cid 2244 \
  --limit 50 \
  --outdir research/aspirin_literature \
  --output xrefs_aspirin.json
```

## Examples

We can pull cross-references for Aspirin (CID: 2244), saving the top 50 identifiers.

```bash
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/get_xrefs.py \
  --cid 2244 \
  --limit 50 \
  --outdir ${CLAUDE_SKILL_DIR}/examples/aspirin \
  --output xrefs_aspirin.json
```

## Constraints
- **Novelty Assessment Limitation**: If 0 PMIDs or Patents are returned, it strongly implies the molecule is highly novel (or purely computational), but it does not guarantee absolute non-existence.
- **Link Generation**: The script automatically prints actionable links (`pubmed.ncbi.nlm.nih.gov/` and `patents.google.com/patent/`) for the top 5 results for immediate verification.
- **Network Limits**: Handled internally via standard exponential backoff.

---
---

**Author:** Bowen Deng
**Contact:** [GitHub @learningmatter-mit](https://github.com/learningmatter-mit)

From learningmatter-mit/AtomisticSkills, MIT.

More from learningmatter-mit/AtomisticSkills

Compare and alternatives

    Featured in

    Signals

    Stars
    183
    Forks
    31
    Open issues
    0
    Last commit (this folder)
    Oct 5, 2026 (22 days ago)
    Last release
    Oct 6, 2026 (21 days ago)

    From GitHub (fetched Oct 24, 2026).

    Details

    License
    MIT
    First seen
    Oct 24, 2026
    Last checked
    Oct 24, 2026

    More from learningmatter-mit

    Cite this page

    general-chemical-literature skill. Agent Mart. https://agentmart.dev/skills/learningmatter-mit-general-chemical-literature (last updated 2026-10-24)