SkillsReviewed · ai4s-research

Open Science Domain Check

Domain Check is an AI-assistant skill for researchers and developers reviewing scientific code, but it catches only selected mistakes. It pairs assistant instructions with a local Python checker for scientific error patterns, with broader coverage for Python than for R.

Researched 16 Nov 2026

In short.

Domain Check is an AI-assistant skill for researchers and developers reviewing scientific code, but a clean result does not establish scientific correctness. Its companion script looks for recognizable mistakes involving units, geographic coordinates, genomic intervals, molecular strings, statistics and bioprocess analysis. Findings include severity, scientific category and source context. Coverage depends heavily on names and file-wide patterns, and several failures can silently leave checks incomplete. The resource was not run or tested; detection accuracy, speed and host integration remain unassessed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete captured runtime/skills/core/domain-check folder: SKILL.md and domain_check.py, plus the repository-level LICENSE supplied as a related notice. It excludes the wider application, host integration code, other skills and optional dependency implementations. The companion Python file is eligible for unchanged redistribution with the MIT notices. Nothing was executed, so runtime behavior, installation, reviewer-card rendering, detection accuracy and performance remain unassessed.

The overview

Identity

Domain Check lives in the runtime/skills/core/domain-check folder of ai4s-research/open-science. The resource consists of SKILL.md, which describes assistant use, and domain_check.py, which implements the checker. Original location: [https://github.com/ai4s-research/open-science/tree/master/runtime/skills/core/domain-check].

The skill describes use when someone requests scientific code review or when an enabled reviewer agent performs its checks. Its output is designed for an application's reviewer-card interface, while the script can also be invoked directly.

Assessment

This is a useful supplementary review layer for recognizable scientific mistakes that ordinary syntax checking can miss. The supplied implementation contains concrete rules rather than relying solely on an assistant remembering scientific conventions.

Its strongest practical limitation is incomplete visibility: an empty findings list can mean no recognized pattern, unsupported analysis, an unreadable file or a suppressed rule exception. Use findings to guide investigation and retain independent scientific review. No supplied execution results establish reliability.

Users

The intended audience includes researchers writing analysis code, developers supporting scientific assistants and reviewers checking generated scripts. Beginners receive explanations tied to source locations; experienced developers can inspect and extend the rules.

Users still need enough domain knowledge to assess whether a warning applies. Python users receive substantially more coverage than R users, and notebook users need to account for the script combining code cells before analysis.

Capabilities

Implemented checks cover mismatched dimension names and degree-valued trigonometric arguments; planar distance calculations using latitude and longitude; geographic operations without a visible coordinate reference system; BED interval lengths; strand handling; selected invalid molecular strings; repeated significance tests without correction markers; and numerical summaries of nominal category codes.

Bioprocess rules inspect unconstrained kinetic fits, oxygen-transfer calculations using raw dissolved oxygen, summaries of raw colony counts, missing statistical-assumption checks, first-order formulas used with curvature-oriented experimental designs and model fits mentioning multiple process scales.

Findings contain a severity level, domain tag, title and evidence text. The program prints one JSON object inside a review fence. When RDKit is available, molecular checking uses its SMILES parser instead of the narrower built-in bond counter.

Using it

Requirements

The companion checker requires Python and readable source files. Recognized file extensions are .py, .r, .R and .ipynb. Its core uses Python's standard library; RDKit is an optional dependency that changes molecular-checking coverage.

The checker contains no model client or network request and does not require an AI-provider account for direct use. Assistant integration requires a compatible host and model arrangement whose requirements are not established by these files. Supported Python versions, operating systems and hardware requirements are not documented in the supplied scope.

Mechanism

The script reads source text without executing the analyzed programs. For Python, it builds an abstract syntax tree: a structured representation of expressions, calls and identifiers. Rules combine this structure with variable-name conventions and text searches. R receives a smaller set of text-based checks.

Notebook code cells are joined into one source context, with R selected when the notebook's kernel-language metadata starts with r. Without explicit paths, the script recursively discovers supported files while excluding hidden paths and named directories such as virtual environments.

Each registered validator contributes findings. New disciplines can be added through another check function and a registry entry. Exceptions raised by individual validators are caught and silently skipped.

Setup

For direct use, obtain domain_check.py from the captured revision: [https://raw.githubusercontent.com/ai4s-research/open-science/a9e6302253ba7705a593dcd52d5102ea94411284/runtime/skills/core/domain-check/domain_check.py]. The documented invocation is python domain_check.py analysis.py notebook.ipynb analysis.R. Omitting file arguments requests discovery beneath the current directory.

For assistant integration, keep SKILL.md with its companion script. The skill's documented host command expects the script under $XDG_CONFIG_HOME/opencode/skills/domain-check/. Host installation, skill loading and reviewer-card rendering are not demonstrated in the supplied files. These are setup instructions derived from the source; they were not executed.

Example

Consider a Python source expression result = t_seconds + d_meters. The implemented rule recognizes seconds as time and meters as length, so this expression matches its dimensional-mismatch check. The expected finding has error severity, the physics · units tag and the source path and line.

This is an illustration derived from the implementation, not an observed result. Renaming those quantities to a and b would remove the unit-name evidence this rule needs, even if the underlying scientific mistake remained.

Assessment & evidence

Limitations

These rules recognize code patterns rather than establish scientific validity. Names, comments and unrelated text elsewhere in a file can affect detection. A correction marker can suppress the multiple-comparisons warning without demonstrating that the relevant tests were corrected. Merely supplying a bounds keyword suppresses the kinetics warning without checking whether its values enforce physical constraints.

The statistical-assumptions implementation is weaker than requiring both normality and variance checks: any one recognized call from either family suppresses that warning. Likewise, the experimental-design warning is suppressed by a recognized interaction or quadratic marker; this does not establish that an adequate response-surface model was fitted.

Three of the six registered validators—earth, social science and bioprocess—require a Python syntax tree; physics, biology and chemistry retain text-based fallbacks. R coverage is limited and Python parse failures remove much of the checking. Unreadable or unsupported files can produce no findings, malformed notebook JSON becomes empty source, and validator exceptions are silently ignored. Notebook line references address combined code rather than identify individual cells.

The command returns exit status zero even when findings have error severity. Automation must inspect the structured findings instead of treating process success as a scientific pass. False-positive rates, missed-error rates and performance are unknown.

Reasoning

The resource's value comes from making a limited set of scientific review questions repeatable and inspectable. Source-linked explanations can help researchers investigate familiar mistakes and give developers a transparent starting point for additional rules.

Deterministic output does not make the underlying heuristics complete. A sound decision combines these findings with the actual data, scientific assumptions, numerical checks and knowledgeable review. Silence should not increase confidence unless file coverage and applicable checks are independently understood.

Alternatives

For a focused molecular-validation task, direct RDKit parsing is an option already referenced by the implementation. For geographic calculations, the findings recommend an appropriate projected coordinate system, a haversine calculation or a geodesic method. These address particular scientific operations rather than provide the same assistant skill.

Domain-specific numerical tests and expert review provide complementary evidence about assumptions and results that source patterns cannot establish. The supplied files contain no comparative evaluation against other scientific review tools, so relative accuracy and coverage are unknown.

Evidence

The evidence consists of the complete supplied SKILL.md, companion Python implementation and repository LICENSE at revision a9e6302253ba7705a593dcd52d5102ea94411284. The instructions establish intended use, the code supports implementation-level observations and the licence establishes the stated reuse permissions.

Captured instructions: [https://raw.githubusercontent.com/ai4s-research/open-science/a9e6302253ba7705a593dcd52d5102ea94411284/runtime/skills/core/domain-check/SKILL.md]. Captured implementation: [https://raw.githubusercontent.com/ai4s-research/open-science/a9e6302253ba7705a593dcd52d5102ea94411284/runtime/skills/core/domain-check/domain_check.py]. Licence: [https://raw.githubusercontent.com/ai4s-research/open-science/a9e6302253ba7705a593dcd52d5102ea94411284/LICENSE].

No test suite, benchmark results or execution receipts are included in this scope. Documentation statements about speed and precision therefore remain unmeasured.

Access & freshness

Costs

The MIT licence grants permission free of charge. No subscription, usage price or paid API requirement is specified for the companion checker, and its source contains no payment or provider integration.

Total operating cost is unknown. Local computing, installation, support, optional dependencies and any assistant host or model may involve separate costs that the supplied evidence does not quantify.

Rights

The repository's MIT licence permits using, copying, modifying, distributing, sublicensing and selling the software. Copies or substantial portions must retain the copyright and permission notices. The software comes without warranty.

The notice identifies AI4S Workbench contributors as the copyright holder and warns that third-party scientific skills carry their own licences. No separate licence appears in the supplied Domain Check files. The optional RDKit dependency is not included in these files, and its licensing terms are not established here.

Freshness

The supplied capture time is 2026-11-16T01:19:23.202Z. The captured files are pinned to revision a9e6302253ba7705a593dcd52d5102ea94411284, making the described source identifiable even if the master branch changes.

The capture timestamp is not a release date or commit date. No release version or later source changes are established by the supplied evidence; behavior outside this revision is unknown.

Actions

Begin with explicit file paths so the intended coverage is clear. Review each finding against the scientific method and data, and independently confirm that the relevant files were readable and parseable. Validate expected findings and legitimate counterexamples on representative code before relying on the checker in routine work.

For automation, parse the findings and their severity rather than the exit status. Record whether RDKit is installed because it changes molecular-checking behavior. Pin the source revision for reproducibility and retain the required licence notices when copying or distributing the files.

Evidence for this report

LICENSEnotice · checked 2026-11-16
runtime/skills/core/domain-check/SKILL.mdselected · checked 2026-11-16