بنقرة واحدة
experiment-design
Use when you need power analysis, pre-analysis plans, QSF parsing, or survey design.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Use when you need power analysis, pre-analysis plans, QSF parsing, or survey design.
التثبيت باستخدام 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 | experiment-design |
| description | Use when you need power analysis, pre-analysis plans, QSF parsing, or survey design. |
| allowed-tools | Bash(uv*, Rscript*, R*, mkdir*, ls*), Read, Write, Edit, Glob, Grep, AskUserQuestion |
| argument-hint | [--mode power|design|pap|survey] [qsf-file or project-path] |
Interview-driven design workflow producing design documents, power analysis scripts, and pre-analysis plans.
| Mode | What it produces | Entry point |
|---|---|---|
| Power | Power analysis script + sample size table | "How many participants do I need?" |
| Design | Full design document (hypotheses, conditions, measures, randomization) | "Design my experiment" |
| PAP | Pre-analysis plan (AEA/OSF/EGAP format) | "Write a PAP" |
| Survey | Structured survey specification from natural language or QSF | "Build a survey" / "Parse my Qualtrics" |
Default: Design. If user provides a .qsf file, auto-select Survey mode.
.qsf file to understand its structuredata-analysiscausal-designsynthetic-datashared/method-probing-questions.md — ask before designing (Experiments/RCTs, Survey sections)shared/validation-tiers.md — tier determines required power and pre-registrationshared/escalation-protocol.md — escalate when design has validity threatsshared/engagement-stratified-sampling.md — stratify social media samples by engagementshared/intercoder-reliability.md — reliability planning for content analysis designsRead references/power-analysis-recipes.md for language-specific code patterns.
DeclareDesign/pwr) or Python (statsmodels.stats.power)code/power_analysis.R (or .py), results to output/power_analysis_results.mdHPC escalation: If the power analysis uses Monte Carlo simulation (e.g., DeclareDesign with >10k replications, or a multi-design sweep), move execution to [HPC cluster] — drop the simulation script into hpc/ with templates/slurm/array.sbatch (array over seeds/designs). The SHA-logging snippet in the template pins results to the DGP version. See docs/guides/hpc.md.
If the user doesn't know the expected effect size, guide them:
| Source | How to use |
|---|---|
| Prior literature | "What did similar studies find?" |
| Pilot data | Calculate from pilot descriptives |
| SESOI | "What's the smallest effect worth detecting?" |
| Domain norms | Cohen's benchmarks as absolute last resort (small=0.2, medium=0.5, large=0.8 for d) |
Never default to Cohen's benchmarks without acknowledging they are arbitrary.
docs/experiment-design.md or project-appropriate locationMEMORY.md Estimand Registry (if project has one) or flag for the user to lock before analysisThis design document is what data-analysis Phase 3 checks for before allowing estimation.
Read references/pap-template.md for the full template structure.
docs/, log/plans/, or .context/docs/pre-analysis-plan.md (or .tex if user prefers LaTeX)Survey mode is a first-class capability with two entry points: QSF parsing and natural language construction.
When user provides a Qualtrics .qsf file:
references/qsf-parsing-guide.md for type mapping:
references/known-scales-registry.md)When user describes an experiment in natural language:
references/survey-design-checklist.md)references/known-scales-registry.md for validated scales matching the constructsRead references/survey-design-checklist.md for the full checklist. Key checks:
| Resource | When read |
|---|---|
references/power-analysis-recipes.md | Power mode |
references/pap-template.md | PAP mode |
references/survey-design-checklist.md | Survey mode (quality checks) |
references/identification-strategies.md | Design mode (identification check) |
references/qsf-parsing-guide.md | Survey mode (QSF parsing) |
references/known-scales-registry.md | Survey mode (scale recognition) |
design-before-results rule | Design + PAP modes produce the locked design |
data-analysis skill | Consumes the design document |
causal-design skill | For observational identification (not experiments) |
synthetic-data skill | For generating pilot data |