[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DESP0C475JZXW8SW3A2N54":3,"skill-same:01M7DESP0C475JZXW8SW3A2N54":90},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7DESP0C475JZXW8SW3A2N54","rust",null,"Use when writing, reviewing, scaffolding, releasing, or measuring coverage on Rust code — routes to references for style, project layout, testing, Dockerfile, and release","kejadlen\u002Fdotfiles","kejadlen","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F8639?v=4","01M7DEPV4SN2WBW50SBF2KG7D1","Alpha Chen","01M7DEPV5FBX0YWCBKEVHKT8E2",10,"MIT","https:\u002F\u002Fgithub.com\u002Fkejadlen\u002Fdotfiles\u002Fblob\u002Fmain\u002Fai\u002Fskills\u002Frust\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: rust\ndescription: Use when writing, reviewing, scaffolding, releasing, or measuring coverage on Rust code — routes to references for style, project layout, testing, Dockerfile, and release\n---\n\n# Rust\n\nPreferences for writing and shipping Rust. The actual guidance lives\nin references — this file routes by task and lists the cross-cutting\nprinciples that apply everywhere.\n\n*This is a self-improving skill. If you used it and it came up short — a missing command, flag, gotcha, or workflow — invoke the `self-improving-skills` skill and follow it before you finish.*\n\n## When to read which reference\n\n| Task | Read |\n|------|------|\n| Writing or reviewing Rust code | `style.md` |\n| Scaffolding a new project | `scaffolding.md` + `binary.md` (CLI) or `server.md` (server) |\n| Setting up a Dockerfile for a server | `dockerfile.md` |\n| Debugging coverage gaps | `coverage.md` |\n| Adding property tests | `property-testing.md` |\n| Adding mutation testing | `mutation-testing.md` |\n| Wiring `\u003CNAME>_VERSION` into a binary | `versioning.md` |\n| Releasing a CLI binary | `binary.md` (release section) |\n| Deploying a server | `server.md` (deploy section) + `dockerfile.md` |\n\n## Cross-cutting principles\n\nThese apply to every Rust project regardless of shape.\n\n### Edition\n\n`edition = \"2024\"` for new projects. Bump existing projects when\nupstream dependencies require it, not preemptively.\n\n### Project structure\n\nSingle crate with both library and binary targets. All domain logic\nlives in the library; the binary is a thin shell that parses input,\ncalls the library, and renders output. `scaffolding.md` covers the\nlayout in detail.\n\n### Errors\n\nLibrary errors derive `thiserror::Error` *and* `miette::Diagnostic`.\nThe diagnostic codes and help text live on the variant itself, so\nerrors carry their own labels and source spans through tests, other\nbinaries, and HTTP handlers. Binaries return `miette::Result\u003C()>` from\n`main` and call `miette::set_panic_hook()` early.\n\n### Logging\n\nUse `tracing` and `tracing-subscriber` with `EnvFilter`. Never\n`println!` for diagnostic output — `println!` belongs to user-facing\nprogram output only.\n\n### Filesystem\n\nUse `fs-err` instead of `std::fs`. Bare `std::fs` errors omit the\npath that failed. The Clippy configuration in `style.md` enforces\nthis.\n\n### Cargo.lock\n\nCommit `Cargo.lock` for binaries (CLIs and servers both). Builds\nstay reproducible even though dependency versions in `Cargo.toml`\nare unpinned (`\"*\"`). `cargo update` upgrades to the latest\ncompatible release without editing `Cargo.toml`.\n\n### Task runner\n\nUse `just`. The `justfile` template is in `scaffolding.md`.\n\n### CI\n\nGitHub Actions, with every `uses:` pinned to a commit SHA and a\nversion comment (`@\u003Csha> # v4`). Never pin to a moving tag.\n\n### Async runtime\n\n`tokio` with `features = [\"full\"]` for both CLIs and servers.\nSingle-threaded runtimes are an opt-in micro-optimization, not a\ndefault.\n","# Rust\n\nPreferences for writing and shipping Rust. The actual guidance lives\nin references — this file routes by task and lists the cross-cutting\nprinciples that apply everywhere.\n\n*This is a self-improving skill. If you used it and it came up short — a missing command, flag, gotcha, or workflow — invoke the `self-improving-skills` skill and follow it before you finish.*\n\n## When to read which reference\n\n| Task | Read |\n|------|------|\n| Writing or reviewing Rust code | `style.md` |\n| Scaffolding a new project | `scaffolding.md` + `binary.md` (CLI) or `server.md` (server) |\n| Setting up a Dockerfile for a server | `dockerfile.md` |\n| Debugging coverage gaps | `coverage.md` |\n| Adding property tests | `property-testing.md` |\n| Adding mutation testing | `mutation-testing.md` |\n| Wiring `\u003CNAME>_VERSION` into a binary | `versioning.md` |\n| Releasing a CLI binary | `binary.md` (release section) |\n| Deploying a server | `server.md` (deploy section) + `dockerfile.md` |\n\n## Cross-cutting principles\n\nThese apply to every Rust project regardless of shape.\n\n### Edition\n\n`edition = \"2024\"` for new projects. Bump existing projects when\nupstream dependencies require it, not preemptively.\n\n### Project structure\n\nSingle crate with both library and binary targets. All domain logic\nlives in the library; the binary is a thin shell that parses input,\ncalls the library, and renders output. `scaffolding.md` covers the\nlayout in detail.\n\n### Errors\n\nLibrary errors derive `thiserror::Error` *and* `miette::Diagnostic`.\nThe diagnostic codes and help text live on the variant itself, so\nerrors carry their own labels and source spans through tests, other\nbinaries, and HTTP handlers. Binaries return `miette::Result\u003C()>` from\n`main` and call `miette::set_panic_hook()` early.\n\n### Logging\n\nUse `tracing` and `tracing-subscriber` with `EnvFilter`. Never\n`println!` for diagnostic output — `println!` belongs to user-facing\nprogram output only.\n\n### Filesystem\n\nUse `fs-err` instead of `std::fs`. Bare `std::fs` errors omit the\npath that failed. The Clippy configuration in `style.md` enforces\nthis.\n\n### Cargo.lock\n\nCommit `Cargo.lock` for binaries (CLIs and servers both). Builds\nstay reproducible even though dependency versions in `Cargo.toml`\nare unpinned (`\"*\"`). `cargo update` upgrades to the latest\ncompatible release without editing `Cargo.toml`.\n\n### Task runner\n\nUse `just`. The `justfile` template is in `scaffolding.md`.\n\n### CI\n\nGitHub Actions, with every `uses:` pinned to a commit SHA and a\nversion comment (`@\u003Csha> # v4`). Never pin to a moving tag.\n\n### Async runtime\n\n`tokio` with `features = [\"full\"]` for both CLIs and servers.\nSingle-threaded runtimes are an opt-in micro-optimization, not a\ndefault.\n",{"name":5,"description":7},"main","54400d2fb3ebb925baf35311c647aaa31e7a5222","ai\u002Fskills\u002Frust",0,"https:\u002F\u002Fgithub.com\u002Fkejadlen\u002Fdotfiles","https:\u002F\u002Fgithub.com\u002Fkejadlen","https:\u002F\u002Fkejadlen.dev","2026-11-14 03:39:37",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add kejadlen\u002Fdotfiles --skill rust",{"tool":38,"command":39},"bunx","bunx skills add kejadlen\u002Fdotfiles --skill rust",{"tool":41,"command":42},"pnpm","pnpm dlx skills add kejadlen\u002Fdotfiles --skill rust","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkejadlen\u002Fdotfiles\u002Fblob\u002Fmain\u002Fai\u002Fskills\u002Frust\u002FSKILL.md",true,[46,52,56,62,66,70,74,78,82,86],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"binary.md","REFERENCE","参考文档",6663,"https:\u002F\u002Fgithub.com\u002Fkejadlen\u002Fdotfiles\u002Fblob\u002Fmain\u002Fai\u002Fskills\u002Frust\u002Fbinary.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"coverage.md",10670,"https:\u002F\u002Fgithub.com\u002Fkejadlen\u002Fdotfiles\u002Fblob\u002Fmain\u002Fai\u002Fskills\u002Frust\u002Fcoverage.md",{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"coverage.sh","SCRIPT","脚本",2484,"https:\u002F\u002Fgithub.com\u002Fkejadlen\u002Fdotfiles\u002Fblob\u002Fmain\u002Fai\u002Fskills\u002Frust\u002Fcoverage.sh",{"path":63,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":64,"sourceHtmlUrl":65},"dockerfile.md",6181,"https:\u002F\u002Fgithub.com\u002Fkejadlen\u002Fdotfiles\u002Fblob\u002Fmain\u002Fai\u002Fskills\u002Frust\u002Fdockerfile.md",{"path":67,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":68,"sourceHtmlUrl":69},"mutation-testing.md",3931,"https:\u002F\u002Fgithub.com\u002Fkejadlen\u002Fdotfiles\u002Fblob\u002Fmain\u002Fai\u002Fskills\u002Frust\u002Fmutation-testing.md",{"path":71,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":72,"sourceHtmlUrl":73},"property-testing.md",4866,"https:\u002F\u002Fgithub.com\u002Fkejadlen\u002Fdotfiles\u002Fblob\u002Fmain\u002Fai\u002Fskills\u002Frust\u002Fproperty-testing.md",{"path":75,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":76,"sourceHtmlUrl":77},"scaffolding.md",7549,"https:\u002F\u002Fgithub.com\u002Fkejadlen\u002Fdotfiles\u002Fblob\u002Fmain\u002Fai\u002Fskills\u002Frust\u002Fscaffolding.md",{"path":79,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":80,"sourceHtmlUrl":81},"server.md",7147,"https:\u002F\u002Fgithub.com\u002Fkejadlen\u002Fdotfiles\u002Fblob\u002Fmain\u002Fai\u002Fskills\u002Frust\u002Fserver.md",{"path":83,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":84,"sourceHtmlUrl":85},"style.md",15395,"https:\u002F\u002Fgithub.com\u002Fkejadlen\u002Fdotfiles\u002Fblob\u002Fmain\u002Fai\u002Fskills\u002Frust\u002Fstyle.md",{"path":87,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":88,"sourceHtmlUrl":89},"versioning.md",1412,"https:\u002F\u002Fgithub.com\u002Fkejadlen\u002Fdotfiles\u002Fblob\u002Fmain\u002Fai\u002Fskills\u002Frust\u002Fversioning.md",[91,98,105,112,119,126],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M7DEVM19CB8GSCZV56PHA594","zoekt","Use when searching code across repositories — prefer zoekt over grep\u002Fripgrep for indexed code search. Covers indexing repos, search syntax, and query patterns.","https:\u002F\u002Fgithub.com\u002Fkejadlen\u002Fdotfiles\u002Fblob\u002Fmain\u002Fai\u002Fskills\u002Fzoekt\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M7DEVF10JKR56RSX30PZ8BNH","writing-for-accessibility","Use when writing documentation, alt text, diagrams, or any content that should be accessible to people with disabilities. Covers alt text, color contrast, inclusive language, and accessible visuals. Also use when reviewing documents for accessibility.","https:\u002F\u002Fgithub.com\u002Fkejadlen\u002Fdotfiles\u002Fblob\u002Fmain\u002Fai\u002Fskills\u002Fwriting-for-accessibility\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":19},"01M7DEVA0Q63VMQWG32VN18XYB","writing-error-messages","Use when writing, reviewing, or improving error messages in code, CLI tools, APIs, or UIs. Covers identifying the cause, explaining the fix, and setting the right tone. Also use when error messages are vague, unactionable, or confusing.","https:\u002F\u002Fgithub.com\u002Fkejadlen\u002Fdotfiles\u002Fblob\u002Fmain\u002Fai\u002Fskills\u002Fwriting-error-messages\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":19},"01M7DEV6GGF2H3FW3YCPWXRRT6","working-in-the-open","Use when making design decisions during implementation — routes rationale to the right venue (commits, task comments, code comments, or documentation) based on how durable the context needs to be","https:\u002F\u002Fgithub.com\u002Fkejadlen\u002Fdotfiles\u002Fblob\u002Fmain\u002Fai\u002Fskills\u002Fworking-in-the-open\u002FSKILL.md",[],[],{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":19},"01M7DEV2XTM37B9S0QV8X9SNSW","web-standards","Use when writing or reviewing HTML, CSS, or browser JavaScript — covers semantic markup, native platform features over libraries, Baseline browser support, accessibility and APCA contrast, and optional validation with vnu, axe, and Lighthouse","https:\u002F\u002Fgithub.com\u002Fkejadlen\u002Fdotfiles\u002Fblob\u002Fmain\u002Fai\u002Fskills\u002Fweb-standards\u002FSKILL.md",[],[],{"skillNo":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":19},"01M7DETYVQNPNGXC094DT0PTDF","web-design","Use when designing or building web UI, frontends, or styling — covers personal web design preferences, fluid layout, and Alpine.js","https:\u002F\u002Fgithub.com\u002Fkejadlen\u002Fdotfiles\u002Fblob\u002Fmain\u002Fai\u002Fskills\u002Fweb-design\u002FSKILL.md",[],[]]