agentleFS
tiangong-aitiangong-ai/agent-skills/figshare-data-download/SKILL.md

figshare-data-download

Skill11 starsChanged 3 months agoMITView on GitHub

Download Figshare files via browser-only workflow (no web_fetch/curl probing). Use when a user provides a Figshare DOI or ndownloader URL and needs a reliable fetch path that always opens the page in browser, triggers the real download, then copies the downloaded file into a target path.

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 5 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    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
  1. Distinctive:

    Use this skill to fetch Figshare dataset files behind anti-bot checks.

    line 8
  2. Very specific:

    If already given an ndownloader URL, open it directly in browser.

    line 20
  3. Distinctive:

    Ensure file size is non-zero.

    line 27
  4. Very specific:

    Ensure extension/type matches expectation (.xlsx, .csv, etc.).

    line 28
  5. Very specific:

    Do not use web_fetch for this skill.

    line 32
  6. Distinctive:

    Do not run curl probing as part of this skill workflow.

    line 33
  7. Distinctive:

    Always use browser path first and keep it end-to-end.

    line 34
  8. Very specific:

    Always produce one final file at output_path.

    line 38
  9. Very specific:

    Keep the downloaded source file in ~/Downloads unchanged.

    line 39
  10. Distinctive:

    does not perform curl/web_fetch probing

    line 49

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Figshare Data Download

Use this skill to fetch Figshare dataset files behind anti-bot checks.

Workflow

  1. Normalize inputs:
  • item_or_file_url: DOI URL, item page URL, or ndownloader URL
  • output_path: final local path
  • expected_name: expected browser filename (optional)
  1. Resolve the file download link in browser:
  • Open the DOI/item page with browser tooling.
  • Find and click the dataset "Download" / "Download file" element.
  • If already given an ndownloader URL, open it directly in browser.
  1. Complete any browser challenge/verification and trigger the real file download.
  2. Copy the downloaded file from ~/Downloads to output_path.
  3. Verify output:
  • Ensure file size is non-zero.
  • Ensure extension/type matches expectation (.xlsx, .csv, etc.).

Decision Rules

  • Do not use web_fetch for this skill.
  • Do not run curl probing as part of this skill workflow.
  • Always use browser path first and keep it end-to-end.

Output Contract

  • Always produce one final file at output_path.
  • Keep the downloaded source file in ~/Downloads unchanged.
  • Report:
    • final path
    • file size
    • that the transfer used browser-only workflow

Script

  • scripts/figshare_data_download.py (browser-only helper)
    • supports semi-automatic flow: --open-browser + wait/poll in ~/Downloads + copy/verify
    • does not perform curl/web_fetch probing

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.