[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69BNM2MW8C61MRH902Q9BRQ":3,"skill-same:01M69BNM2MW8C61MRH902Q9BRQ":65},{"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":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":17,"ownerHtmlUrl":47,"ownerBlogUrl":48,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M69BNM2MW8C61MRH902Q9BRQ","rust-precommit","Rust 预提交检查","Run the mandatory PET Rust pre-commit checks (cargo fmt + cargo clippy -D warnings) before every commit. Invoke whenever you are about to commit Rust changes, after applying review feedback, or whenever you need to verify formatting and lint cleanliness.","在每次提交前运行强制性的 PET Rust 预提交检查（cargo fmt + cargo clippy -D warnings）。当即将提交 Rust 更改、应用审查反馈后，或需要验证格式和 lint 是否干净时调用。","microsoft\u002Fpython-environment-tools","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69BNE8385D7YQ637S4PQEQ7",209,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpython-environment-tools\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Frust-precommit\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSNPHVX9Y1H3B2ZX3V06RF","Rust 开发","SCENARIO","使用场景",[31,32,33,34,35,36],"rust","rust precommit","review","commit","run","lint","2026-11-10 10:12:30",false,"---\nname: \"rust-precommit\"\ndescription: \"Run the mandatory PET Rust pre-commit checks (cargo fmt + cargo clippy -D warnings) before every commit. Invoke whenever you are about to commit Rust changes, after applying review feedback, or whenever you need to verify formatting and lint cleanliness.\"\n---\n\n# Rust Pre-Commit Checks\n\nThe PET maintainer workflow requires `cargo fmt --all` and `cargo clippy --all -- -D warnings` to pass before every commit. This skill wraps both into a single script invocation.\n\n## When to use\n\n- Before staging any Rust changes for commit.\n- After fixing review comments on a PR, before pushing.\n- Whenever the agent is asked \"run pre-commit checks\" or \"validate the Rust code\".\n\n## How to run\n\nFrom the workspace root:\n\n### Windows (pwsh)\n\n```powershell\n.\u002Fscripts\u002Frust-precommit.ps1\n```\n\n### macOS \u002F Linux\n\n```bash\n.\u002Fscripts\u002Frust-precommit.sh\n```\n\nBoth scripts:\n\n1. Run `cargo fmt --all` (auto-formats; fails only on unrecoverable errors).\n2. Run `cargo clippy --all -- -D warnings` (treats warnings as errors).\n3. Exit non-zero on the first failure so callers can gate commits.\n\n## Handling failures\n\n- **fmt failure:** rare; usually a syntax error preventing parsing. Fix the underlying compile error first.\n- **clippy failure:** read the diagnostic, fix the code. Do **not** add `#[allow(...)]` to suppress unless absolutely justified.\n- After any fix, re-run the script until it reports `ALL PRE-COMMIT CHECKS PASSED`.\n\n## Notes\n\n- The script must be run from the repository root (or pass the workspace path as the first arg to the `.sh` variant \u002F `-WorkspacePath` to the `.ps1` variant).\n- Keep the script in sync with `.github\u002Fcopilot-instructions.md` \"Required Before Committing\" section.\n","# Rust Pre-Commit Checks\n\nThe PET maintainer workflow requires `cargo fmt --all` and `cargo clippy --all -- -D warnings` to pass before every commit. This skill wraps both into a single script invocation.\n\n## When to use\n\n- Before staging any Rust changes for commit.\n- After fixing review comments on a PR, before pushing.\n- Whenever the agent is asked \"run pre-commit checks\" or \"validate the Rust code\".\n\n## How to run\n\nFrom the workspace root:\n\n### Windows (pwsh)\n\n```powershell\n.\u002Fscripts\u002Frust-precommit.ps1\n```\n\n### macOS \u002F Linux\n\n```bash\n.\u002Fscripts\u002Frust-precommit.sh\n```\n\nBoth scripts:\n\n1. Run `cargo fmt --all` (auto-formats; fails only on unrecoverable errors).\n2. Run `cargo clippy --all -- -D warnings` (treats warnings as errors).\n3. Exit non-zero on the first failure so callers can gate commits.\n\n## Handling failures\n\n- **fmt failure:** rare; usually a syntax error preventing parsing. Fix the underlying compile error first.\n- **clippy failure:** read the diagnostic, fix the code. Do **not** add `#[allow(...)]` to suppress unless absolutely justified.\n- After any fix, re-run the script until it reports `ALL PRE-COMMIT CHECKS PASSED`.\n\n## Notes\n\n- The script must be run from the repository root (or pass the workspace path as the first arg to the `.sh` variant \u002F `-WorkspacePath` to the `.ps1` variant).\n- Keep the script in sync with `.github\u002Fcopilot-instructions.md` \"Required Before Committing\" section.\n",{"name":5,"description":7},"main","02dd29e49e3c71d4ec06e1072d6331494a12e01d",".github\u002Fskills\u002Frust-precommit",48,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpython-environment-tools","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-10 02:07:34",{"source":9,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add microsoft\u002Fpython-environment-tools --skill rust-precommit",{"tool":57,"command":58},"bunx","bunx skills add microsoft\u002Fpython-environment-tools --skill rust-precommit",{"tool":60,"command":61},"pnpm","pnpm dlx skills add microsoft\u002Fpython-environment-tools --skill rust-precommit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpython-environment-tools\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Frust-precommit\u002FSKILL.md",true,[],[66,81],{"skillNo":67,"name":68,"nameZh":69,"description":70,"descriptionZh":71,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":72,"categories":73,"keywords":76,"publishedAt":37},"01M69BNJ1P2BKGDBMAZBT6S0AF","rust-locator-patterns","PET Rust 编码规范","PET (Python Environment Tools) Rust coding conventions: locator ordering, thread safety, platform gating, JSONRPC rules, version detection, and path\u002Fsymlink handling. Reference when writing or reviewing Rust code in this repo to avoid convention violations that cause review churn.","PET（Python Environment Tools）Rust 编码约定：定位器顺序、线程安全、平台门控、JSONRPC 规则、版本检测以及路径\u002F符号链接处理。在本仓库编写或审查 Rust 代码时参考，以避免违反约定而导致审查反复修改。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpython-environment-tools\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Frust-locator-patterns\u002FSKILL.md",[74,75],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[31,77,78,33,79,80],"rust locator patterns","writing","python","code",{"skillNo":82,"name":83,"nameZh":84,"description":85,"descriptionZh":86,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":87,"categories":88,"keywords":91,"publishedAt":37},"01M69BNGJAVCG7WA93S1NK68AW","rust-coding-skill","PET 项目 Rust 编码","Use whenever editing Rust in PET to write allocation-aware, cross-platform, byte-safe code with behavior-proving tests.","在 PET 中编辑 Rust 代码时使用，以编写具备分配感知、跨平台、字节安全的代码，并附带可证明行为正确性的测试。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpython-environment-tools\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Frust-coding-skill\u002FSKILL.md",[89,90],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[31,92,93,80],"rust coding skill","safe"]