[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CFK1SVTN0H0GTN948ZVN18":3,"skill-same:01M7CFK1SVTN0H0GTN948ZVN18":45},{"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":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7CFK1SVTN0H0GTN948ZVN18","rust-migration-slice",null,"Carry one TypeScript (or Python\u002FJS) subsystem through the full Rust migration sequence — contract capture, Rust implementation, parity verification, consumer switch, legacy deletion, ledger update, commit. Use for any \"port X to Rust\" \u002F \"continue the migration\" request.","Sanidhya14321\u002Fharvest","Sanidhya14321","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F163896084?v=4","01M7CFGCT2VK10ZTPEKWEJ69PG","Sanidhya Vats","01M7CFGCTM8RP8TZ8H4CW2S4WT",3,"MIT","https:\u002F\u002Fgithub.com\u002FSanidhya14321\u002Fharvest\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frust-migration-slice\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: rust-migration-slice\ndescription: Carry one TypeScript (or Python\u002FJS) subsystem through the full Rust migration sequence — contract capture, Rust implementation, parity verification, consumer switch, legacy deletion, ledger update, commit. Use for any \"port X to Rust\" \u002F \"continue the migration\" request.\n---\n\n# Migrate one slice to Rust\n\nRead first (once per session): `docs\u002Frust-migration\u002FHANDOFF.md`, `docs\u002Frust-migration\u002FREADME.md`, `AGENTS.md`. Executable sources beat prose. Run `\u002Fmigration-status` if no slice was named.\n\n## Hard rules\n- Never mark ledger\u002Fcapability rows verified without evidence; never delete ledger rows; never relax xtask gates.\n- Reuse mature engines (`pi-edit`, `pi-shell`, `pi-walker`, `pi-vcs`, `pi-ast`, `harvest-runtime` jail\u002Fbounded IO\u002Fatomic writes). Do not write a weaker second implementation.\n- Model\u002Fprovider policy stays in KDL; prompts stay static `.md` (use `include_str!`). Generated files are regenerated, never hand-edited.\n- No JS-runtime fallback for retired features — fail with an actionable migration message.\n- Tests: `cargo xtask test -p \u003Ccrate>` (never bare `cargo test`). Tests assert observable contracts; no source-grep tests.\n\n## Sequence\n1. **Scope**: pick a slice with a closed set of files. List them and their consumers (`grep -rn` imports\u002Fcallsites incl. workers in `packages\u002Fcoding-agent\u002Fsrc\u002Fcli.ts`, build scripts, Bazel `BUILD.bazel`, CI workflows).\n2. **Contract capture**: document inputs\u002Foutputs, error mapping, limits, persisted formats, cancellation. Build an oracle: run the *current* implementation over representative + malformed inputs and save outputs (scratchpad) for byte comparison. Port meaningful existing TS tests as Rust tests.\n3. **Implement** in an ordinary Rust crate (existing `crates\u002Fharvest-*` or new one added to root `Cargo.toml` workspace, `Cargo.lock`, Bazel `BUILD.bazel`\u002F`MODULE.bazel`, and Rust CI package lists). Explicit bounds *before* allocation\u002Fdecoding. If TS still calls it, keep a thin N-API adapter (see `\u002Fnapi-extract`).\n4. **Verify**: `cargo xtask test -p \u003Ccrate>`, `cargo clippy -p \u003Ccrate> --all-targets -- -D warnings`, `cargo fmt -p \u003Ccrate> -- --check` (only changed files in `pi-natives` — run `rustfmt` on them, not the crate). Compare oracle byte-for-byte. If natives changed: `bun run build:native`, then focused `bun test \u003Cpath>` for TS consumers, `bun --cwd=packages\u002Fcoding-agent run check`.\n5. **Switch consumers** (callers, generators, packaging, docs). Delete superseded TS\u002FTSX\u002Fdeclarations only when *every* consumer moved. Remove orphaned deps\u002Fconfig.\n6. **Ledger**: update the slice's `source-ledger.json` entries (contract, consumers, rust_destination, verification states, legacy_removal) and `capabilities.json` honestly; add a section to `docs\u002Frust-migration\u002FREADME.md` with real counts. Run `cargo xtask migration` and `cargo xtask capabilities` to confirm the gates accept it.\n7. **Commit** one verified slice (conventional subject, e.g. `refactor(media): move sixel encode\u002Fdecode into harvest-media`), only if the user authorized commits. Report what is still TS\u002Funverified.\n","# Migrate one slice to Rust\n\nRead first (once per session): `docs\u002Frust-migration\u002FHANDOFF.md`, `docs\u002Frust-migration\u002FREADME.md`, `AGENTS.md`. Executable sources beat prose. Run `\u002Fmigration-status` if no slice was named.\n\n## Hard rules\n- Never mark ledger\u002Fcapability rows verified without evidence; never delete ledger rows; never relax xtask gates.\n- Reuse mature engines (`pi-edit`, `pi-shell`, `pi-walker`, `pi-vcs`, `pi-ast`, `harvest-runtime` jail\u002Fbounded IO\u002Fatomic writes). Do not write a weaker second implementation.\n- Model\u002Fprovider policy stays in KDL; prompts stay static `.md` (use `include_str!`). Generated files are regenerated, never hand-edited.\n- No JS-runtime fallback for retired features — fail with an actionable migration message.\n- Tests: `cargo xtask test -p \u003Ccrate>` (never bare `cargo test`). Tests assert observable contracts; no source-grep tests.\n\n## Sequence\n1. **Scope**: pick a slice with a closed set of files. List them and their consumers (`grep -rn` imports\u002Fcallsites incl. workers in `packages\u002Fcoding-agent\u002Fsrc\u002Fcli.ts`, build scripts, Bazel `BUILD.bazel`, CI workflows).\n2. **Contract capture**: document inputs\u002Foutputs, error mapping, limits, persisted formats, cancellation. Build an oracle: run the *current* implementation over representative + malformed inputs and save outputs (scratchpad) for byte comparison. Port meaningful existing TS tests as Rust tests.\n3. **Implement** in an ordinary Rust crate (existing `crates\u002Fharvest-*` or new one added to root `Cargo.toml` workspace, `Cargo.lock`, Bazel `BUILD.bazel`\u002F`MODULE.bazel`, and Rust CI package lists). Explicit bounds *before* allocation\u002Fdecoding. If TS still calls it, keep a thin N-API adapter (see `\u002Fnapi-extract`).\n4. **Verify**: `cargo xtask test -p \u003Ccrate>`, `cargo clippy -p \u003Ccrate> --all-targets -- -D warnings`, `cargo fmt -p \u003Ccrate> -- --check` (only changed files in `pi-natives` — run `rustfmt` on them, not the crate). Compare oracle byte-for-byte. If natives changed: `bun run build:native`, then focused `bun test \u003Cpath>` for TS consumers, `bun --cwd=packages\u002Fcoding-agent run check`.\n5. **Switch consumers** (callers, generators, packaging, docs). Delete superseded TS\u002FTSX\u002Fdeclarations only when *every* consumer moved. Remove orphaned deps\u002Fconfig.\n6. **Ledger**: update the slice's `source-ledger.json` entries (contract, consumers, rust_destination, verification states, legacy_removal) and `capabilities.json` honestly; add a section to `docs\u002Frust-migration\u002FREADME.md` with real counts. Run `cargo xtask migration` and `cargo xtask capabilities` to confirm the gates accept it.\n7. **Commit** one verified slice (conventional subject, e.g. `refactor(media): move sixel encode\u002Fdecode into harvest-media`), only if the user authorized commits. Report what is still TS\u002Funverified.\n",{"name":5,"description":7},"main","27f0e9fb87c9d11afa27dc273ec5f85f09b1d111",".claude\u002Fskills\u002Frust-migration-slice",1,"https:\u002F\u002Fgithub.com\u002FSanidhya14321\u002Fharvest","https:\u002F\u002Fgithub.com\u002FSanidhya14321","2026-11-09 10:21:13",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add Sanidhya14321\u002Fharvest --skill rust-migration-slice",{"tool":37,"command":38},"bunx","bunx skills add Sanidhya14321\u002Fharvest --skill rust-migration-slice",{"tool":40,"command":41},"pnpm","pnpm dlx skills add Sanidhya14321\u002Fharvest --skill rust-migration-slice","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSanidhya14321\u002Fharvest\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frust-migration-slice\u002FSKILL.md",true,[],[46,53,60,67,73,80],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M7CFKZKK4FV8RFWADPXMQDV5","greet","A greeting skill for testing","https:\u002F\u002Fgithub.com\u002FSanidhya14321\u002Fharvest\u002Fblob\u002Fmain\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Fmarketplace\u002Ffixtures\u002Fvalid-marketplace\u002Fplugins\u002Fhello-plugin\u002Fskills\u002Fgreet\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7CFKXZ61BGNTGEWJTMX5T9X","valid-skill","A valid skill for testing purposes.","https:\u002F\u002Fgithub.com\u002FSanidhya14321\u002Fharvest\u002Fblob\u002Fmain\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fvalid-skill\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7CFKWVZTM95KBG2QE1ZBMMC","unknown-field","A skill with an unknown frontmatter field.","https:\u002F\u002Fgithub.com\u002FSanidhya14321\u002Fharvest\u002Fblob\u002Fmain\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Funknown-field\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7CFKW1MTHDP42M754WFH3Y1","no-frontmatter","https:\u002F\u002Fgithub.com\u002FSanidhya14321\u002Fharvest\u002Fblob\u002Fmain\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fno-frontmatter\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7CFKV3DBQDZEQTA3DNR38H8","child-skill","A nested skill in a subdirectory.","https:\u002F\u002Fgithub.com\u002FSanidhya14321\u002Fharvest\u002Fblob\u002Fmain\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fnested\u002Fchild-skill\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7CFKSZNTJ16H9YQ7370XKDB","different-name","A skill with a name that doesn't match the directory.","https:\u002F\u002Fgithub.com\u002FSanidhya14321\u002Fharvest\u002Fblob\u002Fmain\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fname-mismatch\u002FSKILL.md",[],[]]