[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AWW80GRXBQQK1PNXH8DGP4":3,"skill-same:01M7AWW80GRXBQQK1PNXH8DGP4":44},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7AWW80GRXBQQK1PNXH8DGP4","rust-quality",null,"Ownership-first refactoring traces data and failure contracts before changing Rust boundaries. Use when moving Rust responsibilities across module or crate boundaries, or when a changed Rust module alters ownership or error handling. Skip standalone formatting, lint, or broad style cleanup.","wxxb789\u002Fmarkturbo","wxxb789","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F49564443?v=4","01M7AWR3AB19SNE4ATARY9KV3W","01M7AWR3AZ5Y5ADAY47KF3RBRJ",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fwxxb789\u002Fmarkturbo\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Frust-quality\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: rust-quality\ndescription: \"Ownership-first refactoring traces data and failure contracts before changing Rust boundaries. Use when moving Rust responsibilities across module or crate boundaries, or when a changed Rust module alters ownership or error handling. Skip standalone formatting, lint, or broad style cleanup.\"\n---\n\n# Rust quality\n\nUse this procedure for a scoped Rust module move or refactor. Deliver a behavior-preserving cutover for the current callers. The work is done when the responsibility is at its intended boundary, all affected in-repository users are migrated, ownership and failure behavior still match the governing contracts, and a focused check exercises the changed path or its exact blocker is reported.\n\n## Procedure\n\n1. **Establish the boundary before editing.** Read the requested outcome, applicable product and architecture contracts, the current implementation, its callers, and the relevant tests. In this repository's migration, move behavior that is not highly tied to GUI into `mt-core`, including headless platform I\u002FO where applicable; keep GPUI views and GUI integration in `mt-app`, and keep `mt-core` GPUI-free. Use the product contract and the user's scope to resolve borderline cases; a module's current location or crate name alone does not decide ownership.\n2. **Trace semantic ownership.** For each value crossing the boundary, identify who owns it, how long it lives, and whether callers read, mutate, transfer, or genuinely share it. Prefer moves for transferred ownership and borrows for read-only access. Clone only when independent ownership is required by the contract; use `Rc` or `Arc` only for actual shared ownership. Restructure when a borrow-checker workaround obscures the intended owner.\n3. **Map and complete the cutover.** Find the definition, callers, references, related types, visibility, and module exports with available code search or LSP. Move cohesive behavior together, then update every affected import, caller, re-export, and test. Preserve a compatibility path only when the product or public API contract requires it.\n4. **Preserve failure semantics.** Classify each case before choosing a type. Use `Result` for expected failures unless the product contract represents them as diagnostics. Use `Option` for normal absence. Assert only for invariant violations the contract treats as programmer bugs. Preserve the context callers need; do not change public error types or add an error crate just to satisfy generic advice. In this product, content failures are diagnostics and source text remains editable.\n5. **Review only the changed flow.** Inspect new clones, panics, ignored errors, visibility, pointer sharing, and unsafe code only where the moved behavior touches them. Fix a concrete ownership, failure, or boundary defect required by the task; leave unrelated style and lint cleanup out.\n6. **Verify the moved behavior.** Run a focused existing test for the changed behavior, using the repository's documented command and an appropriate filter, for example:\n   - `cargo test --locked --profile ci -p mt-core \u003Cfocused_filter>`\n   - `cargo test --locked --profile ci -p mt-app \u003Cfocused_filter>`\n\n   Choose the affected package. If no relevant test exists, run `cargo check --locked -p mt-core` or `cargo check --locked -p mt-app` for the affected crate and say that behavior was not test-covered. Follow `docs\u002Fdevelopment.md` for the settled integration tier; a focused check is not a substitute for that gate.\n7. **Report completion.** State the moved responsibility and boundary, affected public references or failure contract, the focused command and observed result, and any higher-level check still pending. Separate observed outcomes from unverified claims.\n\n## Authority and offline use\n\nThis checklist is self-contained; the pinned sources below are optional background when available. Repository product contracts, the requested migration scope, existing behavior tests, and relevant measured evidence outrank generic Rust guidance. Claim a performance improvement only when comparable project measurements support it. Apply the checklist to the changed path, not as a reason to reformat or lint unrelated code.\n\n## Pinned upstream sources\n\nSelected ideas are informed by [`actionbook\u002Frust-skills` v2.0.9 at commit `ac5853d230662cc26ace57af995efc52fe7b4309`](https:\u002F\u002Fgithub.com\u002Factionbook\u002Frust-skills\u002Ftree\u002Fac5853d230662cc26ace57af995efc52fe7b4309):\n\n- [rust-refactor-helper](https:\u002F\u002Fgithub.com\u002Factionbook\u002Frust-skills\u002Fblob\u002Fac5853d230662cc26ace57af995efc52fe7b4309\u002Fskills\u002Frust-refactor-helper\u002FSKILL.md) — reference and caller impact before a move.\n- [m01-ownership](https:\u002F\u002Fgithub.com\u002Factionbook\u002Frust-skills\u002Fblob\u002Fac5853d230662cc26ace57af995efc52fe7b4309\u002Fskills\u002Fm01-ownership\u002FSKILL.md) — decide who owns data before choosing a compiler workaround.\n- [m06-error-handling](https:\u002F\u002Fgithub.com\u002Factionbook\u002Frust-skills\u002Fblob\u002Fac5853d230662cc26ace57af995efc52fe7b4309\u002Fskills\u002Fm06-error-handling\u002FSKILL.md) — distinguish expected failure, normal absence, and bugs.\n- [m15-anti-pattern](https:\u002F\u002Fgithub.com\u002Factionbook\u002Frust-skills\u002Fblob\u002Fac5853d230662cc26ace57af995efc52fe7b4309\u002Fskills\u002Fm15-anti-pattern\u002FSKILL.md) — trace suspicious patterns to changed ownership or error design.\n- [coding-guidelines](https:\u002F\u002Fgithub.com\u002Factionbook\u002Frust-skills\u002Fblob\u002Fac5853d230662cc26ace57af995efc52fe7b4309\u002Fskills\u002Fcoding-guidelines\u002FSKILL.md) — consult only for a concrete Rust-specific issue in the changed flow.\n\nThe pinned upstream README advertises MIT, while its `LICENSE` endpoint at this commit returns 404. This skill uses original checklist wording and links to upstream sources; it does not reproduce upstream files or rely on their text being available.\n","# Rust quality\n\nUse this procedure for a scoped Rust module move or refactor. Deliver a behavior-preserving cutover for the current callers. The work is done when the responsibility is at its intended boundary, all affected in-repository users are migrated, ownership and failure behavior still match the governing contracts, and a focused check exercises the changed path or its exact blocker is reported.\n\n## Procedure\n\n1. **Establish the boundary before editing.** Read the requested outcome, applicable product and architecture contracts, the current implementation, its callers, and the relevant tests. In this repository's migration, move behavior that is not highly tied to GUI into `mt-core`, including headless platform I\u002FO where applicable; keep GPUI views and GUI integration in `mt-app`, and keep `mt-core` GPUI-free. Use the product contract and the user's scope to resolve borderline cases; a module's current location or crate name alone does not decide ownership.\n2. **Trace semantic ownership.** For each value crossing the boundary, identify who owns it, how long it lives, and whether callers read, mutate, transfer, or genuinely share it. Prefer moves for transferred ownership and borrows for read-only access. Clone only when independent ownership is required by the contract; use `Rc` or `Arc` only for actual shared ownership. Restructure when a borrow-checker workaround obscures the intended owner.\n3. **Map and complete the cutover.** Find the definition, callers, references, related types, visibility, and module exports with available code search or LSP. Move cohesive behavior together, then update every affected import, caller, re-export, and test. Preserve a compatibility path only when the product or public API contract requires it.\n4. **Preserve failure semantics.** Classify each case before choosing a type. Use `Result` for expected failures unless the product contract represents them as diagnostics. Use `Option` for normal absence. Assert only for invariant violations the contract treats as programmer bugs. Preserve the context callers need; do not change public error types or add an error crate just to satisfy generic advice. In this product, content failures are diagnostics and source text remains editable.\n5. **Review only the changed flow.** Inspect new clones, panics, ignored errors, visibility, pointer sharing, and unsafe code only where the moved behavior touches them. Fix a concrete ownership, failure, or boundary defect required by the task; leave unrelated style and lint cleanup out.\n6. **Verify the moved behavior.** Run a focused existing test for the changed behavior, using the repository's documented command and an appropriate filter, for example:\n   - `cargo test --locked --profile ci -p mt-core \u003Cfocused_filter>`\n   - `cargo test --locked --profile ci -p mt-app \u003Cfocused_filter>`\n\n   Choose the affected package. If no relevant test exists, run `cargo check --locked -p mt-core` or `cargo check --locked -p mt-app` for the affected crate and say that behavior was not test-covered. Follow `docs\u002Fdevelopment.md` for the settled integration tier; a focused check is not a substitute for that gate.\n7. **Report completion.** State the moved responsibility and boundary, affected public references or failure contract, the focused command and observed result, and any higher-level check still pending. Separate observed outcomes from unverified claims.\n\n## Authority and offline use\n\nThis checklist is self-contained; the pinned sources below are optional background when available. Repository product contracts, the requested migration scope, existing behavior tests, and relevant measured evidence outrank generic Rust guidance. Claim a performance improvement only when comparable project measurements support it. Apply the checklist to the changed path, not as a reason to reformat or lint unrelated code.\n\n## Pinned upstream sources\n\nSelected ideas are informed by [`actionbook\u002Frust-skills` v2.0.9 at commit `ac5853d230662cc26ace57af995efc52fe7b4309`](https:\u002F\u002Fgithub.com\u002Factionbook\u002Frust-skills\u002Ftree\u002Fac5853d230662cc26ace57af995efc52fe7b4309):\n\n- [rust-refactor-helper](https:\u002F\u002Fgithub.com\u002Factionbook\u002Frust-skills\u002Fblob\u002Fac5853d230662cc26ace57af995efc52fe7b4309\u002Fskills\u002Frust-refactor-helper\u002FSKILL.md) — reference and caller impact before a move.\n- [m01-ownership](https:\u002F\u002Fgithub.com\u002Factionbook\u002Frust-skills\u002Fblob\u002Fac5853d230662cc26ace57af995efc52fe7b4309\u002Fskills\u002Fm01-ownership\u002FSKILL.md) — decide who owns data before choosing a compiler workaround.\n- [m06-error-handling](https:\u002F\u002Fgithub.com\u002Factionbook\u002Frust-skills\u002Fblob\u002Fac5853d230662cc26ace57af995efc52fe7b4309\u002Fskills\u002Fm06-error-handling\u002FSKILL.md) — distinguish expected failure, normal absence, and bugs.\n- [m15-anti-pattern](https:\u002F\u002Fgithub.com\u002Factionbook\u002Frust-skills\u002Fblob\u002Fac5853d230662cc26ace57af995efc52fe7b4309\u002Fskills\u002Fm15-anti-pattern\u002FSKILL.md) — trace suspicious patterns to changed ownership or error design.\n- [coding-guidelines](https:\u002F\u002Fgithub.com\u002Factionbook\u002Frust-skills\u002Fblob\u002Fac5853d230662cc26ace57af995efc52fe7b4309\u002Fskills\u002Fcoding-guidelines\u002FSKILL.md) — consult only for a concrete Rust-specific issue in the changed flow.\n\nThe pinned upstream README advertises MIT, while its `LICENSE` endpoint at this commit returns 404. This skill uses original checklist wording and links to upstream sources; it does not reproduce upstream files or rely on their text being available.\n",{"name":5,"description":7},"main","0f3f41ed51c357d4f79561a132514089c1aaa97d",".agents\u002Fskills\u002Frust-quality",0,"https:\u002F\u002Fgithub.com\u002Fwxxb789\u002Fmarkturbo","https:\u002F\u002Fgithub.com\u002Fwxxb789","2026-11-15 04:06:53",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add wxxb789\u002Fmarkturbo --skill rust-quality",{"tool":36,"command":37},"bunx","bunx skills add wxxb789\u002Fmarkturbo --skill rust-quality",{"tool":39,"command":40},"pnpm","pnpm dlx skills add wxxb789\u002Fmarkturbo --skill rust-quality","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fwxxb789\u002Fmarkturbo\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Frust-quality\u002FSKILL.md",true,[],[45,52,58,65,72,78],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M7AWXVVZ6JEJVFGGT2WBSEN0","hello-diagrams","A valid, fully-populated Agent Skill, shown here so the Skills inspector has something correct to display.","https:\u002F\u002Fgithub.com\u002Fwxxb789\u002Fmarkturbo\u002Fblob\u002Fmain\u002Fsample\u002F.claude\u002Fskills\u002Fhello-diagrams\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M7AWXTNG6ZV6WW5CHJZXJYEC","Broken-Example","https:\u002F\u002Fgithub.com\u002Fwxxb789\u002Fmarkturbo\u002Fblob\u002Fmain\u002Fsample\u002F.claude\u002Fskills\u002Fbroken-example\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M7AWXS5WN306ENF2MYJYP7VM","valid-skill","A fully conformant skill with every optional field populated.","https:\u002F\u002Fgithub.com\u002Fwxxb789\u002Fmarkturbo\u002Fblob\u002Fmain\u002Ffixtures\u002Fskills\u002Fskills\u002Fvalid-skill\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M7AWXR0NY08YVHE0G8VTJJ97","a-different-name","The name does not match the directory, which is a conformance warning.","https:\u002F\u002Fgithub.com\u002Fwxxb789\u002Fmarkturbo\u002Fblob\u002Fmain\u002Ffixtures\u002Fskills\u002Fskills\u002Fname-mismatch\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M7AWXQ5EV9JCA0WG9Q1WB13Y","missing-metadata","https:\u002F\u002Fgithub.com\u002Fwxxb789\u002Fmarkturbo\u002Fblob\u002Fmain\u002Ffixtures\u002Fskills\u002Fskills\u002Fmissing-metadata\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":18},"01M7AWXP8GT7FATM53B914ZN50","malformed-yaml","https:\u002F\u002Fgithub.com\u002Fwxxb789\u002Fmarkturbo\u002Fblob\u002Fmain\u002Ffixtures\u002Fskills\u002Fskills\u002Fmalformed-yaml\u002FSKILL.md",[],[]]