一键导入
pipeline-audit
Adversarial data pipeline review — audits variable construction, sample restrictions, and analytical decisions against pre-analysis plans
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Adversarial data pipeline review — audits variable construction, sample restrictions, and analytical decisions against pre-analysis plans
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate or redesign academic Beamer slide decks that are clear, visually polished, compile-safe, and optimized for live presentation. Transforms existing slides or raw materials into a structured, well-paced, and professional presentation with robust layout and consistent visual design. Use this skill whenever the user mentions creating slides, beamer presentations, redesigning slides, improving slides, academic talk slides, conference presentations, seminar slides, making slides from tex, or fixing beamer slides -- even if they don't explicitly say "Beamer." Accepts .tex files, figures, and talk context (audience, length, venue, purpose) as inputs. Produces a compile-ready .tex file, organized figures folder, and presentation-ready deck as output.
Help researchers identify and catalog relevant datasets for empirical research. Use this skill whenever a user asks to find data, locate datasets, identify data sources, or asks "what data exists for...", "where can I get data on...", "is there a dataset that...", or similar. Also trigger when the user describes a research question and needs to know what data could support it, asks about data availability for a particular topic or geography, wants to compare data sources, or mentions needing panel data, cross-sectional data, or time-series data for a project. Trigger on mentions of "find data", "data search", "dataset", "data source", "microdata", "administrative data", "survey data", "public-use data", "restricted data", or when the user specifies parameters like time windows, geographic levels, or data frequency in the context of research. Also trigger when the user asks for help downloading, scraping, or structuring a dataset that has been identified.
Brainstorm and stress-test research ideas as a senior scholar colleague would. Runs a multi-turn dialogue that clarifies the seed question (or generates one from cold start), probes it conversationally, launches a parallel deep literature scan across published and working-paper sources, critiques the question adversarially, generates 2–3 alternative framings, assesses feasibility (delegating to the find-data skill when available), and writes a research brief to the working directory. Trigger when the user asks to brainstorm a research idea, stress-test a research question, workshop a project, develop a new paper idea, assess novelty of a question, evaluate whether an idea is worth pursuing, refine a research direction, or check whether an idea clears a top-journal bar. Also trigger on phrases like "brainstorm with me", "is this novel", "has anyone done this", "what should I work on", "help me think through this idea", "workshop this question", "stress-test this", "poke holes in this", "new research idea", "re
Structured code review for research code (Stata, R, Python) against DIME, Gentzkow-Shapiro, AEA, and IPA standards — catches silent failures, reproducibility risks, and style issues
Adversarial paper review simulating a skeptical referee — checks identification, statistical claims, robustness, and presentation against real referee patterns
| name | pipeline-audit |
| description | Adversarial data pipeline review — audits variable construction, sample restrictions, and analytical decisions against pre-analysis plans |
v1.0 — Adversarial reviewer that challenges data pipeline outputs, assumptions, and integrity. Complements /code-review (which reviews code quality) by testing what the code actually produced.
Review the outputs of a data cleaning or analysis pipeline by reading the data, checking for anomalies, and challenging the assumptions embedded in the pipeline. This is the "red team" for your data work.
Argument: $ARGUMENTS
data/for_analysis/)~/Dropbox/Github/[project]/)Modes (append to argument):
quick (default) — Scan outputs for red flags: duplicate IDs, unexpected missingness, implausible valuesdeep — Full adversarial review: all quick checks + cross-file consistency, merge integrity, distribution analysispre-submission — Publication-readiness check: all deep checks + AEA-style output verification, table-to-code tracingFlags:
scope:cleaning — Focus on cleaning pipeline outputs (raw -> for_analysis)scope:analysis — Focus on analysis outputs (regressions, tables)vars:consumption,assets — Focus on specific variable familiesbaseline:path/to/old.dta — Compare against a previous versionExample: /pipeline-audit ~/Dropbox/Github/graduation-coaching/data/for_analysis/ deep
Example: /pipeline-audit data/for_analysis/endline_analysis.dta quick vars:consumption
Example: /pipeline-audit bd-social scope:cleaning
$ARGUMENTS to find the target .dta file(s):
*.dta files, report count~/Dropbox/Github/[project]/data/for_analysis/, data/, output/AGENTS.md, CLAUDE.md, or README.md if available — look for:
docs/ or codebook/ directory exists, scan for data documentationParse mode and flags from $ARGUMENTS. Default to quick.
Write a temporary Python script for all checks (use uv run python or python3). Never use python -c.
For each .dta file:
_id)df[id_col].is_uniqueincome_total as string)For each numeric column:
Skip for quick mode.
_merge variables that survived into the output (should be dropped)_* that look like temporary leftoversSkip for quick mode.
This is the adversarial core. Challenge the pipeline's implicit assumptions:
wins, _w, _tr)Skip for quick and deep modes.
Save report to:
pipeline_audit_[YYYY-MM-DD].mdClassify each finding:
# Pipeline Audit: [project/directory]
**Date:** [YYYY-MM-DD]
**Mode:** [quick / deep / pre-submission]
**Files reviewed:** [N] .dta files ([total rows] observations, [total cols] variables)
**Reviewer:** /pipeline-audit v1.0
---
## Executive Summary
**Overall assessment:** [Clean / Minor Issues / Investigate / Significant Problems]
[2-3 sentences: what was checked, what was found, what needs attention]
**Red flags:** [N] | **Orange flags:** [N] | **Yellow flags:** [N] | **Clean checks:** [N]
---
## Red Flags
### RF1: [Title]
- **File:** [filename]
- **Issue:** [description]
- **Evidence:** [specific values, counts, or statistics]
- **Action:** [what to investigate or fix]
---
## Orange Flags
### OF1: [Title]
- **File:** [filename]
- **Issue:** [description]
- **Evidence:** [evidence]
- **Question:** [what to verify — phrased as a question for the PI]
---
## Yellow Flags
[Brief list format]
- **YF1:** [file] — [issue] — [why it might be OK]
---
## Clean Checks
| Check | Status | Notes |
|-------|--------|-------|
| ID uniqueness | PASS | [N] files, all unique on [hhid] |
| No empty files | PASS | All [N] files have data |
| No sentinel codes | PASS | No -99/-88/-77 in numeric columns |
| ... | ... | ... |
---
## File Inventory
| File | Rows | Cols | ID Column | Missing Rate | Notes |
|------|------|------|-----------|-------------|-------|
| [name] | [N] | [N] | [col] | [%] | [any flags] |
---
## Next Steps
1. [Highest-priority investigation]
2. [Second priority]
3. [Third priority]