Graphql Schema
/install graphql-schema
GraphQL Schema (Deep Workflow)
GraphQL concentrates complexity on the server: resolver graphs, N+1 fetches, schema evolution, and field-level authorization.
When to Offer This Workflow
Trigger conditions:
- Designing a new GraphQL API or federated subgraph
- Latency or complexity incidents from client queries
- Need for safe schema deprecation and versioning
Initial offer:
Use six stages: (1) domain modeling, (2) operations surface, (3) performance patterns, (4) errors & partial results, (5) security & authz, (6) versioning & evolution). Confirm client patterns (Apollo, Relay) and gateway (if any).
Stage 1: Domain Modeling
Goal: Types reflect domain concepts; avoid dumping everything on Query; use input objects for mutations with validation.
Stage 2: Operations Surface
Goal: Queries for reads; mutations for writes; subscriptions only when justified (scaling and operational cost).
Pagination
- Prefer cursor-based connections for large lists (Relay-style edges/nodes)
Stage 3: Performance Patterns
Goal: DataLoader or batching for N+1; query complexity/depth/cost limits; optional persisted queries for public APIs.
Stage 4: Errors & Partial Results
Goal: Document semantics of errors alongside partial data; map domain failures to structured extensions.
Stage 5: Security & Authz
Goal: Enforce authorization at field/object level—not only at the top resolver.
Stage 6: Versioning & Evolution
Goal: Prefer additive changes; @deprecated with migration window; in federation, clear ownership of types and entities.
Final Review Checklist
- Schema reflects domain and operations
- Pagination and mutations idiomatic
- Batching and complexity limits in place
- Error behavior documented for clients
- Field-level authz enforced
- Deprecation policy defined
Tips for Effective Guidance
- N+1 is the default failure mode—plan batching early.
- Pair with rest-best-practices when REST and GraphQL coexist at the edge.
Handling Deviations
- Public APIs: consider persisted queries or allowlists to limit abusive queries.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install graphql-schema - 安装完成后,直接呼叫该 Skill 的名称或使用
/graphql-schema触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Graphql Schema 是什么?
Deep GraphQL schema workflow—modeling types, queries and mutations, N+1 and complexity limits, errors and pagination, federation risks, and evolution. Use wh... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 155 次。
如何安装 Graphql Schema?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install graphql-schema」即可一键安装,无需额外配置。
Graphql Schema 是免费的吗?
是的,Graphql Schema 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Graphql Schema 支持哪些平台?
Graphql Schema 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Graphql Schema?
由 codenova58(@codenova58)开发并维护,当前版本 v1.0.0。