[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M73572D6VZJGG27ZJ3R2BYD6":3,"skill-same:01M73572D6VZJGG27ZJ3R2BYD6":50},{"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":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M73572D6VZJGG27ZJ3R2BYD6","prefer-upstream",null,"Prefer upstream packages.","Morrison-Lab\u002Fai-config","Morrison-Lab","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F104235520?v=4","01M734G0451S2G35MN4HFQK7XP","Morrison Lab","01M734G059BYFDFQA8YTPDGPMH",4,"MIT","https:\u002F\u002Fgithub.com\u002FMorrison-Lab\u002Fai-config\u002Fblob\u002Fmain\u002Fskills\u002Fprefer-upstream\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: prefer-upstream\ndescription: \"Prefer upstream packages.\"\nuser-invocable: false\nallowed-tools:\n  - Bash\n  - Read\n  - WebSearch\n---\n\n# prefer-upstream\n\nBefore writing custom code for a common task, search for existing\nwell-maintained packages or tools that already solve the problem.\n\nThis skill is the search procedure for the don't-reinvent-the-wheel (DRW)\nprinciple --- see\n[`shared\u002Fprinciples\u002Fdont-reinvent-wheel.md`](..\u002F..\u002Fshared\u002Fprinciples\u002Fdont-reinvent-wheel.md)\nfor the umbrella statement, including checking our own repos, the\nfork-or-contribute preference for close-but-not-exact matches, and the\nreview-side application.\n\n## When this fires (automatically)\n\n- About to write a utility function (string manipulation, file parsing, API\n  wrappers, data transformation)\n- Implementing something that \"feels generic\" — not specific to this project\n- Building CI\u002FCD helpers, linters, formatters, or test infrastructure\n- Any time you think \"surely someone has done this before\"\n\n## Where to look (by ecosystem)\n\n### R\n- **r-lib** org: usethis, devtools, pkgdown, lintr, styler, testthat, covr,\n  rcmdcheck, desc, fs, cli, rlang, withr, callr, processx\n- **tidyverse** org: dplyr, tidyr, purrr, stringr, readr, forcats, lubridate,\n  glue, tibble\n- **ropensci** org: specialized packages for data access, APIs, etc.\n- **CRAN Task Views**: curated lists by topic\n\n### Python\n- PyPI standard ecosystem: requests, click, rich, pydantic, httpx\n- Scientific: numpy, pandas, scipy, scikit-learn\n\n### Shell \u002F CI\n- Your project's shared CI templates (e.g., reusable workflow libraries)\n- Standard Unix tools before custom scripts\n- GitHub Actions marketplace \u002F GitLab CI templates\n\n### JavaScript\u002FTypeScript\n- npm ecosystem: well-maintained packages with good test coverage\n\n### AI Agent Plugins & Tools\n- Plugin marketplaces: `claude plugin marketplace list`, `codex plugin marketplace list`, `.agents\u002Fplugins.json`, `.cursor-plugin\u002F`\n- MCP servers: official registries, package managers (`brew install \u003Cserver>`), local typed CLI wrappers (see [`use-plugins`](..\u002F..\u002Fshared\u002Fworkflow\u002Fuse-plugins.md) and [`use-mcp-servers`](..\u002F..\u002Fshared\u002Fworkflow\u002Fuse-mcp-servers.md))\n\n## Decision criteria\n\n| Factor | Build custom | Use upstream |\n|--------|-------------|--------------|\n| Exact match exists with active maintenance | ❌ | ✅ |\n| Close match exists, needs minor wrapping | ❌ | ✅ (wrap it) |\n| Upstream exists but unmaintained (>2yr) | Maybe | ⚠️ Evaluate |\n| Problem is highly project-specific | ✅ | ❌ |\n| Upstream has heavy dependencies you don't want | ✅ | ❌ |\n| Learning exercise \u002F pedagogical code | ✅ | ❌ |\n\nMost of those rows are facts about the world, but two are choices: \"Upstream\nhas heavy dependencies you don't want\" and \"Learning exercise \u002F pedagogical\ncode\".\nA choice is a fine reason when it is the point of the work --- pedagogical code\nis written in order to be written --- and not when it exists only to rule the\nupstream out.\nSo ask where the choice came from before either row decides anything.\nA constraint your own change authored --- \"this script runs with no packages\ninstalled\", \"this PR decided not to add a dependency\" --- is the case that\nfails that test, because the change it would justify is what created it.\nRelax it (add the dependency, fix the CI job) and re-read the table against\nthe relaxed environment.\nSee the DRW fragment's \"A constraint your own change authored is not evidence\nagainst an upstream\".\n\n## Process\n\n1. **Identify the generic problem** — separate project-specific logic from\n   the reusable utility layer\n2. **Search** — check the relevant ecosystem orgs, package indices, and\n   GitHub\u002FGitLab\n3. **Evaluate** — is it actively maintained? Good test coverage? Reasonable\n   dependencies? Compatible license?\n4. **Classify any constraint that rules a candidate out** as external (a\n   platform limit, an upstream API, a license, a policy) or self-imposed (a\n   choice in this change or an earlier one of ours).\n   Relax a self-imposed one and re-evaluate.\n   It may stand as a reason only once relaxing it is shown to be genuinely\n   unavailable --- say who would have to authorize the relaxation when it is\n   not yours to make, rather than treating your own lack of access as the\n   constraint.\n5. **Recommend** — if a good upstream exists, suggest it to the user before\n   writing custom code. Include:\n   - Package name and link\n   - How it solves the problem\n   - Any wrapping needed\n6. **If a close-but-not-exact match exists** — prefer contributing the\n   missing piece upstream, or forking, over re-building from scratch (see\n   the DRW fragment's fork-or-contribute section and its `upstream-issues`\n   \u002F `scout-peers` gates)\n7. **If no upstream exists** — proceed with custom implementation, but note\n   in comments that you checked and nothing fit, and record the search\n   terms and every candidate found in the PR body --- review is a weak layer\n   for catching a reimplementation, so the written record is what a later\n   reader has instead\n\n## Anti-patterns to avoid\n\n- Reimplementing `glue::glue()` with `paste0()` and manual substitution\n- Writing custom YAML\u002FJSON parsers when `yaml`\u002F`jsonlite` exist\n- Hand-rolling HTTP retry logic when `httr2` handles it\n- Building custom test infrastructure when `testthat` covers the need\n- Writing shell scripts for tasks that `usethis` or `devtools` already do\n","# prefer-upstream\n\nBefore writing custom code for a common task, search for existing\nwell-maintained packages or tools that already solve the problem.\n\nThis skill is the search procedure for the don't-reinvent-the-wheel (DRW)\nprinciple --- see\n[`shared\u002Fprinciples\u002Fdont-reinvent-wheel.md`](..\u002F..\u002Fshared\u002Fprinciples\u002Fdont-reinvent-wheel.md)\nfor the umbrella statement, including checking our own repos, the\nfork-or-contribute preference for close-but-not-exact matches, and the\nreview-side application.\n\n## When this fires (automatically)\n\n- About to write a utility function (string manipulation, file parsing, API\n  wrappers, data transformation)\n- Implementing something that \"feels generic\" — not specific to this project\n- Building CI\u002FCD helpers, linters, formatters, or test infrastructure\n- Any time you think \"surely someone has done this before\"\n\n## Where to look (by ecosystem)\n\n### R\n- **r-lib** org: usethis, devtools, pkgdown, lintr, styler, testthat, covr,\n  rcmdcheck, desc, fs, cli, rlang, withr, callr, processx\n- **tidyverse** org: dplyr, tidyr, purrr, stringr, readr, forcats, lubridate,\n  glue, tibble\n- **ropensci** org: specialized packages for data access, APIs, etc.\n- **CRAN Task Views**: curated lists by topic\n\n### Python\n- PyPI standard ecosystem: requests, click, rich, pydantic, httpx\n- Scientific: numpy, pandas, scipy, scikit-learn\n\n### Shell \u002F CI\n- Your project's shared CI templates (e.g., reusable workflow libraries)\n- Standard Unix tools before custom scripts\n- GitHub Actions marketplace \u002F GitLab CI templates\n\n### JavaScript\u002FTypeScript\n- npm ecosystem: well-maintained packages with good test coverage\n\n### AI Agent Plugins & Tools\n- Plugin marketplaces: `claude plugin marketplace list`, `codex plugin marketplace list`, `.agents\u002Fplugins.json`, `.cursor-plugin\u002F`\n- MCP servers: official registries, package managers (`brew install \u003Cserver>`), local typed CLI wrappers (see [`use-plugins`](..\u002F..\u002Fshared\u002Fworkflow\u002Fuse-plugins.md) and [`use-mcp-servers`](..\u002F..\u002Fshared\u002Fworkflow\u002Fuse-mcp-servers.md))\n\n## Decision criteria\n\n| Factor | Build custom | Use upstream |\n|--------|-------------|--------------|\n| Exact match exists with active maintenance | ❌ | ✅ |\n| Close match exists, needs minor wrapping | ❌ | ✅ (wrap it) |\n| Upstream exists but unmaintained (>2yr) | Maybe | ⚠️ Evaluate |\n| Problem is highly project-specific | ✅ | ❌ |\n| Upstream has heavy dependencies you don't want | ✅ | ❌ |\n| Learning exercise \u002F pedagogical code | ✅ | ❌ |\n\nMost of those rows are facts about the world, but two are choices: \"Upstream\nhas heavy dependencies you don't want\" and \"Learning exercise \u002F pedagogical\ncode\".\nA choice is a fine reason when it is the point of the work --- pedagogical code\nis written in order to be written --- and not when it exists only to rule the\nupstream out.\nSo ask where the choice came from before either row decides anything.\nA constraint your own change authored --- \"this script runs with no packages\ninstalled\", \"this PR decided not to add a dependency\" --- is the case that\nfails that test, because the change it would justify is what created it.\nRelax it (add the dependency, fix the CI job) and re-read the table against\nthe relaxed environment.\nSee the DRW fragment's \"A constraint your own change authored is not evidence\nagainst an upstream\".\n\n## Process\n\n1. **Identify the generic problem** — separate project-specific logic from\n   the reusable utility layer\n2. **Search** — check the relevant ecosystem orgs, package indices, and\n   GitHub\u002FGitLab\n3. **Evaluate** — is it actively maintained? Good test coverage? Reasonable\n   dependencies? Compatible license?\n4. **Classify any constraint that rules a candidate out** as external (a\n   platform limit, an upstream API, a license, a policy) or self-imposed (a\n   choice in this change or an earlier one of ours).\n   Relax a self-imposed one and re-evaluate.\n   It may stand as a reason only once relaxing it is shown to be genuinely\n   unavailable --- say who would have to authorize the relaxation when it is\n   not yours to make, rather than treating your own lack of access as the\n   constraint.\n5. **Recommend** — if a good upstream exists, suggest it to the user before\n   writing custom code. Include:\n   - Package name and link\n   - How it solves the problem\n   - Any wrapping needed\n6. **If a close-but-not-exact match exists** — prefer contributing the\n   missing piece upstream, or forking, over re-building from scratch (see\n   the DRW fragment's fork-or-contribute section and its `upstream-issues`\n   \u002F `scout-peers` gates)\n7. **If no upstream exists** — proceed with custom implementation, but note\n   in comments that you checked and nothing fit, and record the search\n   terms and every candidate found in the PR body --- review is a weak layer\n   for catching a reimplementation, so the written record is what a later\n   reader has instead\n\n## Anti-patterns to avoid\n\n- Reimplementing `glue::glue()` with `paste0()` and manual substitution\n- Writing custom YAML\u002FJSON parsers when `yaml`\u002F`jsonlite` exist\n- Hand-rolling HTTP retry logic when `httr2` handles it\n- Building custom test infrastructure when `testthat` covers the need\n- Writing shell scripts for tasks that `usethis` or `devtools` already do\n",{"name":5,"description":7,"allowed-tools":24,"user-invocable":20},[25,26,27],"Bash","Read","WebSearch","main","0f720481f8ce3b3d9fef485f6e230d8b3035748e","skills\u002Fprefer-upstream",1,"https:\u002F\u002Fgithub.com\u002FMorrison-Lab\u002Fai-config","https:\u002F\u002Fmorrison-lab.github.io\u002Fai-config\u002F","https:\u002F\u002Fgithub.com\u002FMorrison-Lab","2026-11-15 04:39:15",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add Morrison-Lab\u002Fai-config --skill prefer-upstream",{"tool":42,"command":43},"bunx","bunx skills add Morrison-Lab\u002Fai-config --skill prefer-upstream",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Morrison-Lab\u002Fai-config --skill prefer-upstream","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMorrison-Lab\u002Fai-config\u002Fblob\u002Fmain\u002Fskills\u002Fprefer-upstream\u002FSKILL.md",true,[],[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M735BVYCGR5VEC65AFDVSNKW","wrap-up","End-of-session verification and UMS.","https:\u002F\u002Fgithub.com\u002FMorrison-Lab\u002Fai-config\u002Fblob\u002Fmain\u002Fskills\u002Fwrap-up\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M735BTH469T1CQ8G2Q9GENCR","workaround-watcher","Watch upstream issue for fix.","https:\u002F\u002Fgithub.com\u002FMorrison-Lab\u002Fai-config\u002Fblob\u002Fmain\u002Fskills\u002Fworkaround-watcher\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M735BRKZWFANSQ0GM380B4TD","wn","→ whats-next.","https:\u002F\u002Fgithub.com\u002FMorrison-Lab\u002Fai-config\u002Fblob\u002Fmain\u002Fskills\u002Fwn\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M735BPE9V830B3B6NGXQ56J6","whats-next","Recommend concrete next step or action.","https:\u002F\u002Fgithub.com\u002FMorrison-Lab\u002Fai-config\u002Fblob\u002Fmain\u002Fskills\u002Fwhats-next\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M735BMHQ60EAD5B7QAWXC5A0","wait-for-results","Wait for pipeline\u002FCI results.","https:\u002F\u002Fgithub.com\u002FMorrison-Lab\u002Fai-config\u002Fblob\u002Fmain\u002Fskills\u002Fwait-for-results\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M735BKGZHPN1PEMJ7YBD5VJ8","wai","→ send-notes.","https:\u002F\u002Fgithub.com\u002FMorrison-Lab\u002Fai-config\u002Fblob\u002Fmain\u002Fskills\u002Fwai\u002FSKILL.md",[],[]]