一键导入
data-analysis
Use when you need an end-to-end analysis pipeline: EDA, estimation, or publication output.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when you need an end-to-end analysis pipeline: EDA, estimation, or publication output.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when you need to compare a project .bib against a Paperpile project/topic folder to find uncited papers or unfiled entries.
Use when you need to extract citations from a PDF and generate a validated .bib file. Reads the PDF, identifies all referenced works, constructs BibTeX entries with metadata verification, then runs bib-validate.
Use when you need to check a LaTeX submission against a PDF assessment brief.
Use when you need to replicate a quantitative analysis in a second language (R↔Python↔Stata↔Julia) to verify correctness. Level 1 of the verification hierarchy.
Use when you need to challenge research assumptions or stress-test arguments.
Review user-facing documentation for accuracy, consistency, and completeness across private, public, nested repos, and the user manual. Use when docs feel stale, after major changes, or before sharing. (Replaces `repo-doc-audit`)
| name | data-analysis |
| description | Use when you need an end-to-end analysis pipeline: EDA, estimation, or publication output. |
| allowed-tools | Bash(uv*, Rscript*, R*, stata*, julia*, mkdir*, ls*, cp*), Read, Write, Edit, Glob, Grep, AskUserQuestion, Skill |
| argument-hint | [data-path or project-path] [--mode eda|estimation|full] |
| agent-dependencies | ["code-review"] |
| skill-dependencies | ["experiment-design"] |
Generate, execute, and verify analysis scripts across R, Python, Stata, and Julia.
| Mode | What it does | Phases |
|---|---|---|
| EDA | Exploratory data analysis only | 1–2 |
| Estimation | Estimation + publication output (requires locked design) | 1, 3–4 |
| Full | Complete pipeline | 1–5 |
Default: Full. Detect mode from user request or ask if ambiguous.
experiment-designsynthetic-datacausal-designproofread, latexshared/method-probing-questions.md — ask before running any analysisshared/validation-tiers.md — declare tier before examining resultsshared/escalation-protocol.md — escalate when methodology answers are vagueshared/distribution-diagnostics.md — mandatory DV checks before model selectionshared/engagement-stratified-sampling.md — stratify by engagement tiers for social media datashared/intercoder-reliability.md — per-category reliability for content analysis and LLM annotationCLAUDE.md, check for data/, code/, paper/ directories.shared/multi-language-conventions.md for the chosen language's conventions.data/raw/ or data/processed/. Never modify data/raw/ (per data-sensitivity rule). For social-media datasets, follow shared/engagement-stratified-sampling.md when constructing analysis samples.shared/validation-tiers.md. Tier dictates claim-strength language allowed in Phase 4 outputs and how strict the locked-design gate (step 5) is enforced.log/plans/, .context/project-recap.md, or MEMORY.md estimand registry. If running Estimation or Full mode and no design exists, stop and warn: "No locked research design found. Run experiment-design or causal-design first, or confirm the specification before proceeding." Use shared/method-probing-questions.md to probe gaps if the user pushes back on the gate.Generate and execute an EDA script that produces:
distribution_diagnostics() from shared/distribution-diagnostics.md on every DV and key IVs. Report skewness, zero proportion, overdispersion, and model recommendation. Flag if OLS is inappropriate.Output routing:
output/figures/ (not paper/figures/)output/tables/ as .csvcode/01_eda.R (or .py/.do/.jl)EDA mode stops here.
Gate check: Verify the research design is locked before proceeding. The specification (estimand, identifying assumptions, main model) must be documented. This enforces the design-before-results rule. If the user resists the gate, follow shared/escalation-protocol.md — escalate rather than accommodate. For analyses involving human or LLM coding (content analysis, annotation), require per-category reliability per shared/intercoder-reliability.md before estimation.
Generate estimation script(s) covering:
Read references/estimation-recipes.md for language-specific estimation patterns.
Output:
code/02_estimation.R (or equivalent)output/results/ as .rds/.pkl/.dta for downstream table generationGenerate publication-ready tables and figures. Read shared/publication-output.md for format standards and references/table-formatting.md for language-specific recipes.
.tex to paper/tables/paper/figures/ as PDF\newcommand definitions for key numbers referenced in textCritical rule: All numbers in .tex files must come from generated files via \input{}. Never hard-code results (per no-hardcoded-results rule). Scripts in code/, outputs in paper/ (per overleaf-separation rule).
Output script → code/03_tables_figures.R (or equivalent)
paper/tables/ and paper/figures/code-review agent on all generated scripts (auto-invoke via skill-routing mechanism)latex, or additional analysesEvery generated script follows this header template:
# ============================================================
# Script: [filename]
# Purpose: [one-line description]
# Inputs: [list of input files]
# Outputs: [list of output files]
# Dependencies: [packages used]
# Author: [from git config]
# Date: [today]
# ============================================================
| Resource | When read |
|---|---|
shared/multi-language-conventions.md | Phase 1 (language setup) |
shared/publication-output.md | Phase 4 (table/figure format) |
references/estimation-recipes.md | Phase 3 (estimation code patterns) |
references/econ-visualisation.md | Phase 2 & 4 (economics figure/table conventions) |
references/table-formatting.md | Phase 4 (language-specific table export) |
references/language-conventions.md | Phase 1 (additional language notes) |
design-before-results rule | Phase 3 gate check |
data-sensitivity rule | Phase 1 (data access) |
no-hardcoded-results rule | Phase 4 (output routing) |
overleaf-separation rule | Phase 4 (file placement) |
the code-review agent | Phase 5 (auto-invoked) |
experiment-design skill | Suggested if no design exists |
causal-design skill | Suggested if no design exists |
econ-plots skill | Economics-specific figures |
r-econometrics skill | R-specific estimation |
econ-data skill | Data download from public APIs |