Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Graphql Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-graphql-knowledge-patch-nevaberry-plugins)
---
name: graphql-knowledge-patch
description: GraphQL
version: "GraphQL-over-HTTP draft 2026-07"
license: MIT
metadata:
author: Nevaberry
---
# GraphQL Knowledge Patch
Use this skill for GraphQL executable documents, schema validation, input
coercion, execution, introspection, subscriptions, and HTTP transport.
> [!CAUTION]
> Prerelease guidance may change before stable release. The current prerelease
> version is `GraphQL-over-HTTP draft 2026-07`.
## Reference index
| Reference | Topics |
| --- | --- |
| [GraphQL Execution](references/execution.md) | Request metadata, defaults, field errors, list propagation, response entries, subscription failures |
| [GraphQL over HTTP](references/http-transport.md) | Media negotiation, response interpretation, status codes, request envelopes, GET mutations, authorization, persisted operations, schema selection |
| [GraphQL Language and Schema](references/language-and-schema.md) | Descriptions, strings, coordinates, validation, deprecation, OneOf inputs, interface fragments, introspection order |
## Breaking changes and validation constraints
### Deprecation rules
- `@deprecated` takes a non-null `reason`: omit it for the default or pass a string.
- Explicit `reason: null` is invalid.
- An implementing type may deprecate a field only if its interface field is also deprecated.
### Introspection flags
Introspection's `includeDeprecated` arguments are non-null. Omit the argument
for the default or pass `true` or `false`; explicit `includeDeprecated: null` is invalid.
### Operation roots
Validation rejects an operation if the schema lacks its corresponding root type.
A mutation document therefore fails validation against a query-only schema.
### Subscription root directives
`@skip` and `@include` are forbidden in a subscription's root selection set.
Put conditional selections below the root field.
### Schema and directive definitions
- Keep an explicit `schema` definition when the schema itself has a description,
even with conventional root type names.
- Schema validation rejects defaults that recursively reapply themselves through
omitted input fields, including inside list items.
- Validate directive definitions for self-references through other directives or
types as well as direct uses.
## Input coercion and OneOf
### Defaults and field arguments
Apply the declared type's input coercion to defaults for omitted variables and
field arguments. A field argument supplied by a variable uses its already coerced
value directly. Field argument coercion failures are execution errors at the
field's response path, even if the input coercion rule calls them request errors.
### OneOf values and variables
- Check for exactly one entry with a non-null value before input-object coercion
and in the resulting map. The OneOf rule calls initial failures request errors
and final failures execution errors.
- A variable used directly as a OneOf field value must have a non-null type,
even though the schema field is nullable.
- Count variable-supplied fields when checking that a literal has exactly one field.
### Extending and inspecting OneOf inputs
Apply `@oneOf` in the original input definition. Extensions can add nullable
fields without defaults. `__Type.isOneOf` returns `true` for OneOf input objects,
`false` for ordinary input objects, and `null` for other type kinds.
## Language and schema tooling
### Executable descriptions
Put a string immediately before a named operation. Use explicit `query` to
describe an anonymous query; put a variable description immediately before its
`$name` and a fragment description immediately before `fragment`. Descriptions
and comments on operation, fragment, and variable definitions do not affect
validation, execution, or responses; tooling may use them for logging or documentation.
### Strings and Unicode
Use `"\u{1F680}"` for a supplementary character; `"\uD83D\uDE80"` also parses.
Reject unpaired surrogates in raw source or escapes and escapes above U+10FFFF.
LF and CR require escapes. Other raw control characters are accepted by the
grammar; serializers should escape U+0000–U+001F and U+007F–U+009F.
### Schema coordinates
Coordinates identify types, members, field arguments, directives, or directive
arguments. Their standalone grammar rejects whitespace, commas, comments, and
other ignored tokens. A missing final element yields no value; a missing
container or a containing type of the wrong kind raises an error. Resolution is
undefined for meta-fields and introspection types. Use a union member's own type coordinate.
### Stable ordering
Implementations should preserve existing order in semantically unordered
collections when possible. For schemas built from type system documents,
introspection should preserve source order for object fields, input fields,
arguments, enum values, directives, union members, and implemented interfaces.
## Execution and subscriptions
### Request and response metadata
Put implementation-specific request metadata in optional `extensions`, with
unique key prefixes. Clients must ignore unrecognized top-level entries in
execution and request error results. Services put custom response metadata in `extensions`.
### Error paths and propagation
Report a list element's execution error once at its full indexed path, even
when non-null propagation nulls an enclosing list or all of `data`. During
propagation from a non-null response position, the executor may cancel sibling
positions that have yet to yield values.
### Subscription failures
A field execution error appears in that event's `errors` list; later events
can still arrive. A source stream failure or an internal exception during event
execution completes the response stream with an error. An internal exception
also cancels the source stream.
### Interface fragments
A fragment on a child interface can be spread in a selection on an interface it
implements, even when the child has no concrete implementors.
## HTTP transport quick reference
### Required response media type
> **Prerelease (`graphql-over-http-2026-07`):** This guidance may change before stable release.
Clients must include `application/graphql-response+json` in `Accept`. Servers
must support it and choose the highest-priority supported type offered.
When server support is unknown, the recommended header is:
```http
Accept: application/graphql-response+json, application/json;q=0.9
```
### Interpreting responses
> **Prerelease (`graphql-over-http-2026-07`):** This guidance may change before stable release.
Clients should process `application/graphql-response+json` bodies as GraphQL
responses regardless of status. If a server cannot generate a well-formed
GraphQL response, it must omit that media type and should send an appropriate `4xx` or `5xx`.
### GraphQL result status codes
> **Prerelease (`graphql-over-http-2026-07`):** This guidance may change before stable release.
Non-null `data` requires `2xx`; `200` is recommended when `errors` is absent.
Absent `data` requires an appropriate `4xx` or `5xx`. Responses with both entries,
including `data: null`, have a recommendation of custom `294 Partial Success`;
the field-error example still uses `200`.
### Request error status codes
> **Prerelease (`graphql-over-http-2026-07`):** This guidance may change before stable release.
The draft recommends `400` for invalid JSON or an unparseable GraphQL document.
It recommends `422` for malformed envelopes, GraphQL validation failure,
failure to determine the operation unambiguously, or variable coercion failure.
### Optional request parameters
> **Prerelease (`graphql-over-http-2026-07`):** This guidance may change before stable release.
An empty optional GET parameter or JSON `null` optional POST parameter counts
as omission. JSON-encode nonempty GET `variables` and `extensions` before URL
encoding. `operationName=null` selects only an operation literally named `null`.
### JSON POST envelopes
> **Prerelease (`graphql-over-http-2026-07`):** This guidance may change before stable release.
Servers must ignore unrecognized top-level JSON properties. Envelope validation
requires a string `query` and checks known parameter types independently of
GraphQL parsing and validation.
### Mutations over GET
> **Prerelease (`graphql-over-http-draft`):** This guidance may change before stable release.
When `query` and `operationName` select a mutation over `GET`, stop before
execution and return an appropriate `4xx`. The draft recommends
`405 Method Not Allowed`, which requires an `Allow` header.
See [GraphQL over HTTP](references/http-transport.md) for all transport items,
including negotiation fallback, request content types, authorization, persisted
operations, and schema selection at a shared URL.