AGENT SKILL

profile-report

Unified personal genomic profile report — reads a PatientProfile JSON and synthesizes all skill results into a single "Your Genomic Profile" document.

License 许可
MIT
最近更新
2026-11-14
Stars
★ 12
Forks
5

01 前言 Front Matter

name
profile-report
license
MIT
metadata
{ "tags": [ "profile", "report-synthesis", "personal-genomics" ], "author": "Manuel Corpas", "version": "0.1.0", "openclaw": { "os": [ "darwin", "linux" ], "emoji": "📋", "always": false, "homepage": "https://github.com/ClawBio/ClawBio", "requires": { "bins": [ "python3" ] }, "trigger_keywords": [ "profile report", "unified report", "my profile", "genomic profile", "personal profile" ] } }
description
Unified personal genomic profile report — reads a PatientProfile JSON and synthesizes all skill results into a single "Your Genomic Profile" document.

02 资源文件 7

03 SKILL.md 正文

📋 Profile Report

[!note] Running these commands in this vault The CLI examples below are written for the upstream ClawBio repo layout, where skills live under skills/ and a clawbio.py orchestrator exists. This flat skills vault has no clawbio.py: run the script directly and drop the skills/ prefix — e.g. python profile-report/profile_report.py .... The clawbio.py run full-profile pipeline requires the upstream ClawBio repo.

You are Profile Report, a specialised ClawBio agent for generating unified personal genomic profile reports. Your role is to read a populated PatientProfile JSON file and synthesize all skill results into a single human-readable markdown document.

Why This Exists

  • Without it: A user who has run PharmGx, NutriGx, PRS, and Genome Compare has four separate reports with no cross-referencing
  • With it: One unified document that highlights cross-domain insights (e.g., CYP1A2 appears in both PGx and caffeine metabolism)
  • Why ClawBio: Reads validated skill outputs only — never re-computes or hallucinates results

Core Capabilities

  1. Profile Loading: Read and validate PatientProfile JSON files, identifying which skills have been run
  2. Report Synthesis: Combine results from pharmgx, nutrigx, prs, and genome-compare into a unified report
  3. Cross-Domain Insights: Identify connections between skill results (e.g., CYP1A2 in both PGx and caffeine metabolism)
  4. Graceful Degradation: Produce a useful report even when only some skills have been run

Input Formats

Format Extension Required Fields Example
PatientProfile JSON .json metadata, genotypes, skill_results profiles/PT001.json

Workflow

  1. Load Profile: Read and validate the PatientProfile JSON
  2. Identify Skills: Determine which skill results are available (pharmgx, nutrigx, prs, compare)
  3. Generate Sections: Render each skill section using its result.json data; show placeholder for missing skills
  4. Cross-Domain Insights: Scan for genes/variants that appear across multiple skill results
  5. Executive Summary: Generate a top-level summary with key findings and action items
  6. Assemble Report: Combine all sections with header, summary, skill details, insights, and disclaimer

CLI Reference

# From a populated PatientProfile JSON
python skills/profile-report/profile_report.py \
  --profile <profile.json> --output <report_dir>

# Demo mode (pre-built 4-skill profile)
python skills/profile-report/profile_report.py --demo --output /tmp/profile_demo

# Via ClawBio runner
python clawbio.py run profile --demo
python clawbio.py run profile --profile profiles/PT001.json --output <dir>

Demo

python clawbio.py run profile --demo

Expected output: A unified report combining PharmGx (12 genes, 51 drugs), NutriGx (40 SNPs, 13 dietary domains), PRS (polygenic risk for selected traits), and Genome Compare (IBS vs George Church + ancestry). Includes an executive summary and cross-domain insights section.

Output Structure

output_directory/
├── profile_report.md    # Unified markdown report
│   ├── Executive Summary
│   ├── Pharmacogenomics (from pharmgx)
│   ├── Nutrigenomics (from nutrigx)
│   ├── Polygenic Risk Scores (from prs)
│   ├── Genome Comparison (from compare)
│   ├── Cross-Domain Insights
│   └── Disclaimer
└── result.json          # Machine-readable result envelope

Dependencies

Required:

  • Python 3.10+ (standard library only)

Safety

  • Local-first: No data upload — reads local profile JSON only
  • No re-computation: Reads existing skill outputs; never re-runs analyses
  • Disclaimer: Included in every report
  • Graceful degradation: Missing skills produce informative placeholders, not errors

Integration with Bio Orchestrator

Trigger conditions — the orchestrator routes here when:

  • User asks for "profile report", "personal profile", or "my profile"
  • User wants a unified view of all their genomic results

Chaining partners:

  • full-profile pipeline: Run python clawbio.py run full-profile first (pharmgx → nutrigx → prs → compare), then profile-report
  • Individual skills: Run any combination of pharmgx, nutrigx, prs, compare, then profile-report to unify

04 同仓库更多 Skills

stanfish06
stanfish06/skillquarium

zarr-python

Stores and queries chunked N-D scientific arrays with Zarr-Python 3, including codecs, sharding, S3/GCS storage, and NumPy/Dask/Xarray integration. Use for array layout, bounded I/O, format migration, or scientific metadata preservation.

★ 12
stanfish06
stanfish06/skillquarium

yeet

Publish local changes to GitHub by confirming scope, committing intentionally, pushing the branch, and opening a draft PR through the GitHub app from this plugin, with `gh` used only as a fallback where connector coverage is insufficient.

★ 12
stanfish06
stanfish06/skillquarium

xarray

N-dimensional labeled arrays and datasets in Python. Built on top of NumPy and Dask. It introduces labels in the form of dimensions, coordinates, and attributes on top of raw NumPy-like arrays, making data analysis in physical sciences more intuitive and less error-prone. Use for working with multi-dimensional scientific data, NetCDF/GRIB/Zarr files, climate/weather/oceanographic datasets, remote sensing, geospatial imaging, large out-of-memory datasets with Dask, and labeled array operations.

★ 12
stanfish06
stanfish06/skillquarium

writing-mstest-tests

Use when asked to fix, rewrite, update, improve, modernize, show corrected code for, or explain existing MSTest tests or MSTest-specific configuration. Use for "review" when corrected code or edits are wanted, even for one pasted assertion or passing tests with bad failure output. Covers expected/actual labels; generic Boolean, collection, string, numeric, null, identity, exception, hard-cast, and object[] checks; TestContext/lifecycle; timeout/cancellation; OS/CI conditions, retry, cleanup, parallelization, MSTest.Sdk project setup, and MSTESTxxxx. Honor the installed MSTest version. DO NOT USE to design new test cases (code-testing), perform report-only audits, create project files rather than explain MSTest setup, run tests, migrate frameworks, or handle non-MSTest/non-.NET code.

★ 12
stanfish06
stanfish06/skillquarium

wgs-prs

End-to-end WGS to polygenic risk score pipeline. Takes paired-end FASTQ files (or a pre-existing VCF) through nf-core/sarek for variant calling, applies VCF QC (normalisation, hard filtering, Ti/Tv and Het/Hom checks), then computes polygenic risk scores via the PGS Catalog. Fills the FASTQ to VCF gap upstream of the gwas-prs skill.

★ 12
stanfish06
stanfish06/skillquarium

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

★ 12