data-collection
Use when collecting data for a research project, downloading time series, building a dataset, accessing economic or social data APIs, or scraping da…
它会碰到什么
扫了多少2 个文本文件,15 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
Data Collection
Overview
This skill guides data collection from the research question to a versionable artifact in data/raw/. It is field-agnostic and open-ended about sources — the references/common-sources.md file is a starting point, not a boundary. For any research question, the skill uses web search to find appropriate sources beyond the common list.
When to Use
- "I need data on X"
- "Download the unemployment series"
- "Build a dataset of country-level GDP"
- "Scrape this website for paper data"
- "Where can I get data about Y?"
- Any new project's collection phase
Mandatory Steps
- Identify data needs from the research question. Variables, units (country, firm, individual, pixel), frequency, period, geography, and any necessary keys for merging across sources.
- Find appropriate sources. Start with
references/common-sources.md. If the user's needs are not covered there, search the web for the relevant source. Never invent a URL or API endpoint from memory.
- Prefer APIs over scraping. APIs are versioned, documented, and legal. Scraping is the last resort when no API is available.
- When scraping is necessary, be respectful:
- Check and honor
robots.txt - Rate limit — minimum one request per second, often slower
- Exponential backoff on errors (e.g., 1s, 2s, 4s, 8s, cap at 60s)
- Identifiable user agent with contact information
- Cache aggressively — never re-download unnecessarily
- Never scrape a source that explicitly prohibits automated access in its terms of service
- Save raw data in
data/raw/in a versionable format. Parquet is preferred for tabular data; CSV is acceptable for small datasets. Never edit raw files by hand.
- Document every dataset in
data/manifest.mdfollowing the format fromreplication-driven-research: name, source, URL or API endpoint, collection date, variables used, frequency, period, license or usage notes.
- Cache locally. Check
data/raw/before fetching. Only invoke the network if the file is missing or the user has explicitly requested a refresh.
Source Discovery Process
Follow this order when looking for a data source:
- Check
references/common-sources.mdfor known sources in the relevant domain. - Web-search for
"<topic>" open data APIor"<topic>" dataset download. - Check open science repositories: Harvard Dataverse, Zenodo, Open Science Framework, figshare.
- Check the topic's primary institutional source (central bank, statistical agency, international organization, regulatory body).
- If none of the above work, escalate to the user — manual acquisition may be required (e.g., contacting authors, subscribing to a database).
Anti-Patterns
- Scraping a source whose
robots.txtprohibits it - Hitting an API without rate limiting
- Re-downloading data that already exists in
data/raw/ - Raw data without a manifest entry
- Editing a raw data file manually to "fix" issues
- Collecting data without specifying the period and frequency upfront
- Trusting a URL invented from memory
- Merging datasets without documenting the merge keys
Verification Before Completion
- [ ] Data saved under
data/raw/in a versionable format (parquet preferred) - [ ] Manifest entry added for every new dataset
- [ ] Collection logic lives in a script under
code/, not an interactive session - [ ] Source license checked and recorded in the manifest
- [ ] Cache honored — no unnecessary re-downloads
- [ ] Rate limiting applied for scraping
- [ ] Raw files are untouched after initial download
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。
它属于哪个仓库
星标★ 3,829
本站分层T1
该仓技能数1161
原文件路径
skills/60-regisely-superpapers/skills/data-collection/SKILL.md同一个仓库里的其他技能
- Full-empirical-analysis-skill
- Full-empirical-analysis-skill-R
- Full-empirical-analysis-skill-Stata
- auto-empirical-research-skills
- StatsPAI_skill
- Full-empirical-analysis-skill
- Full-empirical-analysis-skill-Stata
- Full-empirical-analysis-skill-R
- academic-paper-composer
- academic-paper-strategist
- medical-imaging-review
- paper-slide-deck