general-publisher-access-guard
Skill174 starsChanged 6 months agoMITView on GitHub
Avoid bot-blocking publisher websites by routing paper retrieval through legal open-access APIs and mirrors.
- Reads credentials
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-pdbSkill
- 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-query-literature-databaseSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 3 are distinctive, and 5 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.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
When the user asks you to fetch, read, summarize, or analyze scientific literature from specific URLs or DOIs, NEVER use direct web …
- Distinctive: line 18
Before attempting to download or scrape any paper URL or DOI, inspect the domain against the curated publisher policy matrix.
- Very specific: line 31
If direct_scraping_safe: false (status BLOCKED or API ONLY), you MUST NOT scrape or curl the publisher web page.
- Distinctive: line 35
Run the safe paper retriever to query legitimate APIs in priority order:
- Very specific: line 37
Official Publisher APIs: If credentials (ELSEVIER_API_KEY, SPRINGER_API_KEY) are present in environment variables.
- Distinctive: line 56
If no open-access copy exists across repository mirrors:
- Very specific: line 58
Read and synthesize the abstract provided in <safe_doi>_summary.md.
- Very specific: line 98
Zero Direct Scrape: Never execute curl, read_url_content, or browser automation on blocked publisher domains.
≈ “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
General Publisher Access Guard
Goal
To prevent autonomous research agents from being blocked by scientific journal publisher web application firewalls (Cloudflare Turnstile, Radware CAPTCHA, Akamai, Imperva) and HTTP 403/429 error loops, by auditing publisher anti-bot policies and automatically routing paper retrieval through legal open-access APIs, repository mirrors, and reconstructed abstract services.
Instructions
When the user asks you to fetch, read, summarize, or analyze scientific literature from specific URLs or DOIs, NEVER use direct web scraping (read_url_content, curl, or raw requests.get) on known bot-blocking publisher domains. Follow the three steps below:
1. Pre-Flight Publisher Assessment
Before attempting to download or scrape any paper URL or DOI, inspect the domain against the curated publisher policy matrix.
# Env: base-agent
python .agents/skills/general-publisher-access-guard/scripts/check_publisher.py --url "https://pubs.acs.org/doi/10.1021/acs.chemmater.9b04758"Or with DOI:
# Env: base-agent
python .agents/skills/general-publisher-access-guard/scripts/check_publisher.py --doi "10.1103/PhysRevLett.120.145301" --jsonDecision Rule:
- If
direct_scraping_safe: false(statusBLOCKEDorAPI ONLY), you MUST NOT scrape or curl the publisher web page. Proceed immediately to Step 2. - Known blocked domains include:
pubs.acs.org,journals.aps.org,link.aps.org,sciencedirect.com,link.springer.com,nature.com,onlinelibrary.wiley.com,pubs.rsc.org,iopscience.iop.org,pubs.aip.org,ieeexplore.ieee.org,science.org,pnas.org,tandfonline.com,academic.oup.com, andmdpi.com.
2. Execute the Safe Retrieval Cascade
Run the safe paper retriever to query legitimate APIs in priority order:
- Official Publisher APIs: If credentials (
ELSEVIER_API_KEY,SPRINGER_API_KEY) are present in environment variables. - OpenAlex Works API: Retrieves complete bibliographic metadata (authors, journal, citations, publication year) and reconstructs the full abstract from the inverted index.
- Filtered Unpaywall API: Searches for legal Green/Gold Open Access copies hosted in institutional and disciplinary repositories (e.g. arXiv, PubMed Central, Zenodo, university
.edurepositories), automatically discarding any link pointing back to a blocked publisher domain. - Europe PMC API: Direct open access XML/PDF retrieval for biomedical and chemistry literature.
- Preprint APIs: Queries arXiv API or ChemRxiv API with required rate throttling (minimum 3 seconds delay).
# Env: base-agent
python .agents/skills/general-publisher-access-guard/scripts/safe_paper_retriever.py \
--doi "10.1103/PhysRevLett.120.145301" \
--output_dir ./papersThe script outputs:
<safe_doi>_summary.md: Structured markdown report with title, authors, citations, reconstructed abstract, and access notes.<safe_doi>.pdf: Downloaded open-access PDF (if available in a safe repository).<safe_doi>_text.txt: Plaintext extracted from the PDF via PyMuPDF.
3. Graceful Handling of Paywalled Literature
If no open-access copy exists across repository mirrors:
- DO NOT retry scraping the publisher website.
- Read and synthesize the abstract provided in
<safe_doi>_summary.md. - Inform the user that the full text is restricted by publisher paywalls/WAFs, and request them to upload the institutional PDF to the workspace if full-text extraction is required.
4. Auditing Publisher Defenses
To test live publisher WAF defenses or verify if a publisher's bot policy has updated:
# Env: base-agent
python .agents/skills/general-publisher-access-guard/scripts/audit_publishers.py --publisher acsOr audit all major publishers:
# Env: base-agent
python .agents/skills/general-publisher-access-guard/scripts/audit_publishers.py --allExamples
Example 1: Bypassing ACS Bot Block for Perovskite Battery Paper
Handling an ACS paper (10.1021/acs.jpclett.7b00189) where direct web scraping returns Cloudflare Turnstile 403:
# Env: base-agent
python .agents/skills/general-publisher-access-guard/scripts/safe_paper_retriever.py \
--doi "10.1021/acs.jpclett.7b00189" \
--output_dir examples/acs-blocked-paperSee examples/acs-blocked-paper/README.md for full execution traces and validation against published literature.
Example 2: Resolving APS Paper via Legal Open-Access Repository Mirror
Handling an APS Physical Review Letters paper (10.1103/PhysRevLett.120.145301) by bypassing blocked link.aps.org/pdf and fetching the author manuscript from OSTI/MIT DSpace:
# Env: base-agent
python .agents/skills/general-publisher-access-guard/scripts/safe_paper_retriever.py \
--doi "10.1103/PhysRevLett.120.145301" \
--output_dir examples/oa-repository-bypassSee examples/oa-repository-bypass/README.md for step-by-step instructions.
Constraints
- Environment: Requires
base-agentconda environment (containsrequests,pymupdf/fitz). - Zero Direct Scrape: Never execute
curl,read_url_content, or browser automation on blocked publisher domains. - Unpaywall Polite Pool: Provide an email address in
UNPAYWALL_EMAILorOPENALEX_EMAILenvironment variable to access high-throughput API pools. - Preprint Rate Limits: arXiv requests must maintain a minimum 3-second crawl delay.
- Institutional Access: Paywalled papers without green open-access copies cannot be legally decrypted without subscriber credentials or manual PDF upload.
References
- Priem, J., Piwowar, H., & Orr, R., "OpenAlex: A fully-open index of scholarly works, authors, venues, institutions, and concepts", arXiv:2205.01833, 2022. DOI: 10.48550/arXiv.2205.01833
- Piwowar, H. et al., "The state of OA: a large-scale analysis of the prevalence and impact of Open Access articles", PeerJ, 6:e4375, 2018. DOI: 10.7717/peerj.4375
- Ferguson, C. et al., "Europe PMC: a stocktake by the Europe PMC Consortium", Nucleic Acids Research, 49(D1):D1507-D1514, 2021. DOI: 10.1093/nar/gkaa994
- Cloudflare AI Crawl Control & Bot Management Whitepaper, 2024.
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.

