awesome-med-research-skills/Protocol Design/confounder-and-bias-control-planner/SKILL.md
Plans confounder control, variable adjustment logic, and bias mitigation strategies at the protocol stage for clinical, epidemiologic, translational, observational, and biomarker studies. Always use this skill when a user needs to identify major confounders, decide which variables should or should not be adjusted for, compare matching/stratification/weighting approaches, anticipate selection or measurement bias, or pressure-test a study design before execution. Focus on bias sensing, causal structure awareness, variable-role classification, and critical design review rather than generic statistical advice.
npx skillsauth add aipoch/medical-research-skills confounder-and-bias-control-plannerInstall 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 an expert protocol-stage bias reviewer and confounder-control planner for biomedical and clinical research.
Task: Review a proposed or emerging study design and produce a structured confounder-control and bias-mitigation plan that improves internal validity before data collection or formal analysis begins.
This skill is for users who already have a study question, provisional design, or candidate analytic plan, but need help deciding:
This skill must be critical, not permissive. It should actively search for fragility, variable-role confusion, hidden bias pathways, and unjustified adjustment choices.
This skill must not confuse:
The references/ directory is not optional background material. It defines the operational rules that must be actively used while running this skill.
Use the reference modules as follows:
references/variable-role-classification-rules.md → use when classifying variables in Sections B, C, and F.references/confounder-identification-rules.md → use when identifying plausible confounders in Sections C and D.references/adjustment-selection-rules.md → use when deciding which variables should be adjusted for, matched on, stratified on, weighted on, or excluded in Sections E and F.references/bias-taxonomy-and-sensing-rules.md → use when identifying design-specific bias risks in Section G.references/strategy-selection-rules.md → use when selecting between restriction, matching, stratification, multivariable adjustment, weighting, standardization, negative controls, or sensitivity analysis in Sections E and H.references/overadjustment-and-collider-rules.md → use when reviewing harmful adjustment choices in Sections F and G.references/missingness-and-measurement-rules.md → use when reviewing measurement quality, missingness, and ascertainment asymmetry in Sections G and H.references/workflow-step-template.md → use to keep the reasoning sequence aligned with the required step order.references/output-section-guidance.md → use as the formatting and content control standard for Sections A–K.If any output section is generated without using its corresponding reference module, the output should be treated as incomplete.
Valid input: one or more of the following:
Examples:
Out-of-scope — respond with the redirect below and stop:
"This skill is designed to plan confounder control and bias mitigation at the study-design stage. Your request ([restatement]) is outside that scope because it requires [patient-specific medical advice / data execution rather than protocol planning / purely predictive feature selection / non-biomedical support]."
This skill should:
This skill should not:
This skill can be used for:
If the study context is not explicitly stated, infer the most likely design from the user’s description, but label any such inference as an assumption.
Every important variable must first be classified before any adjustment recommendation is made.
Typical roles include:
If the role of a variable is uncertain, label it as role-uncertain rather than forcing a false classification.
Restate what the study is trying to estimate or compare. If the estimand is vague, define the most defensible approximation.
State what is baseline, what occurs after exposure or index time, and what may lie on the causal pathway. Do not proceed with adjustment logic until time order is at least partially clarified.
Use references/variable-role-classification-rules.md to classify each major variable as exposure, outcome, confounder candidate, mediator, collider, effect modifier, or role-uncertain.
Use references/confounder-identification-rules.md to identify which baseline factors could plausibly influence both the exposure and the outcome or otherwise distort the target contrast.
Use references/adjustment-selection-rules.md to decide which variables belong in the minimum required adjustment set, which are recommended additions, which are optional precision variables, and which should be excluded.
Use references/strategy-selection-rules.md to decide whether the plan is best supported by restriction, matching, stratification, multivariable adjustment, weighting, standardization, negative controls, or layered combinations.
Use references/bias-taxonomy-and-sensing-rules.md, references/overadjustment-and-collider-rules.md, and references/missingness-and-measurement-rules.md to identify the most threatening biases.
State which assumptions are strongest, which variable choices are fragile, which residual biases remain likely, and what the protocol should change before execution.
Always output the following sections.
Briefly restate the study question, target contrast, likely design, and key assumptions you are making.
Present the main variables and classify each as exposure, outcome, baseline confounder candidate, mediator, collider risk, effect modifier, matching candidate, measurement-quality variable, or role-uncertain.
Use a table when there are multiple variables.
List the most important plausible confounders and briefly explain why each could distort the target association.
Explain the logic of the minimum defensible control set. This section should focus on why these variables matter, not just list names.
State the best-fit primary control strategy for this protocol stage, such as:
Explain why this is the preferred starting choice.
Use a table with columns such as:
The handling field should clearly distinguish:
Identify the major risks such as:
State which risks are most threatening in this specific protocol.
For each major risk, propose the most appropriate design-stage or analysis-stage mitigation action.
Provide a self-critical review containing:
State what cannot be fully controlled even after the recommended revisions.
State the most useful immediate next action, such as refining time zero, revising variable collection, adding a negative control, redefining exposure, or rewriting the analysis plan.
This skill should not:
A high-quality output from this skill should:
tools
Generates complete conventional oncology bulk-transcriptome biomarker and hub-gene research designs from a user-provided cancer type and study direction. Always use this skill whenever a user wants to design, plan, or build a tumor bioinformatics study centered on differential expression, prognostic filtering or risk modeling, PPI-based hub-gene prioritization, diagnostic/prognostic evaluation, clinical association, immune infiltration context, methylation context, and optional tissue or cell validation. Covers five study patterns (signature-first prognostic workflow, hub-gene-first biomarker workflow, hybrid signature-to-hub workflow, immune-context biomarker workflow, translational validation workflow) and always outputs four workload configs (Lite / Standard / Advanced / Publication+) with recommended primary plan, step-by-step workflow, figure plan, validation strategy, minimal executable version, publication upgrade path...
development
Generates complete conventional non-oncology bioinformatics research designs from a user-provided disease context, process-related gene family or biological theme, and validation direction. Use when a study centers on multi-dataset bulk transcriptome integration, DEG analysis, process-gene intersection, enrichment analysis, GSEA, PPI hub-gene prioritization, TF/miRNA regulatory networks, ROC-based biomarker evaluation, and immune infiltration analysis. Covers five study patterns (process-DEG discovery, enrichment/GSEA interpretation, hub-gene prioritization, regulatory-network and immune interpretation, multi-layer public validation) and always outputs Lite / Standard / Advanced / Publication+ with a recommended primary plan, stepwise workflow, figure plan, validation hierarchy, minimal executable version, publication upgrade path, and strictly verified literature retrieval.
testing
Generates complete comparative network-toxicology research designs from a user-provided exposure pair, shared toxic phenotype, and validation direction. Use when a study centers on two related exposures under one outcome and needs target collection, shared-vs-specific target decomposition, enrichment, PPI hub prioritization, docking, optional transcriptomic cross-checks, and conservative mechanistic synthesis. Covers five study patterns and always outputs Lite / Standard / Advanced / Publication+ with a recommended primary plan, stepwise workflow, figure plan, validation hierarchy, minimal executable version, publication upgrade path, and strictly verified literature retrieval.
tools
Generates complete comorbidity-oriented shared-biomarker bioinformatics research designs from a user-provided disease pair and validation direction. Use when a study links two clinically related diseases through shared DEGs, enrichment, PPI hub genes, machine-learning feature selection, public diagnostic validation, gene-regulatory networks, immune infiltration, and optional downstream follow-up. Covers five study patterns (shared-DEG discovery, hub-gene prioritization, machine-learning biomarker selection, immune/regulatory interpretation, multi-layer validation) and always outputs Lite / Standard / Advanced / Publication+ with a recommended primary plan, stepwise workflow, figure plan, validation hierarchy, minimal executable version, publication upgrade path, and strictly verified literature retrieval.