[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7833NRNKS002T4ACYH87ME2":3,"skill-same:01M7833NRNKS002T4ACYH87ME2":69},{"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},"01M7833NRNKS002T4ACYH87ME2","rust-api-design",null,"Design and review Rust APIs, type invariants, ownership, traits, conversions, errors, documentation, compatibility, builders, and feature-exposed surfaces. Use when public or durable internal contracts change. Do not activate for purely local implementation details with no lasting interface consequence.","RawSocketLabs\u002Frsl","RawSocketLabs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F195399781?v=4","01M782XS20P1ZA01RHNK1SC3JZ","Raw Socket Labs","01M782XS2KPM9FYSN6PRZN7ZAH",2,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FRawSocketLabs\u002Frsl\u002Fblob\u002Fmain\u002Ftools\u002Frust-skills\u002Fskills\u002Frust-api-design\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: rust-api-design\ndescription: Design and review Rust APIs, type invariants, ownership, traits, conversions, errors, documentation, compatibility, builders, and feature-exposed surfaces. Use when public or durable internal contracts change. Do not activate for purely local implementation details with no lasting interface consequence.\n---\n\n# Design Rust APIs\n\n## Inspect the contract\n\n1. Read `$rust-core`, the repository compatibility policy, MSRV, feature model,\n   public callers, existing types, documentation, and downstream examples.\n2. Identify who establishes and preserves each invariant, what invalid states\n   remain representable, and whether the API is public, serialized, FFI, wire,\n   generated, or layout-sensitive.\n3. Read [API, ownership, and errors](references\u002Fapi-ownership-and-errors.md) for\n   type and trait decisions. Read\n   [ownership patterns](references\u002Fownership-patterns.md) for state modeling,\n   validated construction, exact quantities, borrowed options, frozen shared\n   sequences, builders, type-state, and error-library boundaries.\n   Read\n   [documentation and examples](references\u002Fdocumentation-and-examples.md) when\n   the public teaching or compatibility surface changes.\n\n## Design and route\n\n- Prefer familiar concrete APIs until demonstrated callers need genericity,\n  dynamic dispatch, type-state, or a macro.\n- Make fallibility, ownership transfer, allocation, panic, and error loss\n  explicit.\n- Treat a repeated runtime guard as a modeling question: decide whether the\n  state belongs in an enum variant, a validated constructor, or a type\n  parameter, and delete the checks the chosen type proves.\n- Treat builders, newtypes, enums, traits, and validated wrappers as tools for\n  real invariants, not universal patterns.\n- Route tests and SemVer evidence to `$rust-testing`, Cargo feature and\n  dependency impact to `$rust-dependencies-security`, and domain semantics to\n  the applicable skill.\n\n## Verify\n\nCompile public examples and doctests. Exercise downstream call syntax, feature\nconfigurations, error paths, mutation invariants, and compatibility tooling when\nrequired. Record any deliberate breaking change and migration path.\n\n## Output\n\nState the API contract, alternatives considered, compatibility and MSRV impact,\nerror and panic behavior, documentation updates, tests, and unresolved risks.\n","# Design Rust APIs\n\n## Inspect the contract\n\n1. Read `$rust-core`, the repository compatibility policy, MSRV, feature model,\n   public callers, existing types, documentation, and downstream examples.\n2. Identify who establishes and preserves each invariant, what invalid states\n   remain representable, and whether the API is public, serialized, FFI, wire,\n   generated, or layout-sensitive.\n3. Read [API, ownership, and errors](references\u002Fapi-ownership-and-errors.md) for\n   type and trait decisions. Read\n   [ownership patterns](references\u002Fownership-patterns.md) for state modeling,\n   validated construction, exact quantities, borrowed options, frozen shared\n   sequences, builders, type-state, and error-library boundaries.\n   Read\n   [documentation and examples](references\u002Fdocumentation-and-examples.md) when\n   the public teaching or compatibility surface changes.\n\n## Design and route\n\n- Prefer familiar concrete APIs until demonstrated callers need genericity,\n  dynamic dispatch, type-state, or a macro.\n- Make fallibility, ownership transfer, allocation, panic, and error loss\n  explicit.\n- Treat a repeated runtime guard as a modeling question: decide whether the\n  state belongs in an enum variant, a validated constructor, or a type\n  parameter, and delete the checks the chosen type proves.\n- Treat builders, newtypes, enums, traits, and validated wrappers as tools for\n  real invariants, not universal patterns.\n- Route tests and SemVer evidence to `$rust-testing`, Cargo feature and\n  dependency impact to `$rust-dependencies-security`, and domain semantics to\n  the applicable skill.\n\n## Verify\n\nCompile public examples and doctests. Exercise downstream call syntax, feature\nconfigurations, error paths, mutation invariants, and compatibility tooling when\nrequired. Record any deliberate breaking change and migration path.\n\n## Output\n\nState the API contract, alternatives considered, compatibility and MSRV impact,\nerror and panic behavior, documentation updates, tests, and unresolved risks.\n",{"name":5,"description":7},"main","da7a8aa64b3ca314c4734150c206d70842907c72","tools\u002Frust-skills\u002Fskills\u002Frust-api-design",0,"https:\u002F\u002Fgithub.com\u002FRawSocketLabs\u002Frsl","https:\u002F\u002Fgithub.com\u002FRawSocketLabs","2026-11-15 05:21:44",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add RawSocketLabs\u002Frsl --skill rust-api-design",{"tool":37,"command":38},"bunx","bunx skills add RawSocketLabs\u002Frsl --skill rust-api-design",{"tool":40,"command":41},"pnpm","pnpm dlx skills add RawSocketLabs\u002Frsl --skill rust-api-design","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FRawSocketLabs\u002Frsl\u002Fblob\u002Fmain\u002Ftools\u002Frust-skills\u002Fskills\u002Frust-api-design\u002FSKILL.md",true,[45,51,55,59,63],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"agents\u002Fopenai.yaml","REFERENCE","参考文档",254,"https:\u002F\u002Fgithub.com\u002FRawSocketLabs\u002Frsl\u002Fblob\u002Fmain\u002Ftools\u002Frust-skills\u002Fskills\u002Frust-api-design\u002Fagents\u002Fopenai.yaml",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fapi-ownership-and-errors.md",23197,"https:\u002F\u002Fgithub.com\u002FRawSocketLabs\u002Frsl\u002Fblob\u002Fmain\u002Ftools\u002Frust-skills\u002Fskills\u002Frust-api-design\u002Freferences\u002Fapi-ownership-and-errors.md",{"path":56,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fdocumentation-and-examples.md",3351,"https:\u002F\u002Fgithub.com\u002FRawSocketLabs\u002Frsl\u002Fblob\u002Fmain\u002Ftools\u002Frust-skills\u002Fskills\u002Frust-api-design\u002Freferences\u002Fdocumentation-and-examples.md",{"path":60,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Fownership-patterns.md",11748,"https:\u002F\u002Fgithub.com\u002FRawSocketLabs\u002Frsl\u002Fblob\u002Fmain\u002Ftools\u002Frust-skills\u002Fskills\u002Frust-api-design\u002Freferences\u002Fownership-patterns.md",{"path":64,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":68},"skill.toml","OTHER","其他",1419,"https:\u002F\u002Fgithub.com\u002FRawSocketLabs\u002Frsl\u002Fblob\u002Fmain\u002Ftools\u002Frust-skills\u002Fskills\u002Frust-api-design\u002Fskill.toml",[70,77,84,91,98,105],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M78361RCGE7ZQW1V14VGS5ZK","rust-unsafe-ffi","Design and review unsafe Rust, safe wrappers, manual Send or Sync, ABI boundaries, foreign ownership, callbacks, and FFI build integration. Use whenever unsafe code or a foreign interface is introduced, changed, or relied upon. Do not use unsafe merely to bypass borrow checking or for unmeasured optimization.","https:\u002F\u002Fgithub.com\u002FRawSocketLabs\u002Frsl\u002Fblob\u002Fmain\u002Ftools\u002Frust-skills\u002Fskills\u002Frust-unsafe-ffi\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7835GXKBTJN0DA494R9DRV6","rust-testing","Select, implement, and assess Rust unit, integration, documentation, property, fuzz, snapshot, concurrency, unsafe, protocol, benchmark, and verification evidence. Use whenever behavior changes or claims need proof. Do not run every tool mechanically when the repository or risk makes it inapplicable.","https:\u002F\u002Fgithub.com\u002FRawSocketLabs\u002Frsl\u002Fblob\u002Fmain\u002Ftools\u002Frust-skills\u002Fskills\u002Frust-testing\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7834V9RARQW3QKKTCNK33N9","rust-skill-maintenance","Maintain this modular Rust skills system, including canonical content, manifests, references, profiles, generated adapters, migrations, examples, evaluations, releases, and compatibility. Use when changing the skills repository itself. Do not hand-edit generated adapters.","https:\u002F\u002Fgithub.com\u002FRawSocketLabs\u002Frsl\u002Fblob\u002Fmain\u002Ftools\u002Frust-skills\u002Fskills\u002Frust-skill-maintenance\u002FSKILL.md",[],[],{"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},"01M7834QMRCNWWFSBQT15Q9VMH","rust-review","Review Rust diffs, commits, branches, and designs for actionable correctness, soundness, security, compatibility, concurrency, protocol, performance, testing, and maintainability risks. Use for review or pre-merge assessment. Do not modify code unless separately requested.","https:\u002F\u002Fgithub.com\u002FRawSocketLabs\u002Frsl\u002Fblob\u002Fmain\u002Ftools\u002Frust-skills\u002Fskills\u002Frust-review\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},"01M7834KHHRYNZFB0NK14FR2V7","rust-repository-onboarding","Inspect, interview, profile, configure, and install the modular Rust engineering skills into a repository. Use when adopting or refreshing these skills, generating repository-specific Rust rules, or creating validation workflows. Never finalize policy before repository inspection and user approval.","https:\u002F\u002Fgithub.com\u002FRawSocketLabs\u002Frsl\u002Fblob\u002Fmain\u002Ftools\u002Frust-skills\u002Fskills\u002Frust-repository-onboarding\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},"01M7834GKXQPZZX10AH4AEP7QZ","rust-protocol","Engineer and review binary protocols, wire formats, builders, encoders, parsers, framing, stateful messages, bit ordering, integrity, correction, malformed input, and conformance. Use for protocol or serializer code. Do not apply protocol rules to unrelated in-memory models.","https:\u002F\u002Fgithub.com\u002FRawSocketLabs\u002Frsl\u002Fblob\u002Fmain\u002Ftools\u002Frust-skills\u002Fskills\u002Frust-protocol\u002FSKILL.md",[],[]]