rust-best-practices 是做什么的?
基于 Apollo GraphQL 最佳实践手册,指导编写符合 Rust 语言习惯的代码。在以下场景使用此技能:(1) 编写新的 Rust 代码或函数时;(2) 审查或重构现有 Rust 代码时;(3) 在借用与克隆或所有权模式之间做决策时;(4) 使用 Result 类型实现错误处理时;(5) 优化 Rust 代码性能时;(6) 为 Rust 项目编写测试或文档时。
基于 Apollo GraphQL 最佳实践手册,指导编写符合 Rust 语言习惯的代码。
该技能基于 Apollo GraphQL 的 Rust 最佳实践手册,为开发者提供一个全面的指南,用于编写符合 Rust 语言习惯的惯用代码。其主要目标是在编写新代码、审查或重构现有代码时,帮助开发者做出正确的决策,尤其是在借用与克隆、所有权模型、错误处理(Result 类型)以及性能优化等关键领域。该技能涵盖了 Rust 开发的整个生命周期,包括编写测试和文档。它适用于任何需要确保 Rust 代码遵循 Apollo 高标准的项目,无论是使用 Cargo 管理的库还是二进制文件。通过遵循该技能的建议,开发者可以减少运行时错误、提升代码的可维护性和可读性,并最终提高团队整体代码质量。该技能支持在所有主流 Rust 开发平台和环境中使用,包括 CLI 工具、IDE 以及持续集成流水线。
npx skills add https://github.com/apollographql/skills/tree/main/skills/rust-best-practicesInstalled? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →
基于 Apollo GraphQL 最佳实践手册,指导编写符合 Rust 语言习惯的代码。在以下场景使用此技能:(1) 编写新的 Rust 代码或函数时;(2) 审查或重构现有 Rust 代码时;(3) 在借用与克隆或所有权模式之间做决策时;(4) 使用 Result 类型实现错误处理时;(5) 优化 Rust 代码性能时;(6) 为 Rust 项目编写测试或文档时。
This repo contains 9 individual skills — each has its own dedicated page.
Guide for building React applications with Apollo Client 4.x. Use this skill when: (1) setting up Apollo Client in a React project, (2) writing GraphQL queries or mutations with hooks, (3) configuring caching or cache policies, (4) managing local state with reactive variables, (5) troubleshooting Apollo Client errors or performance issues.
Guide for integrating REST APIs into GraphQL supergraphs using Apollo Connectors with @source and @connect directives. Use this skill when the user: (1) mentions "connectors", "Apollo Connectors", or "REST Connector", (2) wants to integrate a REST API into GraphQL, (3) references @source or @connect directives, (4) works with files containing "# Note to AI Friends: This is an Apollo Connectors schema".
Guide for authoring Apollo Federation subgraph schemas. Use this skill when: (1) creating new subgraph schemas for a federated supergraph, (2) defining or modifying entities with @key, (3) sharing types/fields across subgraphs with @shareable, (4) working with federation directives (@external, @requires, @provides, @override, @inaccessible), (5) troubleshooting composition errors, (6) any task involving federation schema design patterns.
Guide for using Apollo MCP Server to connect AI agents with GraphQL APIs. Use this skill when: (1) setting up or configuring Apollo MCP Server, (2) defining MCP tools from GraphQL operations, (3) using introspection tools (introspect, search, validate, execute), (4) troubleshooting MCP server connectivity or tool execution issues.
Version-aware guide for configuring and running Apollo Router for federated GraphQL supergraphs. Generates correct YAML for both Router v1.x and v2.x. Use this skill when: (1) setting up Apollo Router to run a supergraph, (2) configuring routing, headers, or CORS, (3) implementing custom plugins (Rhai scripts or coprocessors), (4) configuring telemetry (tracing, metrics, logging), (5) troubleshooting Router performance or connectivity issues.
Guide for building GraphQL servers with Apollo Server 5.x. Use this skill when: (1) setting up a new Apollo Server project, (2) writing resolvers or defining GraphQL schemas, (3) implementing authentication or authorization, (4) creating plugins or custom data sources, (5) troubleshooting Apollo Server errors or performance issues.
Guide for writing GraphQL operations (queries, mutations, fragments) following best practices. Use this skill when: (1) writing GraphQL queries or mutations, (2) organizing operations with fragments, (3) optimizing data fetching patterns, (4) setting up type generation or linting, (5) reviewing operations for efficiency.
Guide for designing GraphQL schemas following industry best practices. Use this skill when: (1) designing a new GraphQL schema or API, (2) reviewing existing schema for improvements, (3) deciding on type structures or nullability, (4) implementing pagination or error patterns, (5) ensuring security in schema design.
Guide for using Apollo Rover CLI to manage GraphQL schemas and federation. Use this skill when: (1) publishing or fetching subgraph/graph schemas, (2) composing supergraph schemas locally or via GraphOS, (3) running local supergraph development with rover dev, (4) validating schemas with check and lint commands, (5) configuring Rover authentication and environment, (6) exploring or searching a graph's schema for agent-driven discovery (rover schema describe / rover schema search).
Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.
Control Eight Sleep pods (status, temperature, alarms, schedules).
BluOS CLI (blu) for discovery, playback, grouping, and volume.
Create, search, and manage Bear notes via grizzly CLI.
Capture frames or clips from RTSP/ONVIF cameras.
Search GIF providers with CLI/TUI, download results, and extract stills/sheets.