[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6MCNQ4EBVD1DA2MH91XT4CG":3,"skill-same:01M6MCNQ4EBVD1DA2MH91XT4CG":92},{"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":23,"publishedAt":47,"linkOnly":48,"markdownContent":49,"markdownBody":50,"frontMatter":51,"refName":58,"commitSha":59,"skillDirectory":60,"forksCount":61,"repositoryHtmlUrl":62,"repositoryHomepageUrl":63,"ownerHtmlUrl":64,"ownerBlogUrl":65,"ownerDescription":66,"updatedAt":67,"install":68,"resources":81},"01M6MCNQ4EBVD1DA2MH91XT4CG","rust-iterator-collections",null,"Design and review Rust iterator pipelines and collection code for clear ownership, allocation, ordering, and error behavior. Use when writing, refactoring, or reviewing iterators, HashMap Entry usage, collect, FromIterator, Extend, custom iterators, or allocation-heavy loops.","hashgraph-online\u002Fawesome-codex-plugins","hashgraph-online","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160371962?v=4","01M6CNB6NRJVNNGN14TR01Q6D3","HOL (Hashgraph Online)","01M6JT1HSKKG9V68KQAQGBA7XP",1575,"MIT","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Frust-iterator-collections\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"rust iterator collections","rust","collections","use","when","extend","custom","review rust","for","allocation","usage","loops","error","design","behavior","refactoring","collection","collect","code","performance","codex","review","writing","2026-11-10 10:12:30",false,"---\nname: rust-iterator-collections\ndescription: Design and review Rust iterator pipelines and collection code for clear ownership, allocation, ordering, and error behavior. Use when writing, refactoring, or reviewing iterators, HashMap Entry usage, collect, FromIterator, Extend, custom iterators, or allocation-heavy loops.\nlicense: MIT\ncompatibility: Codex, Claude Code, and other Agent Skills-compatible clients.\nmetadata:\n  version: \"0.1.0\"\n  displayName: Rust Iterator Collections\n  category: Rust\n  tags: rust,iterators,collections,hashmap,performance\n---\n\n# Rust Iterator Collections\n\nUse this skill to turn collection code into clear, idiomatic Rust. Prefer\niterator and collection APIs that express the operation directly while keeping\nownership, allocation, and error behavior visible.\n\n## Core Workflow\n\n1. Identify the input ownership mode: borrowed iteration, mutable iteration, or\n   consuming iteration.\n2. Pick the simplest iterator shape: `iter`, `iter_mut`, `into_iter`, ranges,\n   `drain`, or a collection-specific method.\n3. Replace manual loops with adapters only when the resulting code is clearer.\n   Keep explicit loops for complex branching, early mutation, or debugging.\n4. Use fallible iterator consumers such as `collect::\u003CResult\u003CVec\u003C_>, _>>()`,\n   `try_fold`, and `try_for_each` when errors should short-circuit.\n5. Use `HashMap::entry` or `BTreeMap::entry` for insert-or-update logic.\n6. Avoid unnecessary intermediate `Vec`s. Chain iterators or extend an existing\n   collection when possible.\n7. Test empty input, single item input, duplicate keys, ordering expectations,\n   and error short-circuiting.\n\n## Iterator Rules\n\n- Accept `impl IntoIterator\u003CItem = T>` when the function only needs iteration.\n- Use `&[T]` when slice semantics are enough; avoid `&Vec\u003CT>`.\n- Use `filter_map` for map-then-discard-`None`; use `flat_map` when each item\n  expands to zero or more items.\n- Use `map_while` or `scan` for stateful transformations when they make stopping\n  behavior explicit.\n- Add type annotations at `collect` boundaries, not throughout the pipeline.\n- Prefer `cloned` or `copied` over `map(|x| x.clone())` when cloning iterator\n  items is intentional.\n\n## Collection Rules\n\nRead `references\u002Fiterator-collection-patterns.md` when refactoring a loop or\nreviewing collection mutation.\n\n- Use `Vec` for contiguous ordered data, `VecDeque` for queue-like push\u002Fpop at\n  both ends, `BinaryHeap` for priority queues, `HashMap` for unordered lookup,\n  and `BTreeMap` for sorted lookup or range queries.\n- Use `retain`, `drain`, `splice`, and `split_off` instead of mutating a\n  collection while separately iterating over borrowed elements.\n- Use `Entry::or_insert_with` when default construction is expensive.\n- Preserve ordering deliberately. Do not swap `BTreeMap` for `HashMap` when\n  iteration order is part of behavior.\n- Reserve capacity only when size is known or profiling shows reallocation\n  matters.\n\n## Review Checklist\n\n- The pipeline communicates ownership and error behavior clearly.\n- No `contains_key` followed by `insert` where `entry` would be simpler.\n- No avoidable `collect::\u003CVec\u003C_>>()` just to iterate again.\n- Indexing is used only when indices are the domain concept.\n- Tests cover duplicates, empty input, and deterministic ordering where needed.\n","# Rust Iterator Collections\n\nUse this skill to turn collection code into clear, idiomatic Rust. Prefer\niterator and collection APIs that express the operation directly while keeping\nownership, allocation, and error behavior visible.\n\n## Core Workflow\n\n1. Identify the input ownership mode: borrowed iteration, mutable iteration, or\n   consuming iteration.\n2. Pick the simplest iterator shape: `iter`, `iter_mut`, `into_iter`, ranges,\n   `drain`, or a collection-specific method.\n3. Replace manual loops with adapters only when the resulting code is clearer.\n   Keep explicit loops for complex branching, early mutation, or debugging.\n4. Use fallible iterator consumers such as `collect::\u003CResult\u003CVec\u003C_>, _>>()`,\n   `try_fold`, and `try_for_each` when errors should short-circuit.\n5. Use `HashMap::entry` or `BTreeMap::entry` for insert-or-update logic.\n6. Avoid unnecessary intermediate `Vec`s. Chain iterators or extend an existing\n   collection when possible.\n7. Test empty input, single item input, duplicate keys, ordering expectations,\n   and error short-circuiting.\n\n## Iterator Rules\n\n- Accept `impl IntoIterator\u003CItem = T>` when the function only needs iteration.\n- Use `&[T]` when slice semantics are enough; avoid `&Vec\u003CT>`.\n- Use `filter_map` for map-then-discard-`None`; use `flat_map` when each item\n  expands to zero or more items.\n- Use `map_while` or `scan` for stateful transformations when they make stopping\n  behavior explicit.\n- Add type annotations at `collect` boundaries, not throughout the pipeline.\n- Prefer `cloned` or `copied` over `map(|x| x.clone())` when cloning iterator\n  items is intentional.\n\n## Collection Rules\n\nRead `references\u002Fiterator-collection-patterns.md` when refactoring a loop or\nreviewing collection mutation.\n\n- Use `Vec` for contiguous ordered data, `VecDeque` for queue-like push\u002Fpop at\n  both ends, `BinaryHeap` for priority queues, `HashMap` for unordered lookup,\n  and `BTreeMap` for sorted lookup or range queries.\n- Use `retain`, `drain`, `splice`, and `split_off` instead of mutating a\n  collection while separately iterating over borrowed elements.\n- Use `Entry::or_insert_with` when default construction is expensive.\n- Preserve ordering deliberately. Do not swap `BTreeMap` for `HashMap` when\n  iteration order is part of behavior.\n- Reserve capacity only when size is known or profiling shows reallocation\n  matters.\n\n## Review Checklist\n\n- The pipeline communicates ownership and error behavior clearly.\n- No `contains_key` followed by `insert` where `entry` would be simpler.\n- No avoidable `collect::\u003CVec\u003C_>>()` just to iterate again.\n- Indexing is used only when indices are the domain concept.\n- Tests cover duplicates, empty input, and deterministic ordering where needed.\n",{"name":5,"license":15,"metadata":52,"description":7,"compatibility":57},{"tags":53,"version":54,"category":55,"displayName":56},"rust,iterators,collections,hashmap,performance","0.1.0","Rust","Rust Iterator Collections","Codex, Claude Code, and other Agent Skills-compatible clients.","main","2b63f856ce19c2a797929cacabd9e0fc936812fa","plugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Frust-iterator-collections",491,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins","https:\u002F\u002Fhol.org\u002Fplugins\u002Fbest-codex-plugins","https:\u002F\u002Fgithub.com\u002Fhashgraph-online","https:\u002F\u002Fhol.org","Open-source standards and developer tools for interoperable AI agents: discovery, identity, communication, payments, privacy and security.","2026-11-14 14:06:13",{"source":8,"skillName":5,"commands":69,"prompt":79,"zipAvailable":80},[70,73,76],{"tool":71,"command":72},"npx","npx skills add hashgraph-online\u002Fawesome-codex-plugins --skill rust-iterator-collections",{"tool":74,"command":75},"bunx","bunx skills add hashgraph-online\u002Fawesome-codex-plugins --skill rust-iterator-collections",{"tool":77,"command":78},"pnpm","pnpm dlx skills add hashgraph-online\u002Fawesome-codex-plugins --skill rust-iterator-collections","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Frust-iterator-collections\u002FSKILL.md",true,[82,88],{"path":83,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":86,"sourceHtmlUrl":87},"agents\u002Fopenai.yaml","REFERENCE","参考文档",229,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Frust-iterator-collections\u002Fagents\u002Fopenai.yaml",{"path":89,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":90,"sourceHtmlUrl":91},"references\u002Fiterator-collection-patterns.md",1778,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Frust-iterator-collections\u002Freferences\u002Fiterator-collection-patterns.md",[93,102,110,118,126,134],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":97,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":101},"01M7DV332YQMGD8WTRJ9DZQXTB","worktable-review-with-annotations","Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":106,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":101},"01M7DV2YGHCZVBEB1AHYB6CGHE","worktable-find-and-synthesize-context","Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":114,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":101},"01M7DV2TQN1H11ME2SAF9MXN7V","worktable-create-or-update-docs","Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FSKILL.md",[],[],{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":122,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":101},"01M7DV2NE452NEA8TXATKSNAJH","worktable-create-or-manage-records","Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\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":130,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":101},"01M7DV2HENRBR2KSCVM064WH0Y","worktable-create-or-manage-interactive-html","Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FSKILL.md",[],[],{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":138,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":101},"01M7DV2CADR5R7RQFFYPNAGR9Y","worktable-collaborate-threads","Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FSKILL.md",[],[]]