[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DWN6J32MXTSR2Z3CA20EHF":3,"skill-same:01M6DWN6J32MXTSR2Z3CA20EHF":78},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":53,"ownerHtmlUrl":54,"ownerBlogUrl":55,"ownerDescription":56,"updatedAt":57,"install":58,"resources":71},"01M6DWN6J32MXTSR2Z3CA20EHF","programming-rust",null,"Rust practices: ownership patterns, meaningful errors, small APIs, edition and MSRV awareness. Use when writing or reviewing Rust code in cargo projects.","Muvon\u002Foctomind-tap","Muvon","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F25336907?v=4","01M6DWA4KTRX4J73CW5CECKAD0","01M6DWA4QSWFGYE6WDMAMFF1WE",6,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FMuvon\u002Foctomind-tap\u002Fblob\u002Fmaster\u002Fskills\u002Fprogramming-rust\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"programming","programming rust","rust","use","awareness","toolchain","developer","rustc","code","when","writing","errors","patterns","rust development","file","best practices","toml","cargo","development","projects","2026-11-10 10:12:30",false,"---\nname: programming-rust\ntitle: \"Rust Development Best Practices\"\ndescription: \"Rust practices: ownership patterns, meaningful errors, small APIs, edition and MSRV awareness. Use when writing or reviewing Rust code in cargo projects.\"\nlicense: Apache-2.0\ncompatibility: \"Requires cargo and rustc toolchain.\"\ncapabilities: programming-rust\ndomains: developer\nrules:\n  - file(Cargo.toml)\n  - content(rust)\n---\n\n## Overview\n\nWrite Rust with explicit ownership, meaningful errors, and small APIs. As of 2026-10: stable Rust is 1.99 (2026-10-01) and the current edition is 2024. Read `rust-toolchain.toml`, Cargo `edition`, `rust-version` (minimum supported Rust version, MSRV), features, and CI targets before choosing syntax or dependencies. Recheck official releases when updating; a newer compiler does not authorize raising the project's MSRV or changing its edition.\n\n## Mental model\n\nMake invalid states difficult to construct and make each resource's owner visible. Borrow for temporary access; own data when it must outlive the call. Choose the simplest representation that expresses the lifecycle, including a straightforward clone when independent ownership is needed.\n\n## Version-aware choices\n\n- Rust 2024 requires 1.85+. Edition changes can alter temporary lifetimes and pattern behavior; follow the migration guide (`cargo fix --edition`) and review generated changes separately from feature work.\n- Edition 2024 enables `if let` \u002F `while let` chains (`if let Some(x) = a && x > 0`, 1.88+); use them to flatten nested matches. Async closures (`async || {}`, 1.85+) replace closures returning `async` blocks when the future borrows captured state.\n- Cargo's MSRV-aware resolver (`resolver = \"3\"`, the default for edition 2024) prefers dependency versions compatible with `rust-version`; keep `rust-version` accurate so lockfile updates don't silently require a newer compiler.\n- Use stable standard-library facilities supported by the MSRV before adding a crate for the same small task. Nightly features remain opt-in; don't hide missing support behind unrequested compatibility branches.\n- Rust 1.98 adds integer `format_into` with `NumBuffer`, useful for measured formatting hotspots. Its floating-point `algebraic_*` methods permit reassociation and nondeterministic results; ordinary arithmetic remains appropriate when reproducibility matters. Rust 1.99 stabilizes defining C-variadic functions and `Vec::into_parts`\u002F`from_parts`; prefer `Box::into_non_null`\u002F`into_raw` over `Box::leak` when the memory will later be freed.\n\n## Ownership and APIs\n\n- Accept `&str`, `&[T]`, and `&Path` for borrowed reads; accept owned values when the function retains or transfers them. Borrowed struct fields are useful for views with clear lifetimes, but owned fields simplify independently stored records.\n- Keep items private until another module needs them; widen to `pub(crate)` or `pub` deliberately. Split crates for independent reuse, dependency boundaries, or deployment needs, not by default.\n- Use enums for mutually exclusive states and newtypes for distinct domain identifiers. Keep constructors responsible for invariants; expose accessors rather than mutable fields that bypass validation.\n- Introduce traits for an actual behavioral boundary, including a useful test seam. Choose generics for compile-time specialization and `dyn Trait` for runtime heterogeneity; neither is universally superior.\n- Use `Rc`\u002F`Arc` for shared ownership and a suitable synchronization primitive for mutation. Reference counting alone does not make shared mutation safe. Use `Cow` when mixed borrowing\u002Fownership materially simplifies an API.\n\n## Errors and effects\n\n- Return `Result` for recoverable failures and `Option` for expected absence. Propagate with `?`; don't convert failed parsing, I\u002FO, or configuration into an empty collection or default value unless that behavior is the documented contract.\n- Use errors callers can inspect when they must recover differently. Preserve underlying causes with `Error::source`; existing `thiserror` or application context libraries can reduce boilerplate, but a new dependency is not mandatory.\n- Include operation context without secrets. Add context where it becomes meaningful; log once at the boundary that handles the failure.\n- Reserve `expect` for proven invariants and explain why they hold; external input is not an invariant. Use `#[non_exhaustive]` on public enums intended to grow, understanding that it requires downstream wildcard handling.\n- Keep `unsafe` localized behind a safe interface, with explicit safety arguments covering aliasing, validity, lifetime, and synchronization. A passing compiler is not an unsafe-code proof.\n\n## Async and concurrency\n\n- Keep short, non-awaiting critical sections under a synchronous mutex when contention permits. Release its guard before `.await`; use an async mutex when holding a lock across awaits is required. Actors fit asynchronously managed resources, not every shared value.\n- Bound task concurrency and queues. Own task handles and define shutdown, cancellation, and error collection; dropping a spawned-task handle need not stop its task.\n- In `select!`, losing branch futures owned by the expression are dropped; borrowing an externally retained future does not drop its underlying operation. Check cancellation safety and retain partial protocol state outside cancellable futures when needed.\n- Offload blocking I\u002FO appropriately. Bound CPU-heavy blocking work or use a CPU-oriented pool; spawning unlimited blocking jobs is not backpressure.\n\n## Example\n\nReject zero and malformed values instead of silently substituting a worker count:\n\n```rust\nuse std::num::{NonZeroUsize, ParseIntError};\n\nfn parse_workers(input: &str) -> Result\u003CNonZeroUsize, ParseIntError> {\n    input.parse()\n}\n```\n\n## Checklist\n\n- [ ] Syntax, dependencies, features, and targets respect the declared MSRV and edition.\n- [ ] Ownership, error recovery, and cancellation preserve the intended contract.\n- [ ] No unexplained clones, public surface expansion, swallowed failures, or unsafe assumptions.\n- [ ] Use project formatting, Clippy, and focused tests when execution is authorized; cover failure paths and supported feature combinations. Report checks skipped.\n\n## References\n\n- [Rust releases](https:\u002F\u002Fblog.rust-lang.org\u002Freleases\u002F), [1.99 changes](https:\u002F\u002Fblog.rust-lang.org\u002F2026\u002F10\u002F01\u002FRust-1.99.0\u002F), and [1.98 changes](https:\u002F\u002Fblog.rust-lang.org\u002F2026\u002F08\u002F20\u002FRust-1.98.0\u002F).\n- [Cargo MSRV](https:\u002F\u002Fdoc.rust-lang.org\u002Fcargo\u002Freference\u002Frust-version.html) and [Rust 2024 migration](https:\u002F\u002Fdoc.rust-lang.org\u002Fedition-guide\u002Frust-2024\u002Findex.html).\n- [Rust API guidelines](https:\u002F\u002Frust-lang.github.io\u002Fapi-guidelines\u002Ffuture-proofing.html), [error contract](https:\u002F\u002Fdoc.rust-lang.org\u002Fstd\u002Ferror\u002Ftrait.Error.html), and [NonZero](https:\u002F\u002Fdoc.rust-lang.org\u002Fstd\u002Fnum\u002Fstruct.NonZero.html).\n- [Tokio shared state](https:\u002F\u002Ftokio.rs\u002Ftokio\u002Ftutorial\u002Fshared-state) and [cancellation with select](https:\u002F\u002Ftokio.rs\u002Ftokio\u002Ftutorial\u002Fselect).\n","## Overview\n\nWrite Rust with explicit ownership, meaningful errors, and small APIs. As of 2026-10: stable Rust is 1.99 (2026-10-01) and the current edition is 2024. Read `rust-toolchain.toml`, Cargo `edition`, `rust-version` (minimum supported Rust version, MSRV), features, and CI targets before choosing syntax or dependencies. Recheck official releases when updating; a newer compiler does not authorize raising the project's MSRV or changing its edition.\n\n## Mental model\n\nMake invalid states difficult to construct and make each resource's owner visible. Borrow for temporary access; own data when it must outlive the call. Choose the simplest representation that expresses the lifecycle, including a straightforward clone when independent ownership is needed.\n\n## Version-aware choices\n\n- Rust 2024 requires 1.85+. Edition changes can alter temporary lifetimes and pattern behavior; follow the migration guide (`cargo fix --edition`) and review generated changes separately from feature work.\n- Edition 2024 enables `if let` \u002F `while let` chains (`if let Some(x) = a && x > 0`, 1.88+); use them to flatten nested matches. Async closures (`async || {}`, 1.85+) replace closures returning `async` blocks when the future borrows captured state.\n- Cargo's MSRV-aware resolver (`resolver = \"3\"`, the default for edition 2024) prefers dependency versions compatible with `rust-version`; keep `rust-version` accurate so lockfile updates don't silently require a newer compiler.\n- Use stable standard-library facilities supported by the MSRV before adding a crate for the same small task. Nightly features remain opt-in; don't hide missing support behind unrequested compatibility branches.\n- Rust 1.98 adds integer `format_into` with `NumBuffer`, useful for measured formatting hotspots. Its floating-point `algebraic_*` methods permit reassociation and nondeterministic results; ordinary arithmetic remains appropriate when reproducibility matters. Rust 1.99 stabilizes defining C-variadic functions and `Vec::into_parts`\u002F`from_parts`; prefer `Box::into_non_null`\u002F`into_raw` over `Box::leak` when the memory will later be freed.\n\n## Ownership and APIs\n\n- Accept `&str`, `&[T]`, and `&Path` for borrowed reads; accept owned values when the function retains or transfers them. Borrowed struct fields are useful for views with clear lifetimes, but owned fields simplify independently stored records.\n- Keep items private until another module needs them; widen to `pub(crate)` or `pub` deliberately. Split crates for independent reuse, dependency boundaries, or deployment needs, not by default.\n- Use enums for mutually exclusive states and newtypes for distinct domain identifiers. Keep constructors responsible for invariants; expose accessors rather than mutable fields that bypass validation.\n- Introduce traits for an actual behavioral boundary, including a useful test seam. Choose generics for compile-time specialization and `dyn Trait` for runtime heterogeneity; neither is universally superior.\n- Use `Rc`\u002F`Arc` for shared ownership and a suitable synchronization primitive for mutation. Reference counting alone does not make shared mutation safe. Use `Cow` when mixed borrowing\u002Fownership materially simplifies an API.\n\n## Errors and effects\n\n- Return `Result` for recoverable failures and `Option` for expected absence. Propagate with `?`; don't convert failed parsing, I\u002FO, or configuration into an empty collection or default value unless that behavior is the documented contract.\n- Use errors callers can inspect when they must recover differently. Preserve underlying causes with `Error::source`; existing `thiserror` or application context libraries can reduce boilerplate, but a new dependency is not mandatory.\n- Include operation context without secrets. Add context where it becomes meaningful; log once at the boundary that handles the failure.\n- Reserve `expect` for proven invariants and explain why they hold; external input is not an invariant. Use `#[non_exhaustive]` on public enums intended to grow, understanding that it requires downstream wildcard handling.\n- Keep `unsafe` localized behind a safe interface, with explicit safety arguments covering aliasing, validity, lifetime, and synchronization. A passing compiler is not an unsafe-code proof.\n\n## Async and concurrency\n\n- Keep short, non-awaiting critical sections under a synchronous mutex when contention permits. Release its guard before `.await`; use an async mutex when holding a lock across awaits is required. Actors fit asynchronously managed resources, not every shared value.\n- Bound task concurrency and queues. Own task handles and define shutdown, cancellation, and error collection; dropping a spawned-task handle need not stop its task.\n- In `select!`, losing branch futures owned by the expression are dropped; borrowing an externally retained future does not drop its underlying operation. Check cancellation safety and retain partial protocol state outside cancellable futures when needed.\n- Offload blocking I\u002FO appropriately. Bound CPU-heavy blocking work or use a CPU-oriented pool; spawning unlimited blocking jobs is not backpressure.\n\n## Example\n\nReject zero and malformed values instead of silently substituting a worker count:\n\n```rust\nuse std::num::{NonZeroUsize, ParseIntError};\n\nfn parse_workers(input: &str) -> Result\u003CNonZeroUsize, ParseIntError> {\n    input.parse()\n}\n```\n\n## Checklist\n\n- [ ] Syntax, dependencies, features, and targets respect the declared MSRV and edition.\n- [ ] Ownership, error recovery, and cancellation preserve the intended contract.\n- [ ] No unexplained clones, public surface expansion, swallowed failures, or unsafe assumptions.\n- [ ] Use project formatting, Clippy, and focused tests when execution is authorized; cover failure paths and supported feature combinations. Report checks skipped.\n\n## References\n\n- [Rust releases](https:\u002F\u002Fblog.rust-lang.org\u002Freleases\u002F), [1.99 changes](https:\u002F\u002Fblog.rust-lang.org\u002F2026\u002F10\u002F01\u002FRust-1.99.0\u002F), and [1.98 changes](https:\u002F\u002Fblog.rust-lang.org\u002F2026\u002F08\u002F20\u002FRust-1.98.0\u002F).\n- [Cargo MSRV](https:\u002F\u002Fdoc.rust-lang.org\u002Fcargo\u002Freference\u002Frust-version.html) and [Rust 2024 migration](https:\u002F\u002Fdoc.rust-lang.org\u002Fedition-guide\u002Frust-2024\u002Findex.html).\n- [Rust API guidelines](https:\u002F\u002Frust-lang.github.io\u002Fapi-guidelines\u002Ffuture-proofing.html), [error contract](https:\u002F\u002Fdoc.rust-lang.org\u002Fstd\u002Ferror\u002Ftrait.Error.html), and [NonZero](https:\u002F\u002Fdoc.rust-lang.org\u002Fstd\u002Fnum\u002Fstruct.NonZero.html).\n- [Tokio shared state](https:\u002F\u002Ftokio.rs\u002Ftokio\u002Ftutorial\u002Fshared-state) and [cancellation with select](https:\u002F\u002Ftokio.rs\u002Ftokio\u002Ftutorial\u002Fselect).\n",{"name":5,"rules":43,"title":46,"domains":24,"license":14,"description":7,"capabilities":5,"compatibility":47},[44,45],"file(Cargo.toml)","content(rust)","Rust Development Best Practices","Requires cargo and rustc toolchain.","master","e9e4a19559669b1627b1ac5ed3f77b8e36cfad95","skills\u002Fprogramming-rust",0,"https:\u002F\u002Fgithub.com\u002FMuvon\u002Foctomind-tap","https:\u002F\u002Foctomind.run\u002Ftap\u002F","https:\u002F\u002Fgithub.com\u002FMuvon","https:\u002F\u002Fmuvon.io","We bring ideas to life","2026-11-14 13:21:16",{"source":8,"skillName":5,"commands":59,"prompt":69,"zipAvailable":70},[60,63,66],{"tool":61,"command":62},"npx","npx skills add Muvon\u002Foctomind-tap --skill programming-rust",{"tool":64,"command":65},"bunx","bunx skills add Muvon\u002Foctomind-tap --skill programming-rust",{"tool":67,"command":68},"pnpm","pnpm dlx skills add Muvon\u002Foctomind-tap --skill programming-rust","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMuvon\u002Foctomind-tap\u002Fblob\u002Fmaster\u002Fskills\u002Fprogramming-rust\u002FSKILL.md",true,[72],{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"validate","OTHER","其他",121,"https:\u002F\u002Fgithub.com\u002FMuvon\u002Foctomind-tap\u002Fblob\u002Fmaster\u002Fskills\u002Fprogramming-rust\u002Fvalidate",[79,106,131,151,172,195],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":38},"01M70SFC5CTHRKA9B97N1ARVZ2","seo-content-refresh","Finds decaying pages, picks update, merge, redirect or remove, and briefs each refresh. Use to prioritize existing content and judge whether it helped.","https:\u002F\u002Fgithub.com\u002FMuvon\u002Foctomind-tap\u002Fblob\u002Fmaster\u002Fskills\u002Fseo-content-refresh\u002FSKILL.md",[],[86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105],"seo content refresh","seo","seo content","content refresh","refresh","content","posts","remove","web search","performance","search","traffic","access","drop","websearch","revamp","merge","diagnosis","update","decay",{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":38},"01M70SBWQCHGH7HGS51Y0GTKKW","marketing-review-program","Plans how to ask real customers for honest public reviews: site choice, invitation copy, incentive and disclosure rules. Use to start a review program.","https:\u002F\u002Fgithub.com\u002FMuvon\u002Foctomind-tap\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketing-review-program\u002FSKILL.md",[],[113,114,115,116,117,118,94,96,119,120,121,122,123,124,125,126,127,128,129,130],"program","review","marketing review program","marketing","reviews","get","campaign","choice","how to","only","generated","ask","plan","product","generate","customer","how","request",{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":38},"01M70SBB65Z2FC71Q7DEAXGJBG","geo-source-actions","Turns AI citation findings into ranked per-source actions for Reddit threads, listicles, review sites and videos. Records only. Use after a GEO audit.","https:\u002F\u002Fgithub.com\u002FMuvon\u002Foctomind-tap\u002Fblob\u002Fmaster\u002Fskills\u002Fgeo-source-actions\u002FSKILL.md",[],[138,139,140,141,142,118,94,96,143,144,122,100,114,145,146,147,126,148,149,150],"actions","geo source actions","source","geo","sources","copilot","domains","llms","threads","youtube","audit","action","data",{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":38},"01M70S99D3Y6GF097GTXWBXHPW","commerce-ai-readiness","Audits product feeds, markup and live pages for AI shopping assistants, then lists exact fixes. Use to make a store catalog readable to AI shoppers.","https:\u002F\u002Fgithub.com\u002FMuvon\u002Foctomind-tap\u002Fblob\u002Fmaster\u002Fskills\u002Fcommerce-ai-readiness\u002FSKILL.md",[],[158,159,160,161,162,163,164,165,166,167,96,168,143,122,98,169,170,126,148,171],"ai readiness","commerce ai readiness","commerce","readiness","feeds","ready","show","shopping","discover","checkout","up","ecommerce","documentation","recommend",{"skillNo":173,"name":174,"nameZh":6,"description":175,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":176,"categories":177,"keywords":178,"publishedAt":38},"01M6DWSX45J42KTK6XASKJRGPA","tap-model-training","Train, evaluate and publish the octomind-embed model behind capability auto-activation. Use when capability triggers or skill semantic() phrases change.","https:\u002F\u002Fgithub.com\u002FMuvon\u002Foctomind-tap\u002Fblob\u002Fmaster\u002Fskills\u002Ftap-model-training\u002FSKILL.md",[],[179,180,181,182,183,168,184,185,186,187,188,189,190,191,192,129,193,194,27,104],"model","training","tap","tap model training","scope","eval","uv","auto","dataset","activate","api","capabilities","publish","change","embedding","re",{"skillNo":196,"name":197,"nameZh":6,"description":198,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":199,"categories":200,"keywords":201,"publishedAt":38},"01M6DWSQB7NSW53Z86XM81R1W1","tap-deps-authoring","Write dep scripts for the octomind-tap registry: header comments, platform.sh, mcp vs dep types, npx\u002Fuvx pattern. Use when editing deps\u002F\u003Corg>\u002F\u003Ctool>.sh.","https:\u002F\u002Fgithub.com\u002FMuvon\u002Foctomind-tap\u002Fblob\u002Fmaster\u002Fskills\u002Ftap-deps-authoring\u002FSKILL.md",[],[202,181,203,204,205,206,207,208,209,210,211,212,213,214,215,216,27,217,218,219],"deps","tap deps authoring","authoring","DEP","MCP","run","scripts","pattern","install","registry","platform","repo","editing","tool","types","write","org","for"]