[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71QPDPXHDQYMQ3GB4WRXQJ7":3,"skill-same:01M71QPDPXHDQYMQ3GB4WRXQJ7":109},{"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":36,"linkOnly":37,"markdownContent":38,"markdownBody":39,"frontMatter":40,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":48,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":50,"updatedAt":51,"install":52,"resources":64},"01M71QPDPXHDQYMQ3GB4WRXQJ7","method-setup",null,"Configures the project-local methodsmith profile: infers the stack, confirms defaults, offers a survey. Use when the user asks to set up or reconfigure the plugin.","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-setup\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],"method setup","setup","profile","user","offers","plugin","use","true","down","install","stack","when","survey","local","up","project","SET","2026-11-10 13:02:02",false,"---\nname: method-setup\ndescription: \"Configures the project-local methodsmith profile: infers the stack, confirms defaults, offers a survey. Use when the user asks to set up or reconfigure the plugin.\"\nargument-hint: \"[--locked-down|--no-install]\"\ndisable-model-invocation: true\n---\n\n# Data Science Environment Setup\n\n> **Script paths are anchored to this skill's directory.** Run each command below from the user's project (the agent's working directory) with `SKILL_DIR` set to the directory containing this `SKILL.md`; do not change into the skill directory, because the script inspects the current repository.\n\n## Skill Value\n\n- **Problem it solves:** A project needs a usable profile without a long, irrelevant R\u002FPython questionnaire.\n- **Use when:** Starting a project, changing its tools, or checking a corporate\u002Flocked-down environment.\n- **Output:** Project-local stack profile, detected-profile summary, health notes, and next workflow.\n- **Ask only if:** Evidence is ambiguous or a choice changes configuration, routing, or scientific scope.\n- **Do not do:** Do not silently select a language, fabricate project evidence, or run package-manager installs in locked-down mode.\n- **Interaction:** Inspect evidence first. Ask one decision-changing question at a time with the platform blocking-question UI; otherwise present numbered choices and wait.\n\nRead user arguments from `$ARGUMENTS`. `--locked-down` and `--no-install` mean corporate\u002Fno-package-manager mode: do not offer or run Homebrew, pip, npm, GitHub CLI, or Quarto install commands.\n\n## Phase 0: Read existing profile and project evidence\n\n**Resolve config root:** !`git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull || true`\n\nUse the resolved root, or resolve it at runtime. Read\n`.methodsmith\u002Fconfig.local.yaml` with the native file-read tool. In a linked\nworktree, fall back to the main checkout when the machine-local file is absent.\nAn existing profile is confirmed evidence; retain it unless it conflicts with an\nexplicit current request.\n\n### Phase 0a: Sensitive-data boundary (before any data inspection)\n\n**Sensitive-data boundary.** Resolve `phi_environment.mode` in `.methodsmith\u002Fconfig.local.yaml` (worktree, then main checkout; legacy `compliant: true` = `approved`, `compliant: false` = `schema-only`, `sensitive_data: false` = `no-sensitive-data`; any schema-only signal wins; unreadable = `schema-only`). `approved` or `no-sensitive-data`: proceed silently and never mention the boundary again. `schema-only`: headings, types, counts, and aggregates only; never open, print, or paste data values; run data-reading scripts as `method-safe-run -- \u003Ccommand>` (path in the guard's deny message); save results as aggregate tables (counts under 11 suppressed) in `output\u002F` or a `phi_environment.aggregate_dirs` entry. Unset, interactive: ask once with the blocking question tool (else a numbered list) offering `Approved endpoint: full access`, `Not approved or unsure: schema-only`, and `No sensitive data: public or synthetic`; save the answer as `phi_environment.mode` there once `git check-ignore -q .methodsmith\u002Fconfig.local.yaml` passes (else first add `.methodsmith\u002F*.local.yaml` to `.gitignore`) so the guard hook sees it. Unset, headless: schema-only.\n\nWhen the mode is unset in an interactive run, or the user asks to change the boundary or says the model endpoint changed, read `references\u002Fsensitive-data-boundary.md` and follow it; it adds the schema-only explainer. In schema-only mode, never read data-file contents during the evidence scan below: use file names, and run the schema helper named in that reference for column headings. Completion evidence: `phi_environment.mode` is saved, or a headless run is proceeding schema-only.\n\nRun the `method-language-detect` skill or apply its rules and retain its handoff:\n\n```text\n__CE_LANG__ primary=\u003Cpython|r|both|unknown> secondary=\u003Cpython|r|null> source=\u003Cauto|cached|manual>\n```\n\nIf no language signal or existing profile exists, retain `primary=unknown`.\nNever default an unknown repository to `both`.\n\nDetect the following with native file search\u002Fread tools, ignoring generated and\nvendor paths. Follow the exact confidence rules in the reference below.\n\n@.\u002Freferences\u002Fprofile-inference.md\n\n### Data domain and connection signals\n\nSet `data_domain` from direct evidence in this order: CLIF, OMOP, claims,\nbioinformatics, generic EHR, generic data. Do not claim a clinical data source\nfrom filenames alone. Use `generic-data` when no reliable domain evidence\nexists.\n\nRecognize a verified connection handoff from recent context:\n\n```text\n__CE_CONNECTION__ name=\u003Cconnection-name> type=\u003Cpostgres|sqlite|duckdb|other> database=\u003Cdb-name> auth=\u003Cauth-mode> status=verified\n```\n\nWhen present, report it as high-confidence database evidence. Do not write the connection into `data_root`.\n\nRecognize CLIF only from strong evidence (`CLIF_CLAUDE.md`, CLIF remote,\nexplicit CLIF\u002FmCIDE request) or two weak signals. Weak CLIF signals require two or more matches: `mCIDE\u002F`, `clif_*.parquet`, CLIF table names, `WORKFLOW.md`, or a CLIF-shaped `config\u002Fconfig.json`. Store `clif_profile_active=true` and:\n\n```yaml\nstack_profile:\n  profile: clif\n  clif:\n    data_dictionary_version: \"\u003Cconfirmed 2.1.0 or 3.0.0>\"\n    mcide_version: \"\u003Cmatching confirmed 2.1.0 or 3.0.0>\"\n```\n\n## Phase 1: Confirm an adaptive profile\n\nBuild a profile with language, IDE, environment, libraries, reporting, storage,\ndata domain, verified connection, and any existing choices. Include only values\nbacked by evidence; an unset optional field is preferable to a guessed value.\n\nShow exactly one concise review card before any detailed questions:\n\n```text\nDetected profile\n  Language: Python (high: pyproject.toml, analysis\u002Fmodel.py)\n  IDE: Jupyter (high: analysis.ipynb)\n  Environment: uv (high: uv.lock)\n  Storage: Parquet (medium: cohort.parquet)\n  Data domain: generic EHR (medium: cohort + encounter fields)\n\nWhat would you like to do?\n1. Continue with detected profile\n2. Adjust a field\n3. Full survey\n```\n\nFor a complete existing profile, label the card `Current profile` and use the\nsame three choices. Do not start fresh merely because an optional field is\nmissing.\n\n### Continue with detected profile\n\nAccept high-confidence values without further questions. For each missing or\nlow-confidence field that is needed now, ask one focused question; do not ask\nunneeded setup preferences.\n\n- Ask language only when it is unknown or the evidence materially conflicts.\n  Options are R, Python, and intentional mixed R + Python. Never treat\n  `language_detect.primary=both` as a final user preference without confirming\n  that both languages are active.\n- Ask storage only when neither a connection, data files, nor project markers\n  establish it. If a connection is verified, recommend its SQL database.\n- Do not request data libraries, statistical packages, an environment manager,\n  reporting format, data root, blinding state, R project type, or reporting\n  checklist merely to complete setup. Infer them when direct evidence exists;\n  otherwise leave them unset until an analysis needs them.\n\nIf CLIF is active, use the detected profile as CLIF-aware guidance: CLIF Parquet files (recommended), clifpy (recommended official CLIF client), polars (recommended for large CLIF tables), duckdb, pyarrow, pandera (schema validation; used in CLIF-MIMIC), sf-hamilton (pipeline DAGs; used in CLIF-MIMIC), tableone (Table 1; used in CLIF project repos), gtsummary (Table 1 and summaries; CLIF template), cmprsk (competing risks; used in CLIF mobilization analyses), uv (recommended for current CLIF Python repos and reproducible uv.lock files), and Marimo (recommended for current CLIF Python examples). Present these only when the user adjusts the relevant field or opens the full survey.\n\nBefore saving a CLIF profile, inspect the existing local config, repository data\ndictionary, and source manifest for a matching CLIF\u002FmCIDE pair. Reuse an\nexplicit pair without asking. If absent, incomplete, or conflicting, ask one\nfocused blocking question: `Which CLIF and mCIDE version family should this\nproject use?` Offer `CLIF 2.1 + mCIDE 2.1` and `CLIF 3.0 + mCIDE 3.0`; use the\nplatform question tool specified above, with numbered chat fallback. Do not\ndefault an unknown CLIF project to 2.1, infer 3.0 from `mCIDE\u002F` alone, or save\nan undeclared mixed pair. Route the selected pair through `__CE_CLIF__`.\n\n### Adjust a field\n\nAsk which field to change, then ask only that replacement value. Recalculate\ndependent defaults without reopening unrelated questions. For a mixed-language\nrepository, a Jupyter\u002FMarimo selection refines the active profile to Python;\nRStudio refines it to R; VS Code or Quarto keeps an intentional mixed profile.\nDo not ask R data-library, R statistical-package, R environment-manager, or R\nproject-type questions after a Python-only IDE choice such as Marimo or Jupyter.\nDo not ask Python package questions after an RStudio-only choice.\n\n### Full survey\n\nRead the following reference only after the user selects **Full survey**.\n\n`references\u002Ffull-survey.md`\n\nFor the full set of writable profile fields and their expected shapes, see `references\u002Fstack-profile-template.yaml`.\n\n## Phase 1.5: Save only confirmed values\n\nWrite `.methodsmith\u002Fconfig.local.yaml` under the repository root. Preserve\nthe current compatible `stack_profile` structure and include only confirmed,\nnon-null values. The optional `stack_profile.inference` record is additive and\ndoes not require a schema migration:\n\n```yaml\nstack_profile:\n  language: python\n  ide: jupyter\n  data_layer: parquet\n  inference:\n    language:\n      value: python\n      confidence: high\n      evidence: [pyproject.toml, analysis\u002Fmodel.py]\n    data_domain:\n      value: generic-ehr\n      confidence: medium\n      evidence: [cohort fields, encounter fields]\n```\n\nIf a verified connection was accepted, save it under\n`stack_profile.data_connection`. For database-first projects, set\n`stack_profile.data_root: null` unless the user explicitly needs an extract or\ncache folder; register concrete tables, extracts, or query outputs with\nan entry in `analysis\u002Fdata-waves.md` that records the location, source, received\ndate, row count when known, and a content hash when available.\n\nIf `data_root` is needed, ask for it then. Recommend an off-repo path for real\nsubject data; allow `data\u002F` only for synthetic or fully de-identified public\ndata. Once `data_root` is set, in any mode, build or refresh the identifier index as described in\n`references\u002Fsensitive-data-boundary.md`. Ask blinding state and reporting checklist only when an active study\nworkflow requires them.\n\nFor an active study without `.methodsmith\u002Fstudy-metadata.yaml`, offer to\ncopy `references\u002Fstudy-metadata-template.yaml` to that path (recommended for\nany study that will have a SAP; required once its `ai_involvement` is not\n`none`); planning, review, and SAP tracking read it. Uncomment only fields backed by evidence. This shared provenance file\nis committed, unlike the machine-local config.\n\nIf the local config is not ignored, offer the entry:\n\n```text\n.methodsmith\u002F*.local.yaml\n```\n\nDisplay a short summary containing values, confidence, and the next safe skill,\nthen emit the canonical `__CE_LANG__` handoff.\n\n## Phase 2: Environment health check\n\nRun the co-located `scripts\u002Fcheck-health` script:\n\n```bash\nSKILL_DIR=\"\u003Cabsolute path of the directory containing this SKILL.md>\";\nbash \"$SKILL_DIR\u002Fscripts\u002Fcheck-health\"\n```\n\nFor `--locked-down` or `--no-install`:\n\n```bash\nSKILL_DIR=\"\u003Cabsolute path of the directory containing this SKILL.md>\";\nbash \"$SKILL_DIR\u002Fscripts\u002Fcheck-health\" --locked-down\n```\n\nTreat optional tools as yellow: optional tools are reported as yellow but do\nnot require Phase 3 unless the chosen workflow needs them. Quarto is optional\nunless the confirmed reporting output requires it.\n\nIf the report names a legacy Compound Codex tool map, offer its removal. Read\n`references\u002Flegacy-codex-tool-map.md` first; this is an optional global\ninstruction cleanup, not a project-profile change, and requires approval.\n\n## Phase 3: Missing dependencies\n\nIn locked-down\u002Fno-install mode, report missing tools and approved workarounds,\nbut do not offer package-manager commands. Otherwise, offer only tools that are\nboth missing and required by the confirmed workflow. Show one command at a time,\nask approval, run it only after approval, and verify it before reporting\nsuccess.\n\nFinish with the detected-profile summary and a recommendation to load\n`method-workflow` in the current project. Refer to it by skill name — invocation\nsyntax varies by harness.\n","# Data Science Environment Setup\n\n> **Script paths are anchored to this skill's directory.** Run each command below from the user's project (the agent's working directory) with `SKILL_DIR` set to the directory containing this `SKILL.md`; do not change into the skill directory, because the script inspects the current repository.\n\n## Skill Value\n\n- **Problem it solves:** A project needs a usable profile without a long, irrelevant R\u002FPython questionnaire.\n- **Use when:** Starting a project, changing its tools, or checking a corporate\u002Flocked-down environment.\n- **Output:** Project-local stack profile, detected-profile summary, health notes, and next workflow.\n- **Ask only if:** Evidence is ambiguous or a choice changes configuration, routing, or scientific scope.\n- **Do not do:** Do not silently select a language, fabricate project evidence, or run package-manager installs in locked-down mode.\n- **Interaction:** Inspect evidence first. Ask one decision-changing question at a time with the platform blocking-question UI; otherwise present numbered choices and wait.\n\nRead user arguments from `$ARGUMENTS`. `--locked-down` and `--no-install` mean corporate\u002Fno-package-manager mode: do not offer or run Homebrew, pip, npm, GitHub CLI, or Quarto install commands.\n\n## Phase 0: Read existing profile and project evidence\n\n**Resolve config root:** !`git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull || true`\n\nUse the resolved root, or resolve it at runtime. Read\n`.methodsmith\u002Fconfig.local.yaml` with the native file-read tool. In a linked\nworktree, fall back to the main checkout when the machine-local file is absent.\nAn existing profile is confirmed evidence; retain it unless it conflicts with an\nexplicit current request.\n\n### Phase 0a: Sensitive-data boundary (before any data inspection)\n\n**Sensitive-data boundary.** Resolve `phi_environment.mode` in `.methodsmith\u002Fconfig.local.yaml` (worktree, then main checkout; legacy `compliant: true` = `approved`, `compliant: false` = `schema-only`, `sensitive_data: false` = `no-sensitive-data`; any schema-only signal wins; unreadable = `schema-only`). `approved` or `no-sensitive-data`: proceed silently and never mention the boundary again. `schema-only`: headings, types, counts, and aggregates only; never open, print, or paste data values; run data-reading scripts as `method-safe-run -- \u003Ccommand>` (path in the guard's deny message); save results as aggregate tables (counts under 11 suppressed) in `output\u002F` or a `phi_environment.aggregate_dirs` entry. Unset, interactive: ask once with the blocking question tool (else a numbered list) offering `Approved endpoint: full access`, `Not approved or unsure: schema-only`, and `No sensitive data: public or synthetic`; save the answer as `phi_environment.mode` there once `git check-ignore -q .methodsmith\u002Fconfig.local.yaml` passes (else first add `.methodsmith\u002F*.local.yaml` to `.gitignore`) so the guard hook sees it. Unset, headless: schema-only.\n\nWhen the mode is unset in an interactive run, or the user asks to change the boundary or says the model endpoint changed, read `references\u002Fsensitive-data-boundary.md` and follow it; it adds the schema-only explainer. In schema-only mode, never read data-file contents during the evidence scan below: use file names, and run the schema helper named in that reference for column headings. Completion evidence: `phi_environment.mode` is saved, or a headless run is proceeding schema-only.\n\nRun the `method-language-detect` skill or apply its rules and retain its handoff:\n\n```text\n__CE_LANG__ primary=\u003Cpython|r|both|unknown> secondary=\u003Cpython|r|null> source=\u003Cauto|cached|manual>\n```\n\nIf no language signal or existing profile exists, retain `primary=unknown`.\nNever default an unknown repository to `both`.\n\nDetect the following with native file search\u002Fread tools, ignoring generated and\nvendor paths. Follow the exact confidence rules in the reference below.\n\n@.\u002Freferences\u002Fprofile-inference.md\n\n### Data domain and connection signals\n\nSet `data_domain` from direct evidence in this order: CLIF, OMOP, claims,\nbioinformatics, generic EHR, generic data. Do not claim a clinical data source\nfrom filenames alone. Use `generic-data` when no reliable domain evidence\nexists.\n\nRecognize a verified connection handoff from recent context:\n\n```text\n__CE_CONNECTION__ name=\u003Cconnection-name> type=\u003Cpostgres|sqlite|duckdb|other> database=\u003Cdb-name> auth=\u003Cauth-mode> status=verified\n```\n\nWhen present, report it as high-confidence database evidence. Do not write the connection into `data_root`.\n\nRecognize CLIF only from strong evidence (`CLIF_CLAUDE.md`, CLIF remote,\nexplicit CLIF\u002FmCIDE request) or two weak signals. Weak CLIF signals require two or more matches: `mCIDE\u002F`, `clif_*.parquet`, CLIF table names, `WORKFLOW.md`, or a CLIF-shaped `config\u002Fconfig.json`. Store `clif_profile_active=true` and:\n\n```yaml\nstack_profile:\n  profile: clif\n  clif:\n    data_dictionary_version: \"\u003Cconfirmed 2.1.0 or 3.0.0>\"\n    mcide_version: \"\u003Cmatching confirmed 2.1.0 or 3.0.0>\"\n```\n\n## Phase 1: Confirm an adaptive profile\n\nBuild a profile with language, IDE, environment, libraries, reporting, storage,\ndata domain, verified connection, and any existing choices. Include only values\nbacked by evidence; an unset optional field is preferable to a guessed value.\n\nShow exactly one concise review card before any detailed questions:\n\n```text\nDetected profile\n  Language: Python (high: pyproject.toml, analysis\u002Fmodel.py)\n  IDE: Jupyter (high: analysis.ipynb)\n  Environment: uv (high: uv.lock)\n  Storage: Parquet (medium: cohort.parquet)\n  Data domain: generic EHR (medium: cohort + encounter fields)\n\nWhat would you like to do?\n1. Continue with detected profile\n2. Adjust a field\n3. Full survey\n```\n\nFor a complete existing profile, label the card `Current profile` and use the\nsame three choices. Do not start fresh merely because an optional field is\nmissing.\n\n### Continue with detected profile\n\nAccept high-confidence values without further questions. For each missing or\nlow-confidence field that is needed now, ask one focused question; do not ask\nunneeded setup preferences.\n\n- Ask language only when it is unknown or the evidence materially conflicts.\n  Options are R, Python, and intentional mixed R + Python. Never treat\n  `language_detect.primary=both` as a final user preference without confirming\n  that both languages are active.\n- Ask storage only when neither a connection, data files, nor project markers\n  establish it. If a connection is verified, recommend its SQL database.\n- Do not request data libraries, statistical packages, an environment manager,\n  reporting format, data root, blinding state, R project type, or reporting\n  checklist merely to complete setup. Infer them when direct evidence exists;\n  otherwise leave them unset until an analysis needs them.\n\nIf CLIF is active, use the detected profile as CLIF-aware guidance: CLIF Parquet files (recommended), clifpy (recommended official CLIF client), polars (recommended for large CLIF tables), duckdb, pyarrow, pandera (schema validation; used in CLIF-MIMIC), sf-hamilton (pipeline DAGs; used in CLIF-MIMIC), tableone (Table 1; used in CLIF project repos), gtsummary (Table 1 and summaries; CLIF template), cmprsk (competing risks; used in CLIF mobilization analyses), uv (recommended for current CLIF Python repos and reproducible uv.lock files), and Marimo (recommended for current CLIF Python examples). Present these only when the user adjusts the relevant field or opens the full survey.\n\nBefore saving a CLIF profile, inspect the existing local config, repository data\ndictionary, and source manifest for a matching CLIF\u002FmCIDE pair. Reuse an\nexplicit pair without asking. If absent, incomplete, or conflicting, ask one\nfocused blocking question: `Which CLIF and mCIDE version family should this\nproject use?` Offer `CLIF 2.1 + mCIDE 2.1` and `CLIF 3.0 + mCIDE 3.0`; use the\nplatform question tool specified above, with numbered chat fallback. Do not\ndefault an unknown CLIF project to 2.1, infer 3.0 from `mCIDE\u002F` alone, or save\nan undeclared mixed pair. Route the selected pair through `__CE_CLIF__`.\n\n### Adjust a field\n\nAsk which field to change, then ask only that replacement value. Recalculate\ndependent defaults without reopening unrelated questions. For a mixed-language\nrepository, a Jupyter\u002FMarimo selection refines the active profile to Python;\nRStudio refines it to R; VS Code or Quarto keeps an intentional mixed profile.\nDo not ask R data-library, R statistical-package, R environment-manager, or R\nproject-type questions after a Python-only IDE choice such as Marimo or Jupyter.\nDo not ask Python package questions after an RStudio-only choice.\n\n### Full survey\n\nRead the following reference only after the user selects **Full survey**.\n\n`references\u002Ffull-survey.md`\n\nFor the full set of writable profile fields and their expected shapes, see `references\u002Fstack-profile-template.yaml`.\n\n## Phase 1.5: Save only confirmed values\n\nWrite `.methodsmith\u002Fconfig.local.yaml` under the repository root. Preserve\nthe current compatible `stack_profile` structure and include only confirmed,\nnon-null values. The optional `stack_profile.inference` record is additive and\ndoes not require a schema migration:\n\n```yaml\nstack_profile:\n  language: python\n  ide: jupyter\n  data_layer: parquet\n  inference:\n    language:\n      value: python\n      confidence: high\n      evidence: [pyproject.toml, analysis\u002Fmodel.py]\n    data_domain:\n      value: generic-ehr\n      confidence: medium\n      evidence: [cohort fields, encounter fields]\n```\n\nIf a verified connection was accepted, save it under\n`stack_profile.data_connection`. For database-first projects, set\n`stack_profile.data_root: null` unless the user explicitly needs an extract or\ncache folder; register concrete tables, extracts, or query outputs with\nan entry in `analysis\u002Fdata-waves.md` that records the location, source, received\ndate, row count when known, and a content hash when available.\n\nIf `data_root` is needed, ask for it then. Recommend an off-repo path for real\nsubject data; allow `data\u002F` only for synthetic or fully de-identified public\ndata. Once `data_root` is set, in any mode, build or refresh the identifier index as described in\n`references\u002Fsensitive-data-boundary.md`. Ask blinding state and reporting checklist only when an active study\nworkflow requires them.\n\nFor an active study without `.methodsmith\u002Fstudy-metadata.yaml`, offer to\ncopy `references\u002Fstudy-metadata-template.yaml` to that path (recommended for\nany study that will have a SAP; required once its `ai_involvement` is not\n`none`); planning, review, and SAP tracking read it. Uncomment only fields backed by evidence. This shared provenance file\nis committed, unlike the machine-local config.\n\nIf the local config is not ignored, offer the entry:\n\n```text\n.methodsmith\u002F*.local.yaml\n```\n\nDisplay a short summary containing values, confidence, and the next safe skill,\nthen emit the canonical `__CE_LANG__` handoff.\n\n## Phase 2: Environment health check\n\nRun the co-located `scripts\u002Fcheck-health` script:\n\n```bash\nSKILL_DIR=\"\u003Cabsolute path of the directory containing this SKILL.md>\";\nbash \"$SKILL_DIR\u002Fscripts\u002Fcheck-health\"\n```\n\nFor `--locked-down` or `--no-install`:\n\n```bash\nSKILL_DIR=\"\u003Cabsolute path of the directory containing this SKILL.md>\";\nbash \"$SKILL_DIR\u002Fscripts\u002Fcheck-health\" --locked-down\n```\n\nTreat optional tools as yellow: optional tools are reported as yellow but do\nnot require Phase 3 unless the chosen workflow needs them. Quarto is optional\nunless the confirmed reporting output requires it.\n\nIf the report names a legacy Compound Codex tool map, offer its removal. Read\n`references\u002Flegacy-codex-tool-map.md` first; this is an optional global\ninstruction cleanup, not a project-profile change, and requires approval.\n\n## Phase 3: Missing dependencies\n\nIn locked-down\u002Fno-install mode, report missing tools and approved workarounds,\nbut do not offer package-manager commands. Otherwise, offer only tools that are\nboth missing and required by the confirmed workflow. Show one command at a time,\nask approval, run it only after approval, and verify it before reporting\nsuccess.\n\nFinish with the detected-profile summary and a recommendation to load\n`method-workflow` in the current project. Refer to it by skill name — invocation\nsyntax varies by harness.\n",{"name":5,"description":7,"argument-hint":41,"disable-model-invocation":42},"[--locked-down|--no-install]",true,"main","893bccb980e4dce1345919e9f675f5a9dcbed364","plugins\u002Fmethodsmith\u002Fskills\u002Fmethod-setup",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":53,"prompt":63,"zipAvailable":42},[54,57,60],{"tool":55,"command":56},"npx","npx skills add sajor2000\u002Fmethodsmith --skill method-setup",{"tool":58,"command":59},"bunx","bunx skills add sajor2000\u002Fmethodsmith --skill method-setup",{"tool":61,"command":62},"pnpm","pnpm dlx skills add sajor2000\u002Fmethodsmith --skill method-setup","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith\u002Fblob\u002Fmain\u002Fplugins\u002Fmethodsmith\u002Fskills\u002Fmethod-setup\u002FSKILL.md",[65,71,75,79,83,87,91,95,101,105],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Fconfig-template.yaml","REFERENCE","参考文档",3676,"https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith\u002Fblob\u002Fmain\u002Fplugins\u002Fmethodsmith\u002Fskills\u002Fmethod-setup\u002Freferences\u002Fconfig-template.yaml",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Ffull-survey.md",709,"https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith\u002Fblob\u002Fmain\u002Fplugins\u002Fmethodsmith\u002Fskills\u002Fmethod-setup\u002Freferences\u002Ffull-survey.md",{"path":76,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Flegacy-codex-tool-map.md",1044,"https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith\u002Fblob\u002Fmain\u002Fplugins\u002Fmethodsmith\u002Fskills\u002Fmethod-setup\u002Freferences\u002Flegacy-codex-tool-map.md",{"path":80,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Fprofile-inference.md",2297,"https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith\u002Fblob\u002Fmain\u002Fplugins\u002Fmethodsmith\u002Fskills\u002Fmethod-setup\u002Freferences\u002Fprofile-inference.md",{"path":84,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Fsensitive-data-boundary.md",5503,"https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith\u002Fblob\u002Fmain\u002Fplugins\u002Fmethodsmith\u002Fskills\u002Fmethod-setup\u002Freferences\u002Fsensitive-data-boundary.md",{"path":88,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":89,"sourceHtmlUrl":90},"references\u002Fstack-profile-template.yaml",5407,"https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith\u002Fblob\u002Fmain\u002Fplugins\u002Fmethodsmith\u002Fskills\u002Fmethod-setup\u002Freferences\u002Fstack-profile-template.yaml",{"path":92,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":93,"sourceHtmlUrl":94},"references\u002Fstudy-metadata-template.yaml",3472,"https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith\u002Fblob\u002Fmain\u002Fplugins\u002Fmethodsmith\u002Fskills\u002Fmethod-setup\u002Freferences\u002Fstudy-metadata-template.yaml",{"path":96,"resourceType":97,"resourceTypeDesc":98,"sizeBytes":99,"sourceHtmlUrl":100},"scripts\u002Fcheck-health","SCRIPT","脚本",6634,"https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith\u002Fblob\u002Fmain\u002Fplugins\u002Fmethodsmith\u002Fskills\u002Fmethod-setup\u002Fscripts\u002Fcheck-health",{"path":102,"resourceType":97,"resourceTypeDesc":98,"sizeBytes":103,"sourceHtmlUrl":104},"scripts\u002Fmethod-identifier-index",14757,"https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith\u002Fblob\u002Fmain\u002Fplugins\u002Fmethodsmith\u002Fskills\u002Fmethod-setup\u002Fscripts\u002Fmethod-identifier-index",{"path":106,"resourceType":97,"resourceTypeDesc":98,"sizeBytes":107,"sourceHtmlUrl":108},"scripts\u002Fschema-peek.py",24561,"https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith\u002Fblob\u002Fmain\u002Fplugins\u002Fmethodsmith\u002Fskills\u002Fmethod-setup\u002Fscripts\u002Fschema-peek.py",[110,121,133,144,152,160],{"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":36},"01M71QQY0KE1184AF58EC1J5C1","skill-one","Sample skill","https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fsample-plugin\u002Fskills\u002Fskill-one\u002FSKILL.md",[],[117,118,119,120],"one","skill one","sample","sample skill",{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":36},"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",[],[128,129,130,131,26,132],"disabled skill","a skill","with model","with","model",{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":36},"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",[],[140,141,142,129,143],"claude only","claude only skill","only","code",{"skillNo":145,"name":146,"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":147,"categories":148,"keywords":149,"publishedAt":36},"01M71QQRPZ76X623V5P7T1E3DD","default-skill","https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fcustom-paths\u002Fskills\u002Fdefault-skill\u002FSKILL.md",[],[150,151],"default","default skill",{"skillNo":153,"name":154,"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":155,"categories":156,"keywords":157,"publishedAt":36},"01M71QQQG3FF2HFQHVH8VHA08R","custom-skill","https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fcustom-paths\u002Fcustom-skills\u002Fcustom-skill\u002FSKILL.md",[],[158,159],"custom skill","custom",{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":166,"publishedAt":36},"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",[],[167,168,169,170,171,172,25,30,173,174,131,175,176,177],"write","method write","point","evidence","entry","claim","provenance","reviewer","scientific","prose","drafts"]