[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C66NF04SYJPWM0WYJQ9CZY":3,"skill-same:01M6C66NF04SYJPWM0WYJQ9CZY":86},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":55,"linkOnly":56,"markdownContent":57,"markdownBody":58,"frontMatter":59,"refName":64,"commitSha":65,"skillDirectory":66,"forksCount":67,"repositoryHtmlUrl":68,"repositoryHomepageUrl":17,"ownerHtmlUrl":69,"ownerBlogUrl":17,"ownerDescription":70,"updatedAt":71,"install":72,"resources":85},"01M6C66NF04SYJPWM0WYJQ9CZY","mypy-to-ty","mypy 至 ty 类型检查迁移","Migrate Python type checking from mypy to ty (Astral). Use when mirrors-mypy is in .pre-commit-config.yaml or [tool.mypy] config exists.","将 Python 类型检查从 mypy 迁移到 ty（Astral）。当 .pre-commit-config.yaml 中存在 mirrors-mypy 或存在 [tool.mypy] 配置时使用。","laurigates\u002Fclaude-plugins","laurigates","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F13014001?v=4","01M6C59YHWS9C7KMXKSRX1YXNP","Lauri Gates","01M6C59YP2APG9YAM4DWYQYGFJ",60,"MIT",null,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fmigration-patterns-plugin\u002Fskills\u002Fmypy-to-ty\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8CEEYW9437JC839V6V453Q5","Python 开发","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54],"mypy","ty","mypy to ty","read","2026","when","sonnet","only","use","fix","edit","write","python","check","find","grep","tool","migrate","Bash","pre-commit","yaml","config","commit","test","2026-11-10 10:12:30",false,"---\nname: mypy-to-ty\ndescription: \"Migrate Python type checking from mypy to ty (Astral). Use when mirrors-mypy is in .pre-commit-config.yaml or [tool.mypy] config exists.\"\nallowed-tools: Read, Write, Edit, Glob, Grep, Bash(find *), Bash(test *), Bash(pre-commit *), Bash(uvx *), AskUserQuestion, TodoWrite\nmodel: sonnet\nargs: \"[--check-only] [--fix]\"\nargument-hint: \"[--check-only] [--fix]\"\ncreated: 2026-04-14\nmodified: 2026-05-09\nreviewed: 2026-04-14\n---\n\n# \u002Fmigration-patterns:mypy-to-ty\n\nMigrate from mypy to [ty](https:\u002F\u002Fgithub.com\u002Fastral-sh\u002Fty) — Astral's new fast Python type checker. Replaces the `mirrors-mypy` pre-commit hook with a local `repo: local` hook using `uvx ty check`, migrates config from `[tool.mypy]` to `[tool.ty]`, and removes `mypy.ini`.\n\n## When to Use This Skill\n\n| Use this skill when... | Keep mypy when... |\n|------------------------|-------------------|\n| `.pre-commit-config.yaml` contains `mirrors-mypy` | ty does not yet support a specific mypy plugin you rely on |\n| `[tool.mypy]` section exists in `pyproject.toml` | CI pipeline depends on mypy-specific exit codes or plugins |\n| You want faster type checking (ty is written in Rust) | Project uses mypy daemon (`dmypy`) for incremental checks |\n| Repo uses uv and the astral stack already | Team prefers mypy's error message format |\n\n## Context\n\n- Pre-commit config: !`find . -maxdepth 1 -name '.pre-commit-config.yaml'`\n- pyproject.toml: !`find . -maxdepth 1 -name 'pyproject.toml'`\n- mypy.ini: !`find . -maxdepth 1 -name 'mypy.ini'`\n- uv available: !`find . -maxdepth 1 -name 'uv.lock'`\n\n## Parameters\n\n| Parameter | Description |\n|-----------|-------------|\n| `--check-only` | Report what would change without modifying files |\n| `--fix` | Apply migration automatically |\n\n## Execution\n\nExecute this mypy-to-ty migration:\n\n### Step 1: Audit current mypy configuration\n\n1. Read `.pre-commit-config.yaml` and locate any `mirrors-mypy` or `mypy` entries.\n2. Read `pyproject.toml` and extract the `[tool.mypy]` section.\n3. Check for `mypy.ini`.\n4. Report findings:\n   ```\n   mypy → ty migration audit\n   ==========================\n   pre-commit hook:   mirrors-mypy found at rev \u003Crev>\n   pyproject.toml:    [tool.mypy] section found (N lines)\n   mypy.ini:          FOUND \u002F NOT FOUND\n   uv.lock:           EXISTS (uv available) \u002F MISSING\n   ```\n   If `--check-only`, stop here.\n\n### Step 2: Update .pre-commit-config.yaml\n\nRemove the `mirrors-mypy` repo block. Add a `repo: local` hook for ty:\n\n```yaml\n- repo: local\n  hooks:\n    - id: ty\n      name: ty type check\n      entry: uvx ty check\n      language: system\n      types: [python]\n      pass_filenames: false\n```\n\n**Note:** `astral-sh\u002Fty-pre-commit` does not yet exist as a hosted pre-commit repo. The `repo: local` pattern with `uvx ty check` is the correct approach until an official mirror is published.\n\nIf an `entry: mypy` hook in a non-mirrors-mypy repo exists, replace it similarly.\n\n### Step 3: Migrate [tool.mypy] → [tool.ty] in pyproject.toml\n\nRead the `[tool.mypy]` section and convert each key to the ty equivalent:\n\n| mypy key | ty equivalent | Notes |\n|----------|--------------|-------|\n| `python_version` | `python-version` | Rename only |\n| `strict` | `strict` | Same |\n| `warn_return_any` | `warn-return-any` | Kebab-case |\n| `disallow_untyped_defs` | `disallow-untyped-defs` | Kebab-case |\n| `ignore_missing_imports` | Not needed | ty resolves stubs natively |\n| `exclude` | `exclude` | Same |\n| Per-module `[[tool.mypy.overrides]]` | Drop or convert manually | Note for manual review |\n\nRemove the `[tool.mypy]` section (and any `[[tool.mypy.overrides]]` sections). Add `[tool.ty]` with converted keys. Annotate any options that need manual review.\n\n### Step 4: Remove mypy.ini\n\nIf `mypy.ini` exists, delete it. Its content should already be in `[tool.ty]` after Step 3.\n\n### Step 5: Remove mypy from dependencies\n\nIf `mypy` appears in `pyproject.toml` dev\u002Flint dependencies, remove it:\n\n```bash\n# With uv\nuvx --from uv uv remove --dev mypy 2>\u002Fdev\u002Fnull || true\n```\n\nIf not using uv, note it for manual removal.\n\n### Step 6: Verify migration\n\nRun the new hook to confirm it works:\n\n```bash\npre-commit run ty --all-files\n```\n\nIf it exits 0, the migration is complete. If it exits non-zero:\n- Summarize ty errors\n- Suggest addressing them before committing\n\n### Step 7: Report\n\nPrint a summary of all changes made and list files to commit:\n\n```\nmypy → ty migration complete\n=============================\n.pre-commit-config.yaml   UPDATED (removed mirrors-mypy, added local ty hook)\npyproject.toml            UPDATED ([tool.mypy] → [tool.ty])\nmypy.ini                  DELETED \u002F NOT FOUND\n\nManual review needed:\n  - [[tool.mypy.overrides]] sections were dropped — verify ty handles them\n  - Check ty docs for any unsupported mypy options\n\nFiles to stage:\n  git add .pre-commit-config.yaml pyproject.toml\n```\n\n## Agentic Optimizations\n\n| Context | Command |\n|---------|---------|\n| Audit only | `\u002Fmigration-patterns:mypy-to-ty --check-only` |\n| Apply migration | `\u002Fmigration-patterns:mypy-to-ty --fix` |\n| Verify after migration | `pre-commit run ty --all-files` |\n| Test ty directly | `uvx ty check .` |\n\n## Quick Reference\n\n| Item | Value |\n|------|-------|\n| ty docs | https:\u002F\u002Fgithub.com\u002Fastral-sh\u002Fty |\n| Pre-commit hook type | `repo: local`, `entry: uvx ty check` |\n| Config section | `[tool.ty]` in pyproject.toml |\n| Key difference | ty uses kebab-case keys; mypy uses underscore |\n\n## See Also\n\n- `\u002Fmigration-patterns:black-to-ruff-format` — Migrate from black to ruff format\n- `\u002Fmigration-patterns:flake8-to-ruff` — Migrate flake8\u002Fisort to ruff\n- `\u002Fconfigure:repo` — End-to-end repo config driver\n","# \u002Fmigration-patterns:mypy-to-ty\n\nMigrate from mypy to [ty](https:\u002F\u002Fgithub.com\u002Fastral-sh\u002Fty) — Astral's new fast Python type checker. Replaces the `mirrors-mypy` pre-commit hook with a local `repo: local` hook using `uvx ty check`, migrates config from `[tool.mypy]` to `[tool.ty]`, and removes `mypy.ini`.\n\n## When to Use This Skill\n\n| Use this skill when... | Keep mypy when... |\n|------------------------|-------------------|\n| `.pre-commit-config.yaml` contains `mirrors-mypy` | ty does not yet support a specific mypy plugin you rely on |\n| `[tool.mypy]` section exists in `pyproject.toml` | CI pipeline depends on mypy-specific exit codes or plugins |\n| You want faster type checking (ty is written in Rust) | Project uses mypy daemon (`dmypy`) for incremental checks |\n| Repo uses uv and the astral stack already | Team prefers mypy's error message format |\n\n## Context\n\n- Pre-commit config: !`find . -maxdepth 1 -name '.pre-commit-config.yaml'`\n- pyproject.toml: !`find . -maxdepth 1 -name 'pyproject.toml'`\n- mypy.ini: !`find . -maxdepth 1 -name 'mypy.ini'`\n- uv available: !`find . -maxdepth 1 -name 'uv.lock'`\n\n## Parameters\n\n| Parameter | Description |\n|-----------|-------------|\n| `--check-only` | Report what would change without modifying files |\n| `--fix` | Apply migration automatically |\n\n## Execution\n\nExecute this mypy-to-ty migration:\n\n### Step 1: Audit current mypy configuration\n\n1. Read `.pre-commit-config.yaml` and locate any `mirrors-mypy` or `mypy` entries.\n2. Read `pyproject.toml` and extract the `[tool.mypy]` section.\n3. Check for `mypy.ini`.\n4. Report findings:\n   ```\n   mypy → ty migration audit\n   ==========================\n   pre-commit hook:   mirrors-mypy found at rev \u003Crev>\n   pyproject.toml:    [tool.mypy] section found (N lines)\n   mypy.ini:          FOUND \u002F NOT FOUND\n   uv.lock:           EXISTS (uv available) \u002F MISSING\n   ```\n   If `--check-only`, stop here.\n\n### Step 2: Update .pre-commit-config.yaml\n\nRemove the `mirrors-mypy` repo block. Add a `repo: local` hook for ty:\n\n```yaml\n- repo: local\n  hooks:\n    - id: ty\n      name: ty type check\n      entry: uvx ty check\n      language: system\n      types: [python]\n      pass_filenames: false\n```\n\n**Note:** `astral-sh\u002Fty-pre-commit` does not yet exist as a hosted pre-commit repo. The `repo: local` pattern with `uvx ty check` is the correct approach until an official mirror is published.\n\nIf an `entry: mypy` hook in a non-mirrors-mypy repo exists, replace it similarly.\n\n### Step 3: Migrate [tool.mypy] → [tool.ty] in pyproject.toml\n\nRead the `[tool.mypy]` section and convert each key to the ty equivalent:\n\n| mypy key | ty equivalent | Notes |\n|----------|--------------|-------|\n| `python_version` | `python-version` | Rename only |\n| `strict` | `strict` | Same |\n| `warn_return_any` | `warn-return-any` | Kebab-case |\n| `disallow_untyped_defs` | `disallow-untyped-defs` | Kebab-case |\n| `ignore_missing_imports` | Not needed | ty resolves stubs natively |\n| `exclude` | `exclude` | Same |\n| Per-module `[[tool.mypy.overrides]]` | Drop or convert manually | Note for manual review |\n\nRemove the `[tool.mypy]` section (and any `[[tool.mypy.overrides]]` sections). Add `[tool.ty]` with converted keys. Annotate any options that need manual review.\n\n### Step 4: Remove mypy.ini\n\nIf `mypy.ini` exists, delete it. Its content should already be in `[tool.ty]` after Step 3.\n\n### Step 5: Remove mypy from dependencies\n\nIf `mypy` appears in `pyproject.toml` dev\u002Flint dependencies, remove it:\n\n```bash\n# With uv\nuvx --from uv uv remove --dev mypy 2>\u002Fdev\u002Fnull || true\n```\n\nIf not using uv, note it for manual removal.\n\n### Step 6: Verify migration\n\nRun the new hook to confirm it works:\n\n```bash\npre-commit run ty --all-files\n```\n\nIf it exits 0, the migration is complete. If it exits non-zero:\n- Summarize ty errors\n- Suggest addressing them before committing\n\n### Step 7: Report\n\nPrint a summary of all changes made and list files to commit:\n\n```\nmypy → ty migration complete\n=============================\n.pre-commit-config.yaml   UPDATED (removed mirrors-mypy, added local ty hook)\npyproject.toml            UPDATED ([tool.mypy] → [tool.ty])\nmypy.ini                  DELETED \u002F NOT FOUND\n\nManual review needed:\n  - [[tool.mypy.overrides]] sections were dropped — verify ty handles them\n  - Check ty docs for any unsupported mypy options\n\nFiles to stage:\n  git add .pre-commit-config.yaml pyproject.toml\n```\n\n## Agentic Optimizations\n\n| Context | Command |\n|---------|---------|\n| Audit only | `\u002Fmigration-patterns:mypy-to-ty --check-only` |\n| Apply migration | `\u002Fmigration-patterns:mypy-to-ty --fix` |\n| Verify after migration | `pre-commit run ty --all-files` |\n| Test ty directly | `uvx ty check .` |\n\n## Quick Reference\n\n| Item | Value |\n|------|-------|\n| ty docs | https:\u002F\u002Fgithub.com\u002Fastral-sh\u002Fty |\n| Pre-commit hook type | `repo: local`, `entry: uvx ty check` |\n| Config section | `[tool.ty]` in pyproject.toml |\n| Key difference | ty uses kebab-case keys; mypy uses underscore |\n\n## See Also\n\n- `\u002Fmigration-patterns:black-to-ruff-format` — Migrate from black to ruff format\n- `\u002Fmigration-patterns:flake8-to-ruff` — Migrate flake8\u002Fisort to ruff\n- `\u002Fconfigure:repo` — End-to-end repo config driver\n",{"args":60,"name":5,"model":37,"created":61,"modified":62,"reviewed":61,"description":7,"allowed-tools":63,"argument-hint":60},"[--check-only] [--fix]",1776124800000,1778284800000,"Read, Write, Edit, Glob, Grep, Bash(find *), Bash(test *), Bash(pre-commit *), Bash(uvx *), AskUserQuestion, TodoWrite","main","bdd0582f1a2ba53d21061835bfd72d45f2f954f4","migration-patterns-plugin\u002Fskills\u002Fmypy-to-ty",6,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins","https:\u002F\u002Fgithub.com\u002Flaurigates","Linux enthusiast, cloud engineer, neovim addict, electronics hobbyist.","2026-11-15 03:36:11",{"source":9,"skillName":5,"commands":73,"prompt":83,"zipAvailable":84},[74,77,80],{"tool":75,"command":76},"npx","npx skills add laurigates\u002Fclaude-plugins --skill mypy-to-ty",{"tool":78,"command":79},"bunx","bunx skills add laurigates\u002Fclaude-plugins --skill mypy-to-ty",{"tool":81,"command":82},"pnpm","pnpm dlx skills add laurigates\u002Fclaude-plugins --skill mypy-to-ty","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fmigration-patterns-plugin\u002Fskills\u002Fmypy-to-ty\u002FSKILL.md",true,[],[87,95,117,136,152,174],{"skillNo":88,"name":89,"nameZh":17,"description":90,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":94},"01M7DS1CAJ1ESDX08PENF01J0S","session-workflow-capture","Workflow-tool scripts and workflow friction from this session, filed as issues here or in the plugins repo. Use when a session ran Workflow scripts.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fsession-plugin\u002Fskills\u002Fsession-workflow-capture\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":96,"name":97,"nameZh":17,"description":98,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":55},"01M70PFHMH9ADY0CRE6047Y4B2","kitty-show-image","Show the user an image with a note on what to judge, via a file send or a labelled kitty tab. Use when the user must see an image, or icat fails with no \u002Fdev\u002Ftty.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fkitty-plugin\u002Fskills\u002Fkitty-show-image\u002FSKILL.md",[],[102,103,104,105,106,107,108,109,110,111,39,36,49,112,113,114,115,116,35,34],"show","kitty show image","image","kitty","show image","ls","get","send","open","dev","file","text","with","xdg","via",{"skillNo":118,"name":119,"nameZh":17,"description":120,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":55},"01M70PFEN18HKQ4RCQ1VPGMPTB","kitty-session-persistence","Snapshot and restore kitty terminal sessions on macOS. Use when surviving WindowServer hangs without losing tabs, configuring snapshots, or restoring after a force-reboot.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fkitty-plugin\u002Fskills\u002Fkitty-session-persistence\u002FSKILL.md",[],[105,124,125,126,127,128,36,49,129,130,131,35,34,42,41,132,133,134,135,39],"kitty session persistence","session","persistence","false","snapshots","uname","reboot","terminal","snapshot","macos","sessions","restore",{"skillNo":137,"name":138,"nameZh":17,"description":139,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":55},"01M70PFC77XGXCVQ1543VGZHYR","kitty-remote-control","Safe kitty remote control from an agent — read panes with kitty @ ls\u002Fget-text, notify, and never mutate the live terminal unasked. Use when running inside kitty.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fkitty-plugin\u002Fskills\u002Fkitty-remote-control\u002FSKILL.md",[],[143,144,105,145,146,107,147,148,108,149,150,39,36,151,49,113,114,131,35,34],"kitty remote control","remote","control","remote control","running","never","panes","notify","query",{"skillNo":153,"name":154,"nameZh":17,"description":155,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":156,"categories":157,"keywords":158,"publishedAt":55},"01M70P6WVMCT5JG4SACTM69AF9","docs-reference-check","Dangling doc-reference gate: flag markdown naming repo paths or relative links that no longer exist. Use when docs cite moved\u002Fdeleted files, or wiring a doc-drift lint.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fdocumentation-plugin\u002Fskills\u002Fdocs-reference-check\u002FSKILL.md",[],[159,44,160,161,162,163,164,165,166,167,39,36,49,168,112,169,170,171,172,173],"docs reference check","reference check","reference","docs","links","python3","repo","files","auto","drift","lint","wiring","chezmoi","references","cp",{"skillNo":175,"name":176,"nameZh":177,"description":178,"descriptionZh":179,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":180,"categories":181,"keywords":188,"publishedAt":55},"01M6C6NDE7DAQGNWSF22J5CJ0Z","youtube-upload","YouTube 视频上传与编辑","Upload a video to YouTube via the Data API v3 and edit its title, description, tags or thumbnail afterwards. Use when publishing or retitling a YouTube video.","通过 Data API v3 将视频上传到 YouTube，并在之后编辑其标题、描述、标签或缩略图。适用于发布 YouTube 视频或修改其标题。","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fyoutube-plugin\u002Fskills\u002Fyoutube-upload\u002FSKILL.md",[182,185],{"categoryNo":183,"categoryName":184,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQV98WRP4APE9VKKKKJ6FV","社交媒体与内容平台管理",{"categoryNo":186,"categoryName":187,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C55A3R2M9C8CAKG3W16HTA","内容创作者",[189,190,191,192,164,193,34,194,41,195,196,197,39,49,112,198,199,36,200,201,202,116,35],"youtube upload","upload","youtube","Video","run","uv run","publishing","data","uv","api","v3","tags","id","title"]