Fulltext fetcher

From aipoch/medical-research-skills · View interactive version

Fulltext fetcher is an AI agent skill from the GitHub repository aipoch/medical-research-skills. Fetch and save the original HTML of scientific literature webpages when given a URL, DOI, or PubMed PMID (triggered when you need archival-grade page HTML for downstream parsing or review).

How to use this skill

Skill file

Source: https://github.com/aipoch/medical-research-skills

When to Use

Key Features

Dependencies

Example Usage

cd "20260316/scientific-skills/Others/fulltext-fetcher"
python -m py_compile scripts/fulltext_fetcher.py
python scripts/fulltext_fetcher.py --help

Example run plan:

  1. Confirm the user input, output path, and any required config values.
  2. Edit the in-file CONFIG block or documented parameters if the script uses fixed settings.
  3. Run python scripts/fulltext_fetcher.py with the validated inputs.
  4. Review the generated output and return the final artifact with any assumptions called out.

Implementation Details

Validation Shortcut

Run this minimal command first to verify the supported execution path:

python scripts/fulltext_fetcher.py --help

fulltext-fetcher

1. When to Use

2. Key Features

3. Dependencies

4. Example Usage

The following commands are intended to be runnable as-is from the repository root.

Fetch a single URL

python scripts/fulltext_fetcher.py --url "https://example.org/page"

Fetch by DOI

python scripts/fulltext_fetcher.py --doi "10.1038/s41586-020-2649-2"

Fetch by PubMed PMID

python scripts/fulltext_fetcher.py --pmid "23273568"

Batch fetch and customize output directory

python scripts/fulltext_fetcher.py \
  --url "https://example.org/page1" \
  --url "https://example.org/page2" \
  --doi "10.1038/s41586-020-2649-2" \
  --pmid "23273568" \
  --out-dir "outputs"

Allow crawling non-whitelisted public domains (explicit opt-in)

python scripts/fulltext_fetcher.py \
  --doi "10.1038/s41586-020-2649-2" \
  --allow-all

5. Implementation Details

Inputs

At least one of --url, --doi, or --pmid must be provided.

Output

Domain access control

Network behavior

Verification checklist

When Not to Use

Required Inputs

Recommended Workflow

  1. Validate the request against the skill boundary and confirm all required inputs are present.
  2. Select the documented execution path and prefer the simplest supported command or procedure.
  3. Produce the expected output using the documented file format, schema, or narrative structure.
  4. Run a final validation pass for completeness, consistency, and safety before returning the result.

Output Contract

Validation and Safety Rules

Failure Handling

Quick Validation

Run this minimal verification path before full execution when possible:

python scripts/fulltext_fetcher.py --help

Expected output format:

Result file: fulltext_fetcher_result.md
Validation summary: PASS/FAIL with brief notes
Assumptions: explicit list if any

Deterministic Output Rules

Completion Checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.