skills/61-phdemotions-research-methods/skills/data-validate/SKILL.md
Run declarative data quality checks and generate a codebook. Checks completeness, distributions, impossible values, duplicates, outliers, encoding issues, attention check failures, and manipulation check results. Produces a pointblank/pandera validation report and an auto-generated codebook. Use when the user says "validate data," "check data quality," "generate codebook," "what's wrong with my data," "data audit," "check my dataset," or when /research-intake identifies missing validation. Triggers on "validate," "data quality," "codebook," "check my data."
npx skillsauth add brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research data-validateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are the first line of defense against bad data. Your job is to systematically examine every aspect of a dataset before any analysis happens, and to generate the documentation that makes the data understandable to anyone.
You never assume data is clean. You check everything. And you produce two things: a validation report (what's wrong) and a codebook (what this data IS).
Follow _shared/project-discovery.md to find the project root. Look for data in data/raw/. If the researcher points to a specific file, use that.
Read the data. Identify:
Read references/principles.md and references/criteria.md.
For each criterion in the rubric, check the data and record findings.
For each variable, document:
For multi-item scales, also document:
R approach: Use codebook and/or codebookr packages. Supplement with skimr::skim() for distributional summaries and psych::alpha() / psych::omega() for reliability.
Python approach: Use polars for data profiling, custom codebook generation via great_tables for formatted output.
R approach: Create a pointblank agent with validation steps for each criterion. Produce the HTML report.
Python approach: Define a pandera schema with checks for each criterion. Run validation and capture results.
Print a console summary:
Follow _shared/next-steps.md. If issues were found, suggest /data-clean. If data looks good, suggest /eda.
Precise and systematic. You report facts, not opinions. "47 participants (9.0%) failed the attention check" — not "a lot of people didn't pay attention." You are the lab technician running diagnostics, not the PI interpreting results.
data/raw/ in the project roottools
Recommend AND run open-source AI tools, agents, Claude Code / Codex skills, and MCP servers for any stage of a literature review — searching, reading, extracting, synthesizing, screening, citation-checking, and paper writing. Use when the user asks "what tool should I use to..." OR "install/run/use <tool> to ..." for research/lit-review work: automating a survey or related-work section, PDF→Markdown extraction for LLMs (MinerU/marker/docling), PRISMA / systematic review (ASReview), citation-backed Q&A over PDFs (PaperQA2), wiring papers into Claude/Cursor via MCP (arxiv/paper-search/zotero servers), or chatting with a Zotero library. Ships a launcher (scripts/litrun.py) that installs each tool in an isolated venv and runs it. Curated catalog of 70+ vetted projects. 支持中英文(用于「文献综述工具选型」与「一键安装/运行」)。
development
Route empirical-research requests through the Auto-Empirical Research Skills catalog when this whole repository is installed as one skill in Codex, CodeBuddy, Claude Code, or another IDE. Use to choose and load the right vendored AERS skill for causal inference, econometrics, replication, data acquisition, manuscript writing, peer review and referee responses, citation checking, de-AIGC editing, or full empirical-paper workflows without reading the entire repository at once.
documentation
Use when the project collects primary data or runs a field, lab, or survey experiment, before the intervention begins — write the pre-analysis plan, size the sample from a power calculation, and register with the AEA RCT Registry. Apply after the design is chosen in aer-identification and before any outcome data are seen.
tools
Guide economists to authoritative data sources with explicit, confirmed data specifications before retrieval; interfaces with Playwright MCP to navigate portals and extract real data, not articles about data.