Core Runner
Use this sub-skill when a request concerns installing ClawBio, listing or
running a registered skill, using the stable Python API, creating or reusing a
patient profile, composing the full profile run, or interpreting run outputs
and replay metadata. This is the execution and provenance layer, not the
scientific method used by an individual domain skill.
Route by task
- Installation, wheel-versus-checkout behavior, or public imports: read
api-reference.md.
clawbio list, clawbio run, clawbio upload, flags, path resolution, or
structured failures: read cli-reference.md.
report.md, result.json, profile persistence, checksums, audit records, or
reproducibility/: read
output-and-reproducibility.md.
- A failed install, missing input, stale profile, output collision, or replay:
read troubleshooting.md.
- To inspect an already-created output without changing it, run
scripts/check_output_contract.py with
--help first.
Operating procedure
- Confirm whether the caller has an installed package or a source checkout;
do not assume the checkout-only skill tree is available in a wheel.
- For a direct single-skill run, select exactly one input mode:
--demo,
--input, or a patient --profile. Choose a fresh, writable output
directory for durable artifacts.
- For personal genotype data, prefer
clawbio upload --input ... once, then
reuse the generated profile. Verify the profile path and checksum before a
chain of analyses.
- Treat
run_skill(...) as a structured boundary: inspect success,
exit_code, stderr, output_dir, and files; then inspect the promoted
result.json/report.md fields when present. Never infer scientific
findings from an exit code alone.
- Require the output contract appropriate to the selected skill. The common
contract is a report plus structured result; reproducibility files are
skill-dependent rather than guaranteed for every run.
- On failure, preserve the returned error and fix the stated input, profile,
output, dependency, or timeout issue. Do not bypass the runner's per-skill
extra-flag allowlist or pass raw patient data to network services.
Stable contracts
The public package exports run_skill, list_skills, upload_profile, and
__version__. list_skills() prints a human-readable registry and returns the
registry mapping. upload_profile(...) creates a JSON PatientProfile with
parsed genotypes, source metadata, and a SHA-256 checksum. run_skill(...)
launches the selected registered skill and returns a structured result; the
virtual full-profile skill runs the configured genotype-consuming chain and
writes pipeline_summary.json.
Input paths are made absolute before subprocess execution. A profile can supply
the original input path when it is still present; a missing stored input does
not recreate the source data. Relative output paths resolve from the caller's
current working directory. Existing directories are reusable, but an existing
file at the output path or an uncreatable directory is a preflight failure.
Use a fresh directory when comparing replayed artifacts.
Keep these boundaries clear:
- Domain-routing skills own scientific interpretation and method choice.
- Pipeline/integration skills own network services and Nextflow behavior.
- Skill-authoring rules own how new domain skills are written.
- This sub-skill owns invocation, state transfer, output/provenance inspection,
and safe failure handling.
1---2name: core-runner3description: "Operate the ClawBio installation, CLI, public Python runner,4 patient profiles, output contracts, and reproducibility bundles safely."5disable-model-invocation: true6metadata:7 source: https://skillmd.com/skills/vectorspacelab/core-runner8 disco-role: operating9license: NOASSERTION10---1112# Core Runner1314Use this sub-skill when a request concerns installing ClawBio, listing or15running a registered skill, using the stable Python API, creating or reusing a16patient profile, composing the full profile run, or interpreting run outputs17and replay metadata. This is the execution and provenance layer, not the18scientific method used by an individual domain skill.1920## Route by task2122- Installation, wheel-versus-checkout behavior, or public imports: read23 [api-reference.md](references/api-reference.md).24- `clawbio list`, `clawbio run`, `clawbio upload`, flags, path resolution, or25 structured failures: read [cli-reference.md](references/cli-reference.md).26- `report.md`, `result.json`, profile persistence, checksums, audit records, or27 `reproducibility/`: read28 [output-and-reproducibility.md](references/output-and-reproducibility.md).29- A failed install, missing input, stale profile, output collision, or replay:30 read [troubleshooting.md](references/troubleshooting.md).31- To inspect an already-created output without changing it, run32 [scripts/check_output_contract.py](scripts/check_output_contract.py) with33 `--help` first.3435## Operating procedure36371. Confirm whether the caller has an installed package or a source checkout;38 do not assume the checkout-only skill tree is available in a wheel.392. For a direct single-skill run, select exactly one input mode: `--demo`,40 `--input`, or a patient `--profile`. Choose a fresh, writable output41 directory for durable artifacts.423. For personal genotype data, prefer `clawbio upload --input ...` once, then43 reuse the generated profile. Verify the profile path and checksum before a44 chain of analyses.454. Treat `run_skill(...)` as a structured boundary: inspect `success`,46 `exit_code`, `stderr`, `output_dir`, and `files`; then inspect the promoted47 `result.json`/`report.md` fields when present. Never infer scientific48 findings from an exit code alone.495. Require the output contract appropriate to the selected skill. The common50 contract is a report plus structured result; reproducibility files are51 skill-dependent rather than guaranteed for every run.526. On failure, preserve the returned error and fix the stated input, profile,53 output, dependency, or timeout issue. Do not bypass the runner's per-skill54 extra-flag allowlist or pass raw patient data to network services.5556## Stable contracts5758The public package exports `run_skill`, `list_skills`, `upload_profile`, and59`__version__`. `list_skills()` prints a human-readable registry and returns the60registry mapping. `upload_profile(...)` creates a JSON `PatientProfile` with61parsed genotypes, source metadata, and a SHA-256 checksum. `run_skill(...)`62launches the selected registered skill and returns a structured result; the63virtual `full-profile` skill runs the configured genotype-consuming chain and64writes `pipeline_summary.json`.6566Input paths are made absolute before subprocess execution. A profile can supply67the original input path when it is still present; a missing stored input does68not recreate the source data. Relative output paths resolve from the caller's69current working directory. Existing directories are reusable, but an existing70file at the output path or an uncreatable directory is a preflight failure.71Use a fresh directory when comparing replayed artifacts.7273Keep these boundaries clear:7475- Domain-routing skills own scientific interpretation and method choice.76- Pipeline/integration skills own network services and Nextflow behavior.77- Skill-authoring rules own how new domain skills are written.78- This sub-skill owns invocation, state transfer, output/provenance inspection,79 and safe failure handling.