[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EE0RHPC1RY8GM3MKJ9S5RB":3,"skill-same:01M6EE0RHPC1RY8GM3MKJ9S5RB":48},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":21,"linkOnly":22,"markdownContent":23,"markdownBody":23,"frontMatter":24,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M6EE0RHPC1RY8GM3MKJ9S5RB","rust-review",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FRediSearch\u002FRediSearch\u002Frust-review\u002FSKILL.md",[],[18,19,20],"review","rust","rust review","2026-11-10 10:12:30",false,"# Rust Review\n\nReview Rust code changes for unsafe correctness, documentation quality, and (when applicable) C-to-Rust porting fidelity.\n\n## Arguments\n\nThe input specifies what to review. Exactly one of the following forms:\n\n**Changesets:**\n- `\u003Crevset>`: A jj revset (when `.jj\u002F` is present) — uses `jj diff -r \u003Crevset>`.\n  Examples: `slrzwyul`, `slrzwyul::vlrzmzvm`, `@-`.\n- `\u003Ccommit>` or `\u003Ccommit1>..\u003Ccommit2>`: Git commit(s) (when `.jj\u002F` is absent) — uses `git diff` \u002F `git show`.\n- `pr:\u003Cnumber>`: GitHub pull request — fetches the PR branch and reviews locally.\n\n**Source files or directories:**\n- `\u003Cpath>`: Path to a Rust file or directory.\n- `\u003Cpath1> \u003Cpath2>`: Multiple files or directories.\n\nIf a path doesn't include `src\u002F`, assume it to be in the `src\u002Fredisearch_rs` directory.\nE.g. `trie_rs` becomes `src\u002Fredisearch_rs\u002Ftrie_rs`.\nIf a path points to a directory, review all `.rs` files in that directory (recursively).\n\n**No argument:** default to reviewing the uncommitted working-tree changes\n(`jj diff` if `.jj\u002F` is present, `git diff` otherwise).\n\n## Instructions\n\n### 1. Collect the code to review\n\n**When reviewing a changeset** (revset, commits, or PR), obtain the full diff of the\nRust files (`.rs`):\n\n```bash\n# Jujutsu changes (when .jj\u002F is present)\njj diff -r \u003Crevset> --git -- glob:'**\u002F*.rs'\n\n# Git commits (when .jj\u002F is absent)\ngit diff \u003Ccommit1>..\u003Ccommit2> -- '*.rs'\n# or for a single commit\ngit show \u003Ccommit> -- '*.rs'\n```\n\n**For a GitHub PR** (`pr:\u003Cnumber>`), fetch the PR head ref and diff against master:\n\n```bash\n# When .jj\u002F is absent:\ngit fetch origin refs\u002Fpull\u002F\u003Cnumber>\u002Fhead\ngit diff origin\u002Fmaster...FETCH_HEAD -- '*.rs'\n\n# When .jj\u002F is present:\ngit fetch origin refs\u002Fpull\u002F\u003Cnumber>\u002Fhead\njj git import\n# Use the fetched SHA directly in the revset\njj diff -r 'master@origin..\u003Csha>' --git -- glob:'**\u002F*.rs'\n```\n\nRead the full source of every Rust file that was added or modified so that you have\ncomplete context (not just the diff hunks).\n\n**When reviewing source files or directories**, there is no diff — read the full source\nof every `.rs` file at the given path(s) and review them in their entirety.\n\n### 2. Determine if this is a C-to-Rust port\n\nScan the diff and commit messages for signals that the change re-implements existing C code:\n- New files under `c_entrypoint\u002F*_ffi\u002F`\n- Removal or reduction of C files with corresponding new Rust files\n- Commit messages mentioning \"port\", \"migrate\", \"rewrite\", \"reimplement\", or \"replace\"\n\nIf detected, set **porting mode = true** and identify the original C module(s) by reading\nthem with [`\u002Fread-unmodified-c-module`](..\u002Fread-unmodified-c-module\u002FSKILL.md).\n\n### 3. Review checklist\n\nRun every check below on the changed Rust code. For each violation found, record:\n- **File and line** (or line range)\n- **Rule** that is violated\n- **Explanation** of the issue\n- **Suggested fix**\n\n#### 3a. Unsafe — method pre-conditions\n\nEvery `unsafe fn` must have a `# Safety` section in its doc comment that documents\n**all** pre-conditions the caller must uphold.\n\nViolations:\n- `unsafe fn` with no doc comment at all.\n- `unsafe fn` with a doc comment but no `# Safety` section.\n- `# Safety` section that omits a pre-condition required for soundness\n  (e.g. pointer validity, alignment, aliasing, lifetime, initialized memory).\n\n#### 3b. Unsafe — call-site safety comments\n\nEvery `unsafe` block (or `unsafe` call inside an `unsafe fn`) must have a\n`\u002F\u002F SAFETY:` comment **immediately preceding** the unsafe block or call that\nexplains why every pre-condition of the called function \u002F accessed operation\nis satisfied at that call site.\n\nViolations:\n- Missing `\u002F\u002F SAFETY:` comment.\n- Comment that does not address every pre-condition listed in the callee's `# Safety`\n  section (or the standard library's documented safety requirements).\n- Generic or vacuous comments (e.g. `\u002F\u002F SAFETY: safe to call`) that do not reference\n  the specific pre-conditions.\n\n#### 3c. Rustdoc — intra-doc links\n\nWhen a rustdoc comment mentions a Rust symbol (type, function, constant, trait, module, etc.),\nit must use an [intra-doc link](https:\u002F\u002Fdoc.rust-lang.org\u002Frustdoc\u002Fwrite-documentation\u002Flinking-to-items-by-name.html)\n(`[`Symbol`]` or `[`Symbol::method`]`).\n\nViolations:\n- A symbol name appears in backticks (`` `Foo` ``) inside a doc comment but is not an intra-doc link.\n- A symbol name appears as plain text inside a doc comment without backticks or link.\n\nExceptions: symbols that are not Rust items (e.g. C function names, Redis command names,\nfield names used in prose) do not need intra-doc links.\n\n### 4. Porting-mode checks (only when porting mode = true)\n\n#### 4a. Semantic equivalence\n\nCompare the new Rust implementation against the original C code and verify:\n- All branches \u002F code paths in the C code have a corresponding path in Rust.\n- Edge cases (NULL checks, overflow, empty inputs, error returns) are preserved or\n  replaced with idiomatic Rust equivalents (e.g. `Option`, `Result`).\n- Numeric types and casts preserve the original semantics (watch for sign \u002F width changes).\n- Side effects (global state mutations, logging, metric updates) are preserved.\n\nViolations: any semantic divergence that could change observable behavior.\n\n#### 4b. Test coverage\n\nIdentify all C\u002FC++ tests that exercise the ported module (look under `tests\u002F` for files\nthat reference the module's functions or types).\n\nFor each C\u002FC++ test, verify that an equivalent Rust test exists that covers the same\nscenario. Use [`\u002Fcheck-rust-coverage`](..\u002Fcheck-rust-coverage\u002FSKILL.md) to confirm\nline-level coverage of the new Rust code.\n\nViolations:\n- A C\u002FC++ test scenario that has no corresponding Rust test.\n- Rust code paths that are uncovered by any test.\n\n### 5. Emit the report\n\nPresent findings grouped by check (3a, 3b, 3c, 4a, 4b). For each group, list the\nviolations or state \"No issues found.\"\n\nAt the end, provide a summary:\n- Total number of violations by severity (blocking vs. suggestion).\n- Whether the change is **ready to merge** or **needs revision**.\n\nBlocking violations: any issue in 3a, 3b, 4a, or 4b.\nSuggestions: issues in 3c (intra-doc links).\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FRediSearch\u002FRediSearch\u002Frust-review",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill rust-review",{"tool":40,"command":41},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill rust-review",{"tool":43,"command":44},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill rust-review","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FRediSearch\u002FRediSearch\u002Frust-review\u002FSKILL.md",true,[],[49,58,67,76,82,88],{"skillNo":50,"name":51,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":21},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[55,56,57],"model","model hierarchy","model hierarchy skill",{"skillNo":59,"name":60,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":21},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[64,65,66],"MCP","zoom","zoom mcp",{"skillNo":68,"name":69,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":21},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[73,74,75,65],"sdk","zoom apps sdk","apps",{"skillNo":77,"name":78,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":21},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[78],{"skillNo":83,"name":84,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":21},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[84],{"skillNo":89,"name":90,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":21},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[90]]