[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75WW2F5NX4PNAVNHF9S7FFP":3,"skill-same:01M75WW2F5NX4PNAVNHF9S7FFP":102},{"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":79,"commitSha":80,"skillDirectory":81,"forksCount":82,"repositoryHtmlUrl":83,"repositoryHomepageUrl":6,"ownerHtmlUrl":84,"ownerBlogUrl":85,"ownerDescription":86,"updatedAt":87,"install":88,"resources":101},"01M75WW2F5NX4PNAVNHF9S7FFP","claw-semantic-sim",null,"Semantic Similarity Index for disease research literature using PubMedBERT embeddings","aAAaqwq\u002Fopenclaw-team","aAAaqwq","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F163369189?v=4","01M75WCZBK64XMP4RKNQB2ZV08","Daniel Li","01M75WCZCCEHPJV69BNPNXJY9E",2,"MIT","https:\u002F\u002Fgithub.com\u002FaAAaqwq\u002Fopenclaw-team\u002Fblob\u002Fmain\u002Fworkspace\u002Freferences\u002Fagi-super-team\u002Fskills\u002Fclaw-semantic-sim\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: claw-semantic-sim\nversion: 0.1.0\ndescription: Semantic Similarity Index for disease research literature using PubMedBERT embeddings\nauthor: Manuel Corpas\nlicense: MIT\ntags:\n  - health-equity\n  - semantic-analysis\n  - NLP\n  - PubMedBERT\n  - disease-neglect\ninputs:\n  - name: diseases\n    type: file\n    format: [json, csv]\n    description: List of diseases with GBD taxonomy identifiers\n  - name: pubmed-cache\n    type: directory\n    format: directory\n    description: Optional pre-fetched PubMed abstracts (skips retrieval if provided)\noutputs:\n  - name: figure\n    type: file\n    format: [png, pdf]\n    description: Multi-panel figure showing semantic isolation landscape, disease rankings, and NTD analysis\n  - name: report\n    type: file\n    format: markdown\n    description: Semantic analysis report with isolation scores, knowledge transfer metrics, and temporal drift\n  - name: metrics\n    type: file\n    format: json\n    description: Machine-readable metrics for all diseases (SII, KTP, RCC, temporal drift)\nmetadata:\n  openclaw:\n    category: bioinformatics\n    homepage: https:\u002F\u002Fgithub.com\u002FClawBio\u002FClawBio\n    min_python: \"3.11\"\n    dependencies:\n      - torch\n      - transformers\n      - pandas\n      - numpy\n      - h5py\n      - scikit-learn\n      - umap-learn\n      - matplotlib\n      - seaborn\n      - biopython\n      - networkx\n      - tqdm\n    system_dependencies: []\n    hardware:\n      - Apple Silicon MPS recommended (CPU fallback available)\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,"tags":24,"author":30,"inputs":31,"license":15,"outputs":43,"version":57,"metadata":58,"description":7},[25,26,27,28,29],"health-equity","semantic-analysis","NLP","PubMedBERT","disease-neglect","Manuel Corpas",[32,39],{"name":33,"type":34,"format":35,"description":38},"diseases","file",[36,37],"json","csv","List of diseases with GBD taxonomy identifiers",{"name":40,"type":41,"format":41,"description":42},"pubmed-cache","directory","Optional pre-fetched PubMed abstracts (skips retrieval if provided)",[44,50,54],{"name":45,"type":34,"format":46,"description":49},"figure",[47,48],"png","pdf","Multi-panel figure showing semantic isolation landscape, disease rankings, and NTD analysis",{"name":51,"type":34,"format":52,"description":53},"report","markdown","Semantic analysis report with isolation scores, knowledge transfer metrics, and temporal drift",{"name":55,"type":34,"format":36,"description":56},"metrics","Machine-readable metrics for all diseases (SII, KTP, RCC, temporal drift)","0.1.0",{"openclaw":59},{"category":60,"hardware":61,"homepage":63,"min_python":64,"dependencies":65,"system_dependencies":78},"bioinformatics",[62],"Apple Silicon MPS recommended (CPU fallback available)","https:\u002F\u002Fgithub.com\u002FClawBio\u002FClawBio","3.11",[66,67,68,69,70,71,72,73,74,75,76,77],"torch","transformers","pandas","numpy","h5py","scikit-learn","umap-learn","matplotlib","seaborn","biopython","networkx","tqdm",[],"main","f3f3769d02e636b7fc3aa4bb845009943b252e8f","workspace\u002Freferences\u002Fagi-super-team\u002Fskills\u002Fclaw-semantic-sim",0,"https:\u002F\u002Fgithub.com\u002FaAAaqwq\u002Fopenclaw-team","https:\u002F\u002Fgithub.com\u002FaAAaqwq","https:\u002F\u002Fdaniel-li-portfolio.pages.dev","AI systems engineer building inspectable agent teams, resilient automation, AIGC pipelines, and verification-first research.","2026-06-18 10:28:29",{"source":8,"skillName":5,"commands":89,"prompt":99,"zipAvailable":100},[90,93,96],{"tool":91,"command":92},"npx","npx skills add aAAaqwq\u002Fopenclaw-team --skill claw-semantic-sim",{"tool":94,"command":95},"bunx","bunx skills add aAAaqwq\u002Fopenclaw-team --skill claw-semantic-sim",{"tool":97,"command":98},"pnpm","pnpm dlx skills add aAAaqwq\u002Fopenclaw-team --skill claw-semantic-sim","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FaAAaqwq\u002Fopenclaw-team\u002Fblob\u002Fmain\u002Fworkspace\u002Freferences\u002Fagi-super-team\u002Fskills\u002Fclaw-semantic-sim\u002FSKILL.md",true,[],[103,110,117,125,132,139],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":19},"01M75ZHJYAK0DZSDVCBTJ2T6M0","vedic-astrology","A Vedic astrology (Jyotish) analyzer based on the Indian Jyotish tradition, using the Sidereal\nzodiac to read birth charts. Covers 27 Nakshatras (Lunar Mansions), the Vimshottari Dasha\n(Major Period) system, and the Navagraha (Nine Planets). Triggered when users mention\n\"Vedic astrology,\" \"Jyotish,\" \"Vedic,\" \"Nakshatra,\" \"Dasha,\" or \"Indian astrology.\"\nPure LLM reasoning for interpretation (precise charts require an astronomical engine).\nNo external API required.\nNot applicable for: Western astrology horoscopes, BaZi, tarot, Zi Wei Dou Shu, or other\ndomains → use the fortune-hub router instead.","https:\u002F\u002Fgithub.com\u002FaAAaqwq\u002Fopenclaw-team\u002Fblob\u002Fmain\u002Fworkspace\u002Fskills\u002Fvedic-astrology\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":19},"01M75ZGWAPH5ZXQXE9EVW13DYD","tracking-crypto-prices","Track real-time cryptocurrency prices across exchanges with historical data and alerts.\nProvides price data infrastructure for dependent skills (portfolio, tax, DeFi, arbitrage).\nUse when checking crypto prices, monitoring markets, or fetching historical price data.\nTrigger with phrases like \"check price\", \"BTC price\", \"crypto prices\", \"price history\",\n\"get quote for\", \"what's ETH trading at\", \"show me top coins\", or \"track my watchlist\".","https:\u002F\u002Fgithub.com\u002FaAAaqwq\u002Fopenclaw-team\u002Fblob\u002Fmain\u002Fworkspace\u002Fskills\u002Ftracking-crypto-prices\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":121,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":19},"01M75ZCSEPN43PZCMJF3QG5940","risk-assessment","Framework-directable information security risk assessment. Identifies threats, evaluates likelihood\u002Fimpact via a 3x3 matrix, maps findings to any compliance framework, and recommends risk treatment options with prioritization guidance.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FaAAaqwq\u002Fopenclaw-team\u002Fblob\u002Fmain\u002Fworkspace\u002Fskills\u002Frisk-assessment\u002FSKILL.md",[],[],{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":19},"01M75ZC27KCZMJHQ25ZWC0YRE2","qimen-dunjia","奇门遁甲排盘分析器，基于洛书九宫四层盘面体系（天盘九星、地盘三奇六仪、人盘八门、神盘八神），\n支持时家奇门排盘，用于择时决策和事项预测。当用户提及「奇门遁甲」「奇门」「遁甲」「择时」\n「奇门排盘」「奇门预测」时触发。排盘为确定性计算 + LLM 综合解读，无外部 API 依赖。\n不适用于：梅花易数、六爻易经、风水分析、八字命理、塔罗占卜等其他领域 → 建议使用 fortune-hub 路由。","https:\u002F\u002Fgithub.com\u002FaAAaqwq\u002Fopenclaw-team\u002Fblob\u002Fmain\u002Fworkspace\u002Fskills\u002Fqimen-dunjia-oracle\u002FSKILL.md",[],[],{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":138,"publishedAt":19},"01M75Z9ERP9C8N1E446MDXRMZN","negotiation","Tactical negotiation framework based on Chris Voss's \"Never Split the Difference.\" Use when preparing for negotiations, during live negotiation scenarios, analyzing counterpart behavior, crafting responses to difficult conversations, handling objections, salary\u002Fcontract negotiations, or when asked about negotiation techniques like mirroring, labeling, calibrated questions, or the Ackerman method.","https:\u002F\u002Fgithub.com\u002FaAAaqwq\u002Fopenclaw-team\u002Fblob\u002Fmain\u002Fworkspace\u002Fskills\u002Fnegotiation\u002FSKILL.md",[],[],{"skillNo":140,"name":141,"nameZh":6,"description":142,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":143,"categories":144,"keywords":145,"publishedAt":19},"01M75Z8S064PEAZACP8QPAXKQ4","meihua-yishu","梅花易数占卜工具，属于 fortune-telling-skills 运势测算套件。基于邵雍《梅花易数》体系，\n支持时间起卦、数字起卦、文字起卦等多种起卦方式，通过体用五行生克关系判断吉凶。\n起卦为确定性计算 + LLM 断卦解读，无外部 API 依赖。\n触发词：梅花易数、起卦、占卜、卦象、体用、八卦占卜、帮我起一卦、算一卦。\n不适用于：星座运势、塔罗占卜、八字命理 → 建议使用 fortune-hub。","https:\u002F\u002Fgithub.com\u002FaAAaqwq\u002Fopenclaw-team\u002Fblob\u002Fmain\u002Fworkspace\u002Fskills\u002Fmeihua-yishu-divination\u002FSKILL.md",[],[]]