Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计提醒

maestro-fetch大师抓取

Agent Skill

maestro-fetch 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

186

周安装

8

GitHub Stars

公开资料未说明

下载量

65
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:maestro-fetch(大师抓取)
来源仓库:https://github.com/maestro-ai-stack/maestro-fetch
仓库路径:skills/maestro-fetch
安装命令:
npx skills add https://github.com/maestro-ai-stack/maestro-fetch --skill maestro-fetch
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/maestro-ai-stack/maestro-fetch --skill maestro-fetch

简介

用于查找、检索和筛选相关信息。maestro-fetch 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适合根据关键词或任务场景快速定位候选结果。
  • 可结合来源仓库和 README 核验具体用法。
  • 安装前建议确认权限范围和维护状态。
  • 注意是否会触发联网或命令执行。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

maestro-fetch — Universal File Acquisition

Role in the Pipeline

maestro-fetch does ONE thing: get the file to disk.

URL  →  maestro-fetch  →  ~/.maestro/cache/<filename>
                                     ↓
                          maestro-data-analyst
                          maestro-data-qa
                          maestro-data-ocr
                          (any downstream skill)

It does NOT clean, transform, or analyze. Once raw_path exists, hand off.

Recommended Usage Pattern

Step 1 — Acquire (maestro-fetch)

from maestro_fetch import fetch
import asyncio

result = asyncio.run(fetch("https://any-url.com/data.xlsx"))
print(result.raw_path)   # ~/.maestro/cache/data.xlsx  ← hand this off

Or via CLI:

maestro-fetch "https://example.com/data.xlsx"
# raw file saved to ~/.maestro/cache/data.xlsx
# prints markdown preview to stdout

Step 2 — Process (downstream skill)

import pandas as pd

# Downstream script receives raw_path and works from there
df = pd.read_excel(result.raw_path)   # or pd.read_csv(...)
# ... cleaning, analysis, QA

The handoff contract: result.raw_path is the only thing maestro-fetch guarantees downstream. result.tables and result.content are convenience previews, not the authoritative output.


URL Auto-Detection

URL PatternAdapterWhat Gets Downloaded
pan.baidu.com/s/*BaiduPanxlsx/csv from share (playwright + PCS OAuth)
dropbox.com/*Cloudresolved file
drive.google.com/*Cloudresolved file
docs.google.com/document/d/*Cloudexported as.txt
docs.google.com/spreadsheets/d/*Cloudexported as.csv
docs.google.com/presentation/d/*Cloudexported as.pdf
youtube.com/watch*Mediaaudio transcript
*.zip *.gz *.tar *.bz2 *.7zBinarystreamed to disk, progress bar, cache-hit skip
*.shp *.nc *.geotiff *.tifBinarygeospatial binary — streamed
*.parquet *.feather *.h5 *.ncBinarydata science binary — streamed
*.dta *.sas7bdat *.rdsBinarystats software binary — streamed
*.pdfDocPDF file
*.xlsx, *.csvDocspreadsheet file
Everything elseWebHTML → markdown (crawl4ai; httpx fallback)

Adapter priority: BaiduPan > Cloud > Binary > Doc > Web

Binary adapter features:

  • HEAD request → Content-Length → cache hit detection (skip re-download if size matches)
  • Streaming (1 MB chunks) → safe for files >500 MB (no OOM)
  • Range-resume with auto-retry (up to 5×): sends Range: bytes=N- on reconnect; appends if server returns 206, restarts if 200 (no Range support)
  • ASCII progress bar with size/percentage
  • 1-hour read timeout for slow servers
  • Covers: .zip.gz.tar.bz2.7z.rar.shp.nc.tiff.parquet.feather.h5.dta.sas7bdat.rds.npy and more

CLI Reference

# Download any URL — raw file to ~/.maestro/cache/
maestro-fetch "https://example.com/data.xlsx"

# Save parsed CSV to a specific directory
maestro-fetch "https://example.com/data.xlsx" --output csv --output-dir ./out/

# Batch (one URL per line)
maestro-fetch dummy --batch urls.txt --output-dir ./data/

# Custom cache location
maestro-fetch "https://..." --cache-dir /tmp/myproject/

Default cache: ~/.maestro/cache/ (global, shared across projects)


Python SDK Reference

from maestro_fetch import fetch, batch_fetch

# Single URL
result = await fetch("https://any-url.com/data")
result.raw_path      # Path — the downloaded file (authoritative output)
result.tables        # list[pd.DataFrame] — convenience parse (may be empty)
result.content       # str — markdown preview
result.source_type   # "web" | "doc" | "cloud" | "media" | "baidu_pan"
result.metadata      # dict — adapter-specific info

# Batch with concurrency
results = await batch_fetch(urls, concurrency=10)

# Custom timeout / headers
result = await fetch(url, timeout=120, headers={"User-Agent": "my-app"})

Baidu Pan (百度网盘) Share Links

One-time setup — triggers automatically on first use:

maestro-fetch "https://pan.baidu.com/s/1xxxxx?pwd=abcd"
# Browser opens → log in → OAuth token saved to ~/.bypy/bypy.json

Usage:

maestro-fetch "https://pan.baidu.com/s/1xxxxx?pwd=abcd"
# Downloads primary data file (xlsx > xls > csv > json > pdf) from share
# Saved to ~/.maestro/cache/<filename>

How it works:

  1. Opens share URL in playwright persistent browser (~/.maestro_fetch/playwright_profile)
  2. Intercepts share/list XHR (before goto) to get filename
  3. Clicks 保存到网盘 (silently skips if already saved)
  4. PCS API + OAuth token → dlink → download bytes
  5. Share is a directory → recurse, pick primary data file

Pitfalls (hard-won):

  • wait_until="networkidle" times out — Baidu SPA polls continuously, use domcontentloaded
  • bdstoken not in static HTML (SPA) — playwright handles CSRF automatically, never try to extract bdstoken via httpx
  • dlink download requires ?access_token= suffix AND User-Agent: pan.baidu.com
  • Share always saves to pan root / (not configurable); _resolve_dlink searches root then recurses dirs

Installation

pip install -e .          # editable install from repo root
maestro-fetch --help      # CLI available after install
from maestro_fetch import fetch   # Python SDK

MCP Server (Claude Code)

Configured in ~/.claude/settings.json:

{
  "mcpServers": {
    "maestro-fetch": {
      "command": "$VENV/bin/python",
      "args": ["-m", "maestro_fetch.interfaces.mcp_server"]
    }
  }
}

MCP tools: fetch_url, batch_fetch_urls, detect_url_type

IMPORTANT: curl and wget are DENIED. Always use maestro-fetch for any URL download task.


Key Rules

  1. maestro-fetch acquires; downstream skills process — do not mix
  2. raw_path is the handoff contract; tables/content are previews only
  3. No API key needed for core fetch; LLM key only for schema= extraction (rarely needed)
  4. Default cache ~/.maestro/cache/ is global — do not use per-project relative paths
  5. For Open-Meteo long date ranges: chunk into ≤365-day segments

Built-in Public Sources — Additional Notes

data.gov.sg (Singapore Open Data Portal)

  • Base URL: https://data.gov.sg/api/action/
  • Search datasets: package_search?q=<keyword>
  • Download: datastore_search?resource_id=<id>&limit=50000&offset=<N>
  • Rate limiting: Aggressive 429 errors — use 5s delays, exponential backoff
  • Pagination: Use offset param; repeat until records < limit
  • GeoJSON boundaries: Direct URL download (no pagination needed)
  • Auth: None required
  • License: Singapore Open Data Licence v1.0 (free for any use with attribution)

Zenodo / Figshare Large File Downloads

  • Zenodo CDN does NOT support HTTP Range requests — responds HTTP 200 (full file) instead of 206 (partial). Never attempt resume/append: always overwrite from scratch or you get a corrupted file (double-size, binary garbage appended).
  • DocAdapter streams all binary files from scratch (no Range header), so this does not affect maestro-fetch internal behavior.
  • Zenodo API for file list: curl https://zenodo.org/api/records/{id}files[].links.self for content URLs
  • Figshare API: curl https://api.figshare.com/v2/articles/{id}files[].download_url
  • Both services redirect to CDN URLs; Content-Disposition header on redirect contains the real filename.

NASA Earthdata (SEDAC, LP DAAC, etc.)

  • Auth via ~/.netrc: machine urs.earthdata.nasa.gov login <user> password <pass>
  • curl usage: curl -L --netrc-file ~/.netrc -c /tmp/ed_cookies.txt -b /tmp/ed_cookies.txt -o out.zip <URL>
  • Token API: curl -u user:pass https://urs.earthdata.nasa.gov/api/users/tokens[{"access_token": "..."}]
  • SEDAC China datasets: PERMANENTLY UNAVAILABLE (2026). CIESIN contract ended 2025-04-30; S3 buckets empty; all 3 China datasets (population census, agricultural stats, county socioeconomic) return HTTP 404. Do NOT attempt download — use USDA FAS PSD or SciDB as alternatives.
  • Other SEDAC datasets (non-China) may still work via Earthdata Cloud; check search.earthdata.nasa.gov first.
  • Download status page: https://search.earthdata.nasa.gov/downloads/{order_id} — get order via Earthdata Search UI.

SciDB (scidb.cn / sciencedb.cn) — Chinese National Science Data

  • Vue.js SPA: file list uses v-lazy lazy loading — files NOT visible in initial HTML, only rendered after scroll/click.
  • Download mechanism (from JS bundle reverse engineering):

- fileDown(item)genDownloadUrl(item.id)window.open(url) - Download URL = https://china.scidb.cn/download?fileId=<item.id> (note: china.scidb.cn, NOT www.scidb.cn) - window.open() opens a NEW TAB — page.on("response") does NOT capture this; use context.on("page") to intercept the popup - OR extract item.id directly from Vue component tree via __vue__.$children walk (no click needed)

  • API endpoints that work:

- File listing: POST https://www.scidb.cn/api/gin-sdb-filetree/public/file/childrenFileListByPath body {dataSetId, version, path, lastIndex, pageSize} — returns empty if version unknown - Dataset info: GET /api/sdb-dataset-service/dataset/details/<id> requires auth (PERMISSION NO ACCESS without login)

  • API endpoints broken: /api/dataset/v2/en/detail returns 404; /api/sdb-dataset-service/public/dataset/details/<id> returns 404.
  • Required approach: Use playwright + DOM manipulation:

1. Navigate to https://www.scidb.cn/en/detail?dataSetId=<id> with waitUntil="domcontentloaded" (NOT networkidle — Nuxt.js polls) 2. Expand file tree: click .v-treeview-node__toggle; wait 2s 3. Read file list from .fileTree innerText (filename on one line, MD5:<hash> (<size> KB) on next) 4. For each file: walk __vue__.$children to find node with matching item.label, get item.id; construct download URL 5. Download via GET https://china.scidb.cn/download?fileId=<id> with httpx (redirects to CDN)

  • Reusable script template: scripts/download_scidb.py in RAD-20260211-0001 project — copy-adapt for new SciDB datasets. Supports --doi, --dataset-id, --pattern, --list flags.
  • Auth: CC BY 4.0 public datasets download without login.
  • Dataset ID format: DS_<hex32> or via DOI redirect: doi.org/10.57760/sciencedb.<id> → final URL contains dataSetId= query param.
  • File naming: datasets contain 数据实体.xlsx, 数据文档.docx, 数据样例.xlsx, 缩略图.jpg; download only 数据实体.xlsx.

FAOSTAT (FAO Agricultural Statistics)

  • WARNING: FAOSTAT backend is frequently down (HTTP 521 "Web server is down")
  • Direct bulk download URL returns 403 (hotlink blocked): fenixservices.fao.org/faostat/static/bulkdownloads/*.zip
  • Fallback 1 (best): USDA FAS PSD — same data, always available:

- Grains only: https://apps.fas.usda.gov/psdonline/downloads/psd_grains_pulses_csv.zip (2.8MB) - All commodities: https://apps.fas.usda.gov/psdonline/downloads/psd_alldata_csv.zip (10MB) - Columns: Commodity_Description, Country_Name, Market_Year, Attribute_Description, Value, Unit_Description - Yield unit: MT/HA (multiply ×1000 for kg/ha) - Filter: Attribute_Description == 'Yield' + country + crop

  • Fallback 2: World Bank API (national cereal yield only):

- https://api.worldbank.org/v2/country/CN/indicator/AG.YLD.CREL.KG?format=json&per_page=100&mrv=40

  • Limitation: both fallbacks are national-level only. Province-level yield requires NBS yearbooks (Chinese, manual extraction).

Gotchas (Hard-Won)

File extension cannot be trusted

Downloaded files may have wrong extensions. SciDB .xls files have been observed to contain OOXML .docx content (Word document with metadata/logos, not spreadsheet data). Always verify:

import magic  # python-magic
mime = magic.from_file(str(raw_path), mime=True)
# Expected: 'application/vnd.ms-excel' or 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
# Got: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' → wrong!

Fallback without python-magic: try pd.read_excel() and catch exceptions; or check first 4 bytes (PK\x03\x04 = zip-based Office, then inspect [Content_Types].xml inside).

Downloaded archive may contain applications, not data

Example: nongzuowu.zip (105MB) from a Chinese agricultural statistics site contained a complete Java Spring Boot web application (RuoYi framework) with embedded CSV files, not a standalone dataset. The CSV files inside were national+provincial only (no county-level data), making the entire download useless for the intended purpose. Rule: After downloading any archive, immediately inspect its contents (zipfile.namelist() or tar tf) before assuming it contains the expected data format. Check file sizes, directory structure, and sample content.

Zenodo CDN ignores Range headers (reminder)

Zenodo responds HTTP 200 (full file) to Range requests instead of 206 (partial). Never attempt resume/append — you get a corrupted double-size file. Always download from scratch or verify file size matches expected before use.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.95%
按下载量换算23

Claude

30.05%
按下载量换算20

Cursor

19.34%
按下载量换算13

Gemini CLI

8.61%
按下载量换算6

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills