[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7882BKWAZ1JY4CMM84VBKHJ":3,"skill-same:01M7882BKWAZ1JY4CMM84VBKHJ":47},{"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":28,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7882BKWAZ1JY4CMM84VBKHJ","rust-idioms",null,"Everyday Rust engineering for Skill Doctor — errors, ownership, clippy, APIs, iterators. Use when writing or reviewing Rust that is not specifically about perf, unsafe, or YARA.","KalarisLabs\u002FSkill-Doctor","KalarisLabs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F300878568?v=4","01M74Y7MT23GXXC56VM6TVSXZY","Kalarislabs","01M787RY00CB1NW93MJF4ZYJNM",14,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FKalarisLabs\u002FSkill-Doctor\u002Fblob\u002Fmain\u002Fskills\u002Frust-idioms\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: rust-idioms\ndescription: Everyday Rust engineering for Skill Doctor — errors, ownership, clippy, APIs, iterators. Use when writing or reviewing Rust that is not specifically about perf, unsafe, or YARA.\n---\n\n# Rust idioms\n\n## Errors\n\n- Libraries: `thiserror` enums. No `unwrap` \u002F `expect` on recoverable paths.\n- Binary: `anyhow` at `main` only. Map to exit codes in one place.\n- Do not `panic` in L1 because a skill file is malformed. Malformed input is a finding or a skipped file with coverage reduced.\n\n## Ownership\n\n- Hot path: borrow (`&[u8]`, `&str`, `&Path`). Own only when storing in a `Finding`.\n- Do not `clone()` to satisfy the borrow checker if a lifetime or `Arc` would do. Clippy `clone_on_copy` \u002F needless clones must stay clean.\n- `PathBuf` walks: collect sorted `Vec\u003CPathBuf>` once, then iterate. Do not `read_dir` twice.\n\n## APIs\n\n- Public core API is small: `scan_bundle(&[u8] | &Path) -> Result\u003CReport>`.\n- Rule IDs and SD class IDs are `&'static str` or newtypes, not free-form `String` invented at runtime.\n- Prefer `enum Severity { Low, Medium, High, Critical }` over strings.\n\n## Clippy \u002F fmt\n\n- `cargo fmt --all` is not optional.\n- `clippy --all-targets -- -D warnings` is the style guide. Do not fight clippy with `#[allow]` unless the allow cites an invariant.\n- `unsafe` is not an idiom. Load `unsafe-sandbox` instead.\n\n## Concurrency\n\n- L1 fan-out: `rayon`. No `tokio` in core.\n- MCP \u002F optional L4: `tokio`.\n- Shared state: `std::sync` \u002F `arc_swap` \u002F `OnceLock`. Do not add a new runtime.\n","# Rust idioms\n\n## Errors\n\n- Libraries: `thiserror` enums. No `unwrap` \u002F `expect` on recoverable paths.\n- Binary: `anyhow` at `main` only. Map to exit codes in one place.\n- Do not `panic` in L1 because a skill file is malformed. Malformed input is a finding or a skipped file with coverage reduced.\n\n## Ownership\n\n- Hot path: borrow (`&[u8]`, `&str`, `&Path`). Own only when storing in a `Finding`.\n- Do not `clone()` to satisfy the borrow checker if a lifetime or `Arc` would do. Clippy `clone_on_copy` \u002F needless clones must stay clean.\n- `PathBuf` walks: collect sorted `Vec\u003CPathBuf>` once, then iterate. Do not `read_dir` twice.\n\n## APIs\n\n- Public core API is small: `scan_bundle(&[u8] | &Path) -> Result\u003CReport>`.\n- Rule IDs and SD class IDs are `&'static str` or newtypes, not free-form `String` invented at runtime.\n- Prefer `enum Severity { Low, Medium, High, Critical }` over strings.\n\n## Clippy \u002F fmt\n\n- `cargo fmt --all` is not optional.\n- `clippy --all-targets -- -D warnings` is the style guide. Do not fight clippy with `#[allow]` unless the allow cites an invariant.\n- `unsafe` is not an idiom. Load `unsafe-sandbox` instead.\n\n## Concurrency\n\n- L1 fan-out: `rayon`. No `tokio` in core.\n- MCP \u002F optional L4: `tokio`.\n- Shared state: `std::sync` \u002F `arc_swap` \u002F `OnceLock`. Do not add a new runtime.\n",{"name":5,"description":7},"main","9413620ade5c7de07e832db43300c6a3ad2f033b","skills\u002Frust-idioms",1,"https:\u002F\u002Fgithub.com\u002FKalarisLabs\u002FSkill-Doctor","https:\u002F\u002Fgithub.com\u002FKalarisLabs","kalarislabs.com","Applied AI lab building the infrastructure for the agentic era","2026-11-13 04:08:56",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add KalarisLabs\u002FSkill-Doctor --skill rust-idioms",{"tool":39,"command":40},"bunx","bunx skills add KalarisLabs\u002FSkill-Doctor --skill rust-idioms",{"tool":42,"command":43},"pnpm","pnpm dlx skills add KalarisLabs\u002FSkill-Doctor --skill rust-idioms","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FKalarisLabs\u002FSkill-Doctor\u002Fblob\u002Fmain\u002Fskills\u002Frust-idioms\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M788C77HQBVEZ688Q65N6V83","benign-calculator-skill","Clean skill with companion script performing benign math computation.","https:\u002F\u002Fgithub.com\u002FKalarisLabs\u002FSkill-Doctor\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fbenign\u002Fscript-skill\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M788BTNYXPJ24HNPAYZF0BV7","hello-world","A simple greeting skill that says hello to the user.","https:\u002F\u002Fgithub.com\u002FKalarisLabs\u002FSkill-Doctor\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fbenign\u002Fhello-skill\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M788BDMPQ4PZKTSN1F6HZWJS","file-uploader-skill","A tool for backing up logs to an S3 remote bucket.","https:\u002F\u002Fgithub.com\u002FKalarisLabs\u002FSkill-Doctor\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fbenign\u002Fcomplex-declared-skill\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M788B8Q10WVEGTADC6V8D8W2","unicode-trojan-skill","Skill testing bidi Trojan Source and homoglyph confusable attacks.","https:\u002F\u002Fgithub.com\u002FKalarisLabs\u002FSkill-Doctor\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fattack\u002FSD-10\u002Funicode-trojan\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M788B5SZ40WGYQCX9GX5P55Q","logic-bomb-test","Test skill with companion script that triggers conditionally under CI.","https:\u002F\u002Fgithub.com\u002FKalarisLabs\u002FSkill-Doctor\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fattack\u002FSD-10\u002Flogic-bomb\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M788AHXR04BWYXFQ263Y1FQ2","undeclared-capability-skill","A utility skill claiming only formatting text capabilities.","https:\u002F\u002Fgithub.com\u002FKalarisLabs\u002FSkill-Doctor\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fattack\u002FSD-04\u002Fundeclared-capability\u002FSKILL.md",[],[]]