with one click
science-bias-audit
// Systematic check of cognitive and methodological biases against current project state — threats to validity and blind spots. Use any time, especially before interpret-results or when a project feels too settled.
// Systematic check of cognitive and methodological biases against current project state — threats to validity and blind spots. Use any time, especially before interpret-results or when a project feels too settled.
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | science-bias-audit |
| description | Systematic check of cognitive and methodological biases against current project state — threats to validity and blind spots. Use any time, especially before interpret-results or when a project feels too settled. |
Converted from Claude command /science:bias-audit.
Before executing any research command:
Resolve project profile: Read science.yaml and identify the project's profile.
Use the canonical layout for that profile:
research → doc/, specs/, tasks/, knowledge/, papers/, models/, data/, code/software → doc/, specs/, tasks/, knowledge/, plus native implementation roots such as src/ and tests/Load role prompt: .ai/prompts/<role>.md if present, else references/role-prompts/<role>.md.
Load the science-research-methodology and science-scientific-writing Codex skills. If native skill loading is unavailable, use codex-skills/INDEX.md to map canonical Science skill names to generated skill files and source paths.
Read specs/research-question.md for project context when it exists.
Load project aspects: Read aspects from science.yaml (default: empty list).
For each declared aspect, resolve the aspect file in this order:
aspects/<name>/<name>.md — canonical Science aspects.ai/aspects/<name>.md — project-local aspect override or additionIf neither path exists (the project declares an aspect that isn't shipped with
Science and has no project-local definition), do not block: log a single line
like aspect "<name>" declared in science.yaml but no definition found — proceeding without it and continue. Suggest the user either (a) drop the
aspect from science.yaml, (b) author it under .ai/aspects/<name>.md, or
(c) align the name with one shipped under aspects/.
When executing command steps, incorporate the additional sections, guidance, and signal categories from loaded aspects. Aspect-contributed sections are whole sections inserted at the placement indicated in each aspect file.
Check for missing aspects: Scan for structural signals that suggest aspects the project could benefit from but hasn't declared:
| Signal | Suggests |
|---|---|
Files in specs/hypotheses/ | hypothesis-testing |
Files in models/ (.dot, .json DAG files) | causal-modeling |
Workflow files, notebooks, or benchmark scripts in code/ | computational-analysis |
Package manifests (pyproject.toml, package.json, Cargo.toml) at project root with project source code (not just tool dependencies) | software-development |
If a signal is detected and the corresponding aspect is not in the aspects list,
briefly note it to the user before proceeding:
"This project has [signal] but the
[aspect]aspect isn't enabled. This would add [brief description of what the aspect contributes]. Want me to add it toscience.yaml?"
If the user agrees, add the aspect to science.yaml and load the aspect file
before continuing. If they decline, proceed without it.
Only check once per command invocation — do not re-prompt for the same aspect if the user has previously declined it in this session.
Resolve templates: When a command says "Read .ai/templates/<name>.md",
check the project's .ai/templates/ directory first. If not found, read from
templates/<name>.md. If neither exists, warn the
user and proceed without a template — the command's Writing section provides
sufficient structure.
Resolve science CLI invocation: When a command says to run science,
prefer the project-local install path: uv run science <command>.
This assumes the root pyproject.toml includes science as a dev
dependency installed via uv add --dev --editable "$SCIENCE_TOOL_PATH"
(the distribution is science; the entry point it installs is science).
If that fails (no root pyproject.toml or science not in dependencies),
fall back to:
uv run --with <science-plugin-root>/science science <command>
Perform a systematic bias and threat-to-validity check against the current project state.
Use the user input to scope the audit to a specific hypothesis, inquiry, or pipeline. If no scope is provided, audit the most recently active area (most recently modified documents).
Follow the Science Codex Command Preamble before executing this skill. Use the research-assistant role prompt.
Additionally:
.ai/templates/bias-audit.md first; if not found, read templates/bias-audit.md.git log --oneline -10 --name-only -- doc/ specs/ models/)specs/hypotheses/doc/topics/doc/papers/doc/discussions/doc/interpretations/doc/searches/doc/plans/ (if applicable)doc/meta/pre-registration-*.md (if any exist).causal-modeling aspect is active, load causal DAGs from the knowledge graph.State clearly what is being audited and why. If the user didn't specify a scope, explain how you chose the focus area.
For each cognitive bias, assess based on the evidence you've read:
Confirmation bias:
Anchoring:
Availability bias:
Sunk cost:
Process bias:
git log --oneline -20 --format="%h %an %s (%cr)" to assess iteration pace and contributor diversity.Selection bias:
Survivorship bias:
HARKing (Hypothesizing After Results are Known):
science-pre-register.Multiple comparisons / p-hacking risk:
Confounding:
| Confound | Severity | Fixability | Mitigation |
|---|---|---|---|
| confound | HIGH/MED/LOW | EASY/HARD/INFEASIBLE | action |
This makes mitigation recommendations actionable — HIGH severity + EASY to fix should be addressed before running experiments; MED severity + INFEASIBLE should be acknowledged as limitations.
Publication bias:
Corpus independence (closure check):
When the audit covers multiple artifacts at once — e.g. a hypothesis, an analysis, and an evaluation set — verify that the audit corpus is not a subset of the audited corpus. If the evidence under review derives its standard from one of the artifacts being audited, the audit can only ratify, never falsify.
For each artifact under audit, answer:
If the answer to the third question is no, mark this as a HIGH-severity finding regardless of the other bias categories: the audit cannot generate disconfirming evidence by construction. Recommended mitigations: (a) introduce an out-of-corpus benchmark; (b) split the multi-artifact audit into single-artifact passes with independent evidence; (c) explicitly downgrade the audit's verdict from "validated" to "internally consistent."
Follow .ai/templates/bias-audit.md first, then templates/bias-audit.md, and fill all sections.
Save to doc/meta/bias-audit-<slug>.md.
doc/meta/bias-audit-<slug>.md.science-pre-register.science-compare-hypotheses to force consideration of alternatives.science-sketch-model.science tasks add.git add -A && git commit -m "doc: bias audit <slug>"Reflect on the template and workflow used above.
If you have feedback (friction, gaps, suggestions, or things that worked well), report each item via:
science feedback add \
--target "command:bias-audit" \
--category <friction|gap|guidance|suggestion|positive> \
--summary "<one-line summary>" \
--detail "<optional prose>"
Guidelines:
--target "template:<name>" instead