[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71QNBQXZ55WVPQNR1ASDM4C":3,"skill-same:01M71QNBQXZ55WVPQNR1ASDM4C":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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":50,"ownerHtmlUrl":51,"ownerBlogUrl":6,"ownerDescription":52,"updatedAt":53,"install":54,"resources":67},"01M71QNBQXZ55WVPQNR1ASDM4C","method-r",null,"Routes R work: analysis design, tidyverse, event-study DiD, packages, testthat, CRAN, profiling, targets. Use when a project is R-first or the user needs R help; diffs and PRs go to method-review.","sajor2000\u002Fmethodsmith","sajor2000","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F126191042?v=4","01M71QG4M3561SH49E3S7J3GKT","JC Rojas ","01M71QG4N56X2P61YTJSRP95VD",6,"MIT","https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith\u002Fblob\u002Fmain\u002Fplugins\u002Fmethodsmith\u002Fskills\u002Fmethod-r\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"method r","use","help","profiling","first","targets","work","packages","review","analysis","when","package","design","diffs","prs","testing","study","performance","event","project","2026-11-10 13:02:02",false,"---\nname: method-r\ndescription: \"Routes R work: analysis design, tidyverse, event-study DiD, packages, testthat, CRAN, profiling, targets. Use when a project is R-first or the user needs R help; diffs and PRs go to method-review.\"\nargument-hint: \"[analysis|review|tidyverse|event-studies|package|testing|cran|performance|targets]\"\n---\n\n# R Statistics Router\n\n## Skill Value\n\n- **Problem it solves:** R projects need language-specific workflow guidance without bypassing Methodsmith design, data-QA, and reporting gates.\n- **Use when:** The project uses R, RStudio, `.R`, `.Rmd`, `.qmd`, `renv`, `DESCRIPTION`, or `_targets.R`.\n- **Output:** A selected R workflow with the relevant analytical contract and validation plan.\n- **Ask only if:** The task could reasonably belong to more than one R workflow.\n- **Do not do:** Do not change package dependencies, publish to CRAN, or replace failed data with synthetic examples without explicit authorization.\n\n## Route\n\nPick the narrowest row and read its reference file before writing code. Each file holds that workflow's scope, steps, and guardrails.\n\n| Task | Workflow |\n|---|---|\n| R analysis design, base R, modeling, sensitivity analysis | Use the shared R workflow below |\n| Read-only R code review | Read `references\u002Freview.md` |\n| dplyr, tidyr, ggplot2, purrr, joins | Read `references\u002Ftidyverse.md` |\n| Event-study or staggered adoption design | Read `references\u002Fevent-studies.md` |\n| Package API, documentation, release structure | Read `references\u002Fpackage-development.md` |\n| testthat fixtures, snapshots, mocks | Read `references\u002Fpackage-testing.md` |\n| CRAN readiness and submission preparation | Read `references\u002Fcran.md` |\n| Profiling and performance improvement | Read `references\u002Fperformance.md` |\n| `targets` pipeline authoring and validation | Read `references\u002Ftargets.md` |\n\n## Shared R workflow\n\n1. Inspect `renv.lock`, `DESCRIPTION`, `_targets.R`, Quarto\u002FR Markdown files, and existing project conventions before proposing packages or file layout.\n2. Load the `method-notebook-standards` skill before creating or materially extending an `.Rmd` or `.qmd` analysis.\n3. For research analysis, load `method-plan` to establish the canonical SAP; add `method-sap` only when a complex clinical design needs claim-to-dataset and decision-evidence modeling.\n4. Load the `method-data-qa` skill before model code and keep R transformations fail-loud at schema, join, and type boundaries.\n5. Preserve lockfiles and record `sessionInfo()` or the project-equivalent environment evidence with any reproducible result.\n6. Load the `method-review` skill for causal, survival, or reporting claims; language-specific R syntax does not validate methodology by itself.\n7. When `phi_environment.mode` in `.methodsmith\u002Fconfig.local.yaml` is `schema-only`, run R scripts that read data as `method-safe-run -- Rscript \u003Cscript>` (or `method-safe-run -- quarto render \u003Cdoc>`), using the path the guard's deny message gives; it shows only the exit code, files written, and a stderr summary of traceback frames and error types. Run `targets::tar_make()`, `rmarkdown::render()`, and `make` the same way. Write results with `write.csv()` or `knitr::kable()` as aggregate tables, counts under 11 suppressed, under `output\u002F` or another `phi_environment.aggregate_dirs` entry.\n\n## Evidence-first R guidance\n\n1. Treat the project lockfile and installed package version as the starting point; do not recommend a current R API from memory when version-specific behavior matters.\n2. When available, use Ref MCP to read the official documentation for the exact R package and function before proposing an unfamiliar, version-sensitive, or safety-relevant call. Record the package\u002Fversion or a version gap with the recommendation.\n3. When current ecosystem or CRAN-policy discovery is necessary, use Tavily MCP to find candidate primary sources, then read the official package, CRAN, R-project, or rOpenSci source. A search snippet or a third-party blog is not sufficient evidence for an API or submission rule.\n4. If the configured research tool is unavailable, state the verification gap and use only repository-local evidence or stable base-R behavior; never invent an option, version, benchmark, or policy.\n","# R Statistics Router\n\n## Skill Value\n\n- **Problem it solves:** R projects need language-specific workflow guidance without bypassing Methodsmith design, data-QA, and reporting gates.\n- **Use when:** The project uses R, RStudio, `.R`, `.Rmd`, `.qmd`, `renv`, `DESCRIPTION`, or `_targets.R`.\n- **Output:** A selected R workflow with the relevant analytical contract and validation plan.\n- **Ask only if:** The task could reasonably belong to more than one R workflow.\n- **Do not do:** Do not change package dependencies, publish to CRAN, or replace failed data with synthetic examples without explicit authorization.\n\n## Route\n\nPick the narrowest row and read its reference file before writing code. Each file holds that workflow's scope, steps, and guardrails.\n\n| Task | Workflow |\n|---|---|\n| R analysis design, base R, modeling, sensitivity analysis | Use the shared R workflow below |\n| Read-only R code review | Read `references\u002Freview.md` |\n| dplyr, tidyr, ggplot2, purrr, joins | Read `references\u002Ftidyverse.md` |\n| Event-study or staggered adoption design | Read `references\u002Fevent-studies.md` |\n| Package API, documentation, release structure | Read `references\u002Fpackage-development.md` |\n| testthat fixtures, snapshots, mocks | Read `references\u002Fpackage-testing.md` |\n| CRAN readiness and submission preparation | Read `references\u002Fcran.md` |\n| Profiling and performance improvement | Read `references\u002Fperformance.md` |\n| `targets` pipeline authoring and validation | Read `references\u002Ftargets.md` |\n\n## Shared R workflow\n\n1. Inspect `renv.lock`, `DESCRIPTION`, `_targets.R`, Quarto\u002FR Markdown files, and existing project conventions before proposing packages or file layout.\n2. Load the `method-notebook-standards` skill before creating or materially extending an `.Rmd` or `.qmd` analysis.\n3. For research analysis, load `method-plan` to establish the canonical SAP; add `method-sap` only when a complex clinical design needs claim-to-dataset and decision-evidence modeling.\n4. Load the `method-data-qa` skill before model code and keep R transformations fail-loud at schema, join, and type boundaries.\n5. Preserve lockfiles and record `sessionInfo()` or the project-equivalent environment evidence with any reproducible result.\n6. Load the `method-review` skill for causal, survival, or reporting claims; language-specific R syntax does not validate methodology by itself.\n7. When `phi_environment.mode` in `.methodsmith\u002Fconfig.local.yaml` is `schema-only`, run R scripts that read data as `method-safe-run -- Rscript \u003Cscript>` (or `method-safe-run -- quarto render \u003Cdoc>`), using the path the guard's deny message gives; it shows only the exit code, files written, and a stderr summary of traceback frames and error types. Run `targets::tar_make()`, `rmarkdown::render()`, and `make` the same way. Write results with `write.csv()` or `knitr::kable()` as aggregate tables, counts under 11 suppressed, under `output\u002F` or another `phi_environment.aggregate_dirs` entry.\n\n## Evidence-first R guidance\n\n1. Treat the project lockfile and installed package version as the starting point; do not recommend a current R API from memory when version-specific behavior matters.\n2. When available, use Ref MCP to read the official documentation for the exact R package and function before proposing an unfamiliar, version-sensitive, or safety-relevant call. Record the package\u002Fversion or a version gap with the recommendation.\n3. When current ecosystem or CRAN-policy discovery is necessary, use Tavily MCP to find candidate primary sources, then read the official package, CRAN, R-project, or rOpenSci source. A search snippet or a third-party blog is not sufficient evidence for an API or submission rule.\n4. If the configured research tool is unavailable, state the verification gap and use only repository-local evidence or stable base-R behavior; never invent an option, version, benchmark, or policy.\n",{"name":5,"description":7,"argument-hint":44},"[analysis|review|tidyverse|event-studies|package|testing|cran|performance|targets]","main","893bccb980e4dce1345919e9f675f5a9dcbed364","plugins\u002Fmethodsmith\u002Fskills\u002Fmethod-r",0,"https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith","https:\u002F\u002Fsajor2000.github.io\u002Fmethodsmith\u002F","https:\u002F\u002Fgithub.com\u002Fsajor2000","Critical care physician-scientist at Rush University. @Common-Longitudinal-ICU-data-Format contributor building open ICU data tools & clinical AI","2026-11-01 01:56:01",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add sajor2000\u002Fmethodsmith --skill method-r",{"tool":60,"command":61},"bunx","bunx skills add sajor2000\u002Fmethodsmith --skill method-r",{"tool":63,"command":64},"pnpm","pnpm dlx skills add sajor2000\u002Fmethodsmith --skill method-r","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith\u002Fblob\u002Fmain\u002Fplugins\u002Fmethodsmith\u002Fskills\u002Fmethod-r\u002FSKILL.md",true,[68,74,78,82,86,90,94,98],{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Fcran.md","REFERENCE","参考文档",1649,"https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith\u002Fblob\u002Fmain\u002Fplugins\u002Fmethodsmith\u002Fskills\u002Fmethod-r\u002Freferences\u002Fcran.md",{"path":75,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Fevent-studies.md",2779,"https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith\u002Fblob\u002Fmain\u002Fplugins\u002Fmethodsmith\u002Fskills\u002Fmethod-r\u002Freferences\u002Fevent-studies.md",{"path":79,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":80,"sourceHtmlUrl":81},"references\u002Fpackage-development.md",1469,"https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith\u002Fblob\u002Fmain\u002Fplugins\u002Fmethodsmith\u002Fskills\u002Fmethod-r\u002Freferences\u002Fpackage-development.md",{"path":83,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":84,"sourceHtmlUrl":85},"references\u002Fpackage-testing.md",1439,"https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith\u002Fblob\u002Fmain\u002Fplugins\u002Fmethodsmith\u002Fskills\u002Fmethod-r\u002Freferences\u002Fpackage-testing.md",{"path":87,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Fperformance.md",1524,"https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith\u002Fblob\u002Fmain\u002Fplugins\u002Fmethodsmith\u002Fskills\u002Fmethod-r\u002Freferences\u002Fperformance.md",{"path":91,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":92,"sourceHtmlUrl":93},"references\u002Freview.md",1759,"https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith\u002Fblob\u002Fmain\u002Fplugins\u002Fmethodsmith\u002Fskills\u002Fmethod-r\u002Freferences\u002Freview.md",{"path":95,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":96,"sourceHtmlUrl":97},"references\u002Ftargets.md",1790,"https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith\u002Fblob\u002Fmain\u002Fplugins\u002Fmethodsmith\u002Fskills\u002Fmethod-r\u002Freferences\u002Ftargets.md",{"path":99,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":100,"sourceHtmlUrl":101},"references\u002Ftidyverse.md",1955,"https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith\u002Fblob\u002Fmain\u002Fplugins\u002Fmethodsmith\u002Fskills\u002Fmethod-r\u002Freferences\u002Ftidyverse.md",[103,114,127,138,146,154],{"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":39},"01M71QQY0KE1184AF58EC1J5C1","skill-one","Sample skill","https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fsample-plugin\u002Fskills\u002Fskill-one\u002FSKILL.md",[],[110,111,112,113],"one","skill one","sample","sample skill",{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":39},"01M71QQW3PNK9AYB5HBMAPM72J","disabled-skill","A skill with model invocation disabled","https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fsample-plugin\u002Fskills\u002Fdisabled-skill\u002FSKILL.md",[],[121,122,123,124,125,126],"disabled skill","a skill","with model","with","true","model",{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":39},"01M71QQSY02X7DNZQRAGJ6YFGY","claude-only-skill","A skill restricted to Claude Code only","https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fsample-plugin\u002Fskills\u002Fclaude-only-skill\u002FSKILL.md",[],[134,135,136,122,137],"claude only","claude only skill","only","code",{"skillNo":139,"name":140,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":39},"01M71QQRPZ76X623V5P7T1E3DD","default-skill","https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fcustom-paths\u002Fskills\u002Fdefault-skill\u002FSKILL.md",[],[144,145],"default","default skill",{"skillNo":147,"name":148,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":149,"categories":150,"keywords":151,"publishedAt":39},"01M71QQQG3FF2HFQHVH8VHA08R","custom-skill","https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fcustom-paths\u002Fcustom-skills\u002Fcustom-skill\u002FSKILL.md",[],[152,153],"custom skill","custom",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":160,"publishedAt":39},"01M71QQMBNC76141GHXBSMENSH","method-write","Drafts, revises, and audits evidence-bound manuscripts, sections, abstracts, and reviewer responses with claim provenance. Use when scientific prose must be written or revised (entry point).","https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith\u002Fblob\u002Fmain\u002Fplugins\u002Fmethodsmith\u002Fskills\u002Fmethod-write\u002FSKILL.md",[],[161,162,163,164,165,166,20,29,167,168,124,169,170,171],"write","method write","point","evidence","entry","claim","provenance","reviewer","scientific","prose","drafts"]