[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75M33V0T0WCMC380N7VSHW7":3,"skill-same:01M75M33V0T0WCMC380N7VSHW7":47},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M75M33V0T0WCMC380N7VSHW7","lifelines",null,"Complete survival analysis library in Python. Handles right-censored data, Kaplan-Meier curves, and Cox regression. Standard for clinical trial analysis and epidemiology.","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\u002Flifelines\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: lifelines\ndescription: Complete survival analysis library in Python. Handles right-censored data, Kaplan-Meier curves, and Cox regression. Standard for clinical trial analysis and epidemiology.\nversion: 0.28\nlicense: MIT\n---\n\n# Lifelines - Survival Analysis\n\nIn medicine, we often care about \"Time to Event\" (death, recovery, relapse). Lifelines handles the complexity of \"censored\" data (patients who left the study).\n\n## When to Use\n\n- Analyzing clinical trial data (time to death, disease progression).\n- Comparing survival between treatment groups.\n- Identifying risk factors using Cox Proportional Hazards regression.\n- Building survival models for prognosis.\n- Epidemiology studies (time to infection, recovery).\n\n## Core Principles\n\n### Censoring\n\nPatients who haven't experienced the event by the end of the study are \"censored\". Lifelines properly accounts for this.\n\n### Hazard Ratios\n\nIn Cox regression, a hazard ratio > 1 means increased risk; \u003C 1 means decreased risk.\n\n### Survival Curves\n\nKaplan-Meier estimates the probability of survival over time without assuming a distribution.\n\n## Quick Reference\n\n### Standard Imports\n\n```python\nfrom lifelines import KaplanMeierFitter, CoxPHFitter\nfrom lifelines.statistics import logrank_test\nimport pandas as pd\n```\n\n### Basic Patterns\n\n```python\n# 1. Kaplan-Meier (Visualizing survival)\nkmf = KaplanMeierFitter()\nkmf.fit(durations=df['days'], event_observed=df['died'])\nkmf.plot_survival_function()\nkmf.median_survival_time_  # Time when 50% have died\n\n# 2. Cox Proportional Hazards (Risk factors)\ncph = CoxPHFitter()\ncph.fit(df, duration_col='days', event_col='died')\ncph.print_summary() # See hazard ratios for age, drug type, etc.\ncph.plot_partial_effects_on_outcome(covariates=['age'], values=[30, 50, 70])\n```\n\n## Critical Rules\n\n### ✅ DO\n\n- **Use event_observed correctly** - 1 = event occurred, 0 = censored.\n- **Check proportional hazards assumption** - Use `cph.check_assumptions()` to validate Cox model.\n- **Compare groups with logrank test** - Statistical test for survival curve differences.\n- **Plot confidence intervals** - Survival estimates have uncertainty, especially with small samples.\n\n### ❌ DON'T\n\n- **Don't ignore censoring** - Treating censored patients as \"survived\" biases results.\n- **Don't use regular regression** - Time-to-event data requires specialized methods.\n- **Don't assume proportional hazards** - If violated, use stratified Cox or parametric models.\n\n## Advanced Patterns\n\n### Comparing Multiple Groups\n\n```python\nfrom lifelines.statistics import multivariate_logrank_test\n\n# Compare survival across treatment groups\nresults = multivariate_logrank_test(df['days'], df['group'], df['died'])\nprint(results.p_value)\n```\n\n### Parametric Models\n\n```python\nfrom lifelines import WeibullFitter, ExponentialFitter\n\n# When you need to extrapolate beyond observed data\nwf = WeibullFitter()\nwf.fit(df['days'], df['died'])\nwf.plot()\n```\n\nLifelines transforms complex survival data into actionable medical insights, enabling evidence-based decisions in clinical research and practice.\n","# Lifelines - Survival Analysis\n\nIn medicine, we often care about \"Time to Event\" (death, recovery, relapse). Lifelines handles the complexity of \"censored\" data (patients who left the study).\n\n## When to Use\n\n- Analyzing clinical trial data (time to death, disease progression).\n- Comparing survival between treatment groups.\n- Identifying risk factors using Cox Proportional Hazards regression.\n- Building survival models for prognosis.\n- Epidemiology studies (time to infection, recovery).\n\n## Core Principles\n\n### Censoring\n\nPatients who haven't experienced the event by the end of the study are \"censored\". Lifelines properly accounts for this.\n\n### Hazard Ratios\n\nIn Cox regression, a hazard ratio > 1 means increased risk; \u003C 1 means decreased risk.\n\n### Survival Curves\n\nKaplan-Meier estimates the probability of survival over time without assuming a distribution.\n\n## Quick Reference\n\n### Standard Imports\n\n```python\nfrom lifelines import KaplanMeierFitter, CoxPHFitter\nfrom lifelines.statistics import logrank_test\nimport pandas as pd\n```\n\n### Basic Patterns\n\n```python\n# 1. Kaplan-Meier (Visualizing survival)\nkmf = KaplanMeierFitter()\nkmf.fit(durations=df['days'], event_observed=df['died'])\nkmf.plot_survival_function()\nkmf.median_survival_time_  # Time when 50% have died\n\n# 2. Cox Proportional Hazards (Risk factors)\ncph = CoxPHFitter()\ncph.fit(df, duration_col='days', event_col='died')\ncph.print_summary() # See hazard ratios for age, drug type, etc.\ncph.plot_partial_effects_on_outcome(covariates=['age'], values=[30, 50, 70])\n```\n\n## Critical Rules\n\n### ✅ DO\n\n- **Use event_observed correctly** - 1 = event occurred, 0 = censored.\n- **Check proportional hazards assumption** - Use `cph.check_assumptions()` to validate Cox model.\n- **Compare groups with logrank test** - Statistical test for survival curve differences.\n- **Plot confidence intervals** - Survival estimates have uncertainty, especially with small samples.\n\n### ❌ DON'T\n\n- **Don't ignore censoring** - Treating censored patients as \"survived\" biases results.\n- **Don't use regular regression** - Time-to-event data requires specialized methods.\n- **Don't assume proportional hazards** - If violated, use stratified Cox or parametric models.\n\n## Advanced Patterns\n\n### Comparing Multiple Groups\n\n```python\nfrom lifelines.statistics import multivariate_logrank_test\n\n# Compare survival across treatment groups\nresults = multivariate_logrank_test(df['days'], df['group'], df['died'])\nprint(results.p_value)\n```\n\n### Parametric Models\n\n```python\nfrom lifelines import WeibullFitter, ExponentialFitter\n\n# When you need to extrapolate beyond observed data\nwf = WeibullFitter()\nwf.fit(df['days'], df['died'])\nwf.plot()\n```\n\nLifelines transforms complex survival data into actionable medical insights, enabling evidence-based decisions in clinical research and practice.\n",{"name":5,"license":15,"version":24,"description":7},0.28,"master","49e49abf2f670d429e0b7e2c0349739c3fdd5cbe","skills\u002Flifelines",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":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add stanfish06\u002Fskillquarium --skill lifelines",{"tool":39,"command":40},"bunx","bunx skills add stanfish06\u002Fskillquarium --skill lifelines",{"tool":42,"command":43},"pnpm","pnpm dlx skills add stanfish06\u002Fskillquarium --skill lifelines","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Flifelines\u002FSKILL.md",true,[],[48,55,64,71,78,85],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"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":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":59,"licenseFileUrl":60,"sourceHtmlUrl":61,"categories":62,"keywords":63,"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":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":59,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"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":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"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":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"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":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":59,"licenseFileUrl":89,"sourceHtmlUrl":90,"categories":91,"keywords":92,"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",[],[]]