# General Chemical Literature

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

- **Type:** Skill
- **Install:** `agentstack add skill-learningmatter-mit-atomisticskills-general-chemical-literature`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [learningmatter-mit](https://agentstack.voostack.com/s/learningmatter-mit)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [learningmatter-mit](https://github.com/learningmatter-mit)
- **Source:** https://github.com/learningmatter-mit/AtomisticSkills/tree/main/.agents/skills/general-chemical-literature
- **Website:** https://arxiv.org/abs/2605.24002

## Install

```sh
agentstack add skill-learningmatter-mit-atomisticskills-general-chemical-literature
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 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
# Env: base-agent
python .agents/skills/general-chemical-literature/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
# Env: base-agent
python .agents/skills/general-chemical-literature/scripts/get_xrefs.py \
  --cid 2244 \
  --limit 50 \
  --outdir .agents/skills/general-chemical-literature/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)

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [learningmatter-mit](https://github.com/learningmatter-mit)
- **Source:** [learningmatter-mit/AtomisticSkills](https://github.com/learningmatter-mit/AtomisticSkills)
- **License:** MIT
- **Homepage:** https://arxiv.org/abs/2605.24002

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-learningmatter-mit-atomisticskills-general-chemical-literature
- Seller: https://agentstack.voostack.com/s/learningmatter-mit
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
