[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75GJPR152ZB629NX6SYBEJ4":3,"skill-same:01M75GJPR152ZB629NX6SYBEJ4":91},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":63,"commitSha":64,"skillDirectory":65,"forksCount":66,"repositoryHtmlUrl":67,"repositoryHomepageUrl":6,"ownerHtmlUrl":68,"ownerBlogUrl":69,"ownerDescription":6,"updatedAt":70,"install":71,"resources":84},"01M75GJPR152ZB629NX6SYBEJ4","claw-semantic-sim",null,"Semantic Similarity Index for disease research literature using PubMedBERT embeddings","stanfish06\u002Fskillquarium","stanfish06","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F93099613?v=4","01M75F1CK4ZW109ZK3T26VN52F","Zhiyuan","01M75F1CM53VH6F79DZ8GXKKES",12,"MIT","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fclaw-semantic-sim\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: claw-semantic-sim\ndescription: Semantic Similarity Index for disease research literature using PubMedBERT embeddings\nlicense: MIT\nmetadata:\n  version: 0.1.0\n  author: Manuel Corpas\n  tags:\n  - health-equity\n  - semantic-analysis\n  - NLP\n  - PubMedBERT\n  - disease-neglect\n  openclaw:\n    requires:\n      bins:\n      - python3\n    always: false\n    emoji: 🔬\n    homepage: https:\u002F\u002Fgithub.com\u002FClawBio\u002FClawBio\n    os:\n    - darwin\n    - linux\n    install:\n    - kind: pip\n      package: torch\n    - kind: pip\n      package: transformers\n    - kind: pip\n      package: h5py\n    - kind: pip\n      package: umap-learn\n    - kind: pip\n      package: biopython\n    - kind: pip\n      package: networkx\n    trigger_keywords:\n    - semantic similarity\n    - disease neglect\n    - research gaps\n    - NTDs\n    - SII\n    - knowledge silo\n---\n\n# 🦖 Semantic Similarity Index\n\nMeasure how isolated or connected disease research is across the global biomedical literature, using PubMedBERT embeddings on PubMed abstracts spanning 175 GBD diseases.\n\n## What it does\n\n1. Takes a disease list (GBD taxonomy) as input\n2. Retrieves PubMed abstracts (2000-2025) for each disease with quality filtering\n3. Generates 768-dimensional PubMedBERT embeddings for every abstract\n4. Computes four semantic equity metrics per disease:\n   - **Semantic Isolation Index (SII)**: average cosine distance to k-nearest disease neighbours; higher = more isolated, less connected research\n   - **Knowledge Transfer Potential (KTP)**: cross-disease centroid similarity; higher = more potential for research spillover\n   - **Research Clustering Coefficient (RCC)**: within-disease embedding variance; higher = more diverse research approaches\n   - **Temporal Semantic Drift**: cosine distance between yearly centroids; measures how research focus evolves\n5. Generates publication-quality multi-panel figures:\n   - **Panel A**: Semantic isolation by disease category (boxplot)\n   - **Panel B**: Top 20 most semantically isolated diseases (bar chart, NTD\u002FGlobal South colour-coded)\n   - **Panel C**: Semantic isolation vs research volume (scatter with regression)\n   - **Panel D**: NTD vs non-NTD significance test (Welch's t-test, Cohen's d)\n6. Produces a markdown report with all metrics, rankings, and reproducibility bundle\n\n## Why this exists\n\nIf you ask ChatGPT to \"measure research neglect for diseases,\" it will:\n- Not know which embedding model to use for biomedical text\n- Hallucinate metrics that sound plausible but have no methodological grounding\n- Skip quality filtering (year coverage, abstract coverage, minimum papers)\n- Not handle MPS acceleration or checkpointed batch processing\n- Produce a single scatter plot with no disease classification\n\nThis skill encodes the correct methodological decisions:\n- Uses PubMedBERT (the gold-standard biomedical language model)\n- Fetches from PubMed with exponential backoff and NCBI rate limiting\n- Quality filters: year coverage >= 70%, abstract coverage >= 95%, minimum 50 papers\n- Batch embedding with Apple MPS acceleration and CPU fallback\n- Checkpointed processing (resume after interruption)\n- HDF5 storage with gzip compression and SHA-256 checksums\n- Classification against WHO NTD list and Global South priority diseases\n- Statistical significance testing (Welch's t-test, Cohen's d)\n\n## Key Finding\n\nNeglected tropical diseases (NTDs) are significantly more semantically isolated than other conditions (P \u003C 0.001, Cohen's d = 0.8+). They exist in knowledge silos with limited cross-disciplinary research bridges. The 25 most isolated diseases are disproportionately Global South priority conditions.\n\n## Pipeline\n\n```\n05-00-heim-sem-setup.py     # Validate environment, create directories\n05-01-heim-sem-fetch.py     # Retrieve PubMed abstracts (checkpointed)\n05-02-heim-sem-embed.py     # Generate PubMedBERT embeddings (MPS\u002FCPU)\n05-03-heim-sem-compute.py   # Compute SII, KTP, RCC, temporal drift\n05-04-heim-sem-figures.py   # Generate publication figures\n05-05-heim-sem-integrate.py # Merge with biobank + clinical trial dimensions\n```\n\n### Demo (works out of the box)\n\n```bash\npython semantic_sim.py --demo --output demo_report\n```\n\nThe demo uses pre-computed embeddings and metrics for 175 GBD diseases and generates the full 4-panel figure instantly.\n\n## Example Output\n\n```\nSemantic Similarity Index\n=========================\nDiseases analysed: 175\nTotal PubMed abstracts: 13,100,000\nEmbedding model: PubMedBERT (768-dim)\n\nMetric Ranges:\n  SII: 0.0412 - 0.1893\n  KTP: 0.6234 - 0.9187\n  RCC: 0.0891 - 0.3421\n\nKey Finding:\n  NTDs show +38% higher semantic isolation\n  P \u003C 0.0001, Cohen's d = 0.84\n  14\u002F25 most isolated diseases are Global South priority\n\nFigures saved to: demo_report\u002F\n  Fig5_Semantic_Structure.png (300 dpi)\n  Fig5_Semantic_Structure.pdf (vector)\n\nReproducibility:\n  commands.sh | environment.yml | checksums.sha256\n```\n\n## Interpretation Guide\n\n- **High SII**: Disease research exists in a knowledge silo; limited cross-disciplinary bridges\n- **Low KTP**: Research on this disease has few methodological overlaps with others\n- **High RCC**: Diverse research approaches within the disease (many subtopics)\n- **High Temporal Drift**: Research focus has shifted significantly over time\n- NTDs shown in **red**, Global South diseases in **orange**, others in **grey**\n- The scatter plot (Panel C) reveals the inverse relationship between research volume and isolation\n\n## Citation\n\nIf you use this skill in a publication, please cite:\n\n- Corpas, M. et al. (2026). HEIM: Health Equity Index for Measuring structural bias in biomedical research. Under review.\n- Corpas, M. (2026). ClawBio. https:\u002F\u002Fgithub.com\u002FClawBio\u002FClawBio\n","# 🦖 Semantic Similarity Index\n\nMeasure how isolated or connected disease research is across the global biomedical literature, using PubMedBERT embeddings on PubMed abstracts spanning 175 GBD diseases.\n\n## What it does\n\n1. Takes a disease list (GBD taxonomy) as input\n2. Retrieves PubMed abstracts (2000-2025) for each disease with quality filtering\n3. Generates 768-dimensional PubMedBERT embeddings for every abstract\n4. Computes four semantic equity metrics per disease:\n   - **Semantic Isolation Index (SII)**: average cosine distance to k-nearest disease neighbours; higher = more isolated, less connected research\n   - **Knowledge Transfer Potential (KTP)**: cross-disease centroid similarity; higher = more potential for research spillover\n   - **Research Clustering Coefficient (RCC)**: within-disease embedding variance; higher = more diverse research approaches\n   - **Temporal Semantic Drift**: cosine distance between yearly centroids; measures how research focus evolves\n5. Generates publication-quality multi-panel figures:\n   - **Panel A**: Semantic isolation by disease category (boxplot)\n   - **Panel B**: Top 20 most semantically isolated diseases (bar chart, NTD\u002FGlobal South colour-coded)\n   - **Panel C**: Semantic isolation vs research volume (scatter with regression)\n   - **Panel D**: NTD vs non-NTD significance test (Welch's t-test, Cohen's d)\n6. Produces a markdown report with all metrics, rankings, and reproducibility bundle\n\n## Why this exists\n\nIf you ask ChatGPT to \"measure research neglect for diseases,\" it will:\n- Not know which embedding model to use for biomedical text\n- Hallucinate metrics that sound plausible but have no methodological grounding\n- Skip quality filtering (year coverage, abstract coverage, minimum papers)\n- Not handle MPS acceleration or checkpointed batch processing\n- Produce a single scatter plot with no disease classification\n\nThis skill encodes the correct methodological decisions:\n- Uses PubMedBERT (the gold-standard biomedical language model)\n- Fetches from PubMed with exponential backoff and NCBI rate limiting\n- Quality filters: year coverage >= 70%, abstract coverage >= 95%, minimum 50 papers\n- Batch embedding with Apple MPS acceleration and CPU fallback\n- Checkpointed processing (resume after interruption)\n- HDF5 storage with gzip compression and SHA-256 checksums\n- Classification against WHO NTD list and Global South priority diseases\n- Statistical significance testing (Welch's t-test, Cohen's d)\n\n## Key Finding\n\nNeglected tropical diseases (NTDs) are significantly more semantically isolated than other conditions (P \u003C 0.001, Cohen's d = 0.8+). They exist in knowledge silos with limited cross-disciplinary research bridges. The 25 most isolated diseases are disproportionately Global South priority conditions.\n\n## Pipeline\n\n```\n05-00-heim-sem-setup.py     # Validate environment, create directories\n05-01-heim-sem-fetch.py     # Retrieve PubMed abstracts (checkpointed)\n05-02-heim-sem-embed.py     # Generate PubMedBERT embeddings (MPS\u002FCPU)\n05-03-heim-sem-compute.py   # Compute SII, KTP, RCC, temporal drift\n05-04-heim-sem-figures.py   # Generate publication figures\n05-05-heim-sem-integrate.py # Merge with biobank + clinical trial dimensions\n```\n\n### Demo (works out of the box)\n\n```bash\npython semantic_sim.py --demo --output demo_report\n```\n\nThe demo uses pre-computed embeddings and metrics for 175 GBD diseases and generates the full 4-panel figure instantly.\n\n## Example Output\n\n```\nSemantic Similarity Index\n=========================\nDiseases analysed: 175\nTotal PubMed abstracts: 13,100,000\nEmbedding model: PubMedBERT (768-dim)\n\nMetric Ranges:\n  SII: 0.0412 - 0.1893\n  KTP: 0.6234 - 0.9187\n  RCC: 0.0891 - 0.3421\n\nKey Finding:\n  NTDs show +38% higher semantic isolation\n  P \u003C 0.0001, Cohen's d = 0.84\n  14\u002F25 most isolated diseases are Global South priority\n\nFigures saved to: demo_report\u002F\n  Fig5_Semantic_Structure.png (300 dpi)\n  Fig5_Semantic_Structure.pdf (vector)\n\nReproducibility:\n  commands.sh | environment.yml | checksums.sha256\n```\n\n## Interpretation Guide\n\n- **High SII**: Disease research exists in a knowledge silo; limited cross-disciplinary bridges\n- **Low KTP**: Research on this disease has few methodological overlaps with others\n- **High RCC**: Diverse research approaches within the disease (many subtopics)\n- **High Temporal Drift**: Research focus has shifted significantly over time\n- NTDs shown in **red**, Global South diseases in **orange**, others in **grey**\n- The scatter plot (Panel C) reveals the inverse relationship between research volume and isolation\n\n## Citation\n\nIf you use this skill in a publication, please cite:\n\n- Corpas, M. et al. (2026). HEIM: Health Equity Index for Measuring structural bias in biomedical research. Under review.\n- Corpas, M. (2026). ClawBio. https:\u002F\u002Fgithub.com\u002FClawBio\u002FClawBio\n",{"name":5,"license":15,"metadata":24,"description":7},{"tags":25,"author":31,"version":32,"openclaw":33},[26,27,28,29,30],"health-equity","semantic-analysis","NLP","PubMedBERT","disease-neglect","Manuel Corpas","0.1.0",{"os":34,"emoji":37,"always":20,"install":38,"homepage":52,"requires":53,"trigger_keywords":56},[35,36],"darwin","linux","🔬",[39,42,44,46,48,50],{"kind":40,"package":41},"pip","torch",{"kind":40,"package":43},"transformers",{"kind":40,"package":45},"h5py",{"kind":40,"package":47},"umap-learn",{"kind":40,"package":49},"biopython",{"kind":40,"package":51},"networkx","https:\u002F\u002Fgithub.com\u002FClawBio\u002FClawBio",{"bins":54},[55],"python3",[57,58,59,60,61,62],"semantic similarity","disease neglect","research gaps","NTDs","SII","knowledge silo","master","49e49abf2f670d429e0b7e2c0349739c3fdd5cbe","skills\u002Fclaw-semantic-sim",5,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium","https:\u002F\u002Fgithub.com\u002Fstanfish06","https:\u002F\u002Fwww.stanfish.dev\u002F","2026-11-14 21:31:37",{"source":8,"skillName":5,"commands":72,"prompt":82,"zipAvailable":83},[73,76,79],{"tool":74,"command":75},"npx","npx skills add stanfish06\u002Fskillquarium --skill claw-semantic-sim",{"tool":77,"command":78},"bunx","bunx skills add stanfish06\u002Fskillquarium --skill claw-semantic-sim",{"tool":80,"command":81},"pnpm","pnpm dlx skills add stanfish06\u002Fskillquarium --skill claw-semantic-sim","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fclaw-semantic-sim\u002FSKILL.md",true,[85],{"path":86,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":89,"sourceHtmlUrl":90},"agents\u002Fopenai.yaml","REFERENCE","参考文档",170,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fclaw-semantic-sim\u002Fagents\u002Fopenai.yaml",[92,99,108,115,122,129],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M76ZJTRVA456GD7K8Y3EP82H","zarr-python","Stores and queries chunked N-D scientific arrays with Zarr-Python 3, including codecs, sharding, S3\u002FGCS storage, and NumPy\u002FDask\u002FXarray integration. Use for array layout, bounded I\u002FO, format migration, or scientific metadata preservation.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":103,"licenseFileUrl":104,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M76ZJQZ15Q1HKC5V85NHE325","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.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fyeet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":103,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":19},"01M76ZJ8ASZ4QYQ70Y6SBA4Z4S","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\u002FGRIB\u002FZarr files, climate\u002Fweather\u002Foceanographic datasets, remote sensing, geospatial imaging, large out-of-memory datasets with Dask, and labeled array operations.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fxarray\u002FSKILL.md",[],[],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":19},"01M76ZHFBXD6VXPQ02VCEG202B","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\u002Factual labels; generic Boolean, collection, string, numeric, null, identity, exception, hard-cast, and object[] checks; TestContext\u002Flifecycle; timeout\u002Fcancellation; OS\u002FCI 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\u002Fnon-.NET code.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwriting-mstest-tests\u002FSKILL.md",[],[],{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":19},"01M76ZDFDF4N88RH6HSYGS7GP2","wgs-prs","End-to-end WGS to polygenic risk score pipeline. Takes paired-end FASTQ files (or a pre-existing VCF) through nf-core\u002Fsarek for variant calling, applies VCF QC (normalisation, hard filtering, Ti\u002FTv and Het\u002FHom checks), then computes polygenic risk scores via the PGS Catalog. Fills the FASTQ to VCF gap upstream of the gwas-prs skill.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwgs-prs\u002FSKILL.md",[],[],{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":103,"licenseFileUrl":133,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":19},"01M76ZCC1SC68J42QK4MDC8RCG","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.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[]]