Nodejs Backend Patterns
ever-works/ever-works
Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, and API design best practices.
Guide for writing GraphQL operations (queries, mutations, fragments) following best practices.
$ npx skills add apollographql/skills --skill graphql-operations -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install apollographql/skills graphql-operations --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/apollographql/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/graphql-operations .claude/skills/graphql-operations && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "graphql-operations" agent skill from https://github.com/apollographql/skills/tree/main/skills/graphql-operations into .claude/skills/graphql-operations/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "graphql-operations", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/apollographql/skills/tree/main/skills/graphql-operationsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add apollographql/skills --skill graphql-operations -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install apollographql/skills graphql-operations --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/apollographql/skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/graphql-operations .agents/skills/graphql-operations && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "graphql-operations" agent skill from https://github.com/apollographql/skills/tree/main/skills/graphql-operations into .agents/skills/graphql-operations/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "graphql-operations", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add apollographql/skills --skill graphql-operations -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install apollographql/skills graphql-operations --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/apollographql/skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/graphql-operations .cursor/skills/graphql-operations && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "graphql-operations" agent skill from https://github.com/apollographql/skills/tree/main/skills/graphql-operations into .cursor/skills/graphql-operations/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "graphql-operations", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/apollographql/skills.git --path skills/graphql-operations--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add apollographql/skills --skill graphql-operations -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install apollographql/skills graphql-operations --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/apollographql/skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/graphql-operations .gemini/skills/graphql-operations && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "graphql-operations" agent skill from https://github.com/apollographql/skills/tree/main/skills/graphql-operations into .gemini/skills/graphql-operations/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "graphql-operations", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install apollographql/skills graphql-operationsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add apollographql/skills --skill graphql-operations -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/apollographql/skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/graphql-operations .github/skills/graphql-operations && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "graphql-operations" agent skill from https://github.com/apollographql/skills/tree/main/skills/graphql-operations into .github/skills/graphql-operations/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "graphql-operations", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add apollographql/skills --skill graphql-operations -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install apollographql/skills graphql-operations --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/apollographql/skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/graphql-operations .opencode/skills/graphql-operations && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "graphql-operations" agent skill from https://github.com/apollographql/skills/tree/main/skills/graphql-operations into .opencode/skills/graphql-operations/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "graphql-operations", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
graphql-operationsGuide for writing GraphQL operations (queries, mutations, fragments) following best practices.
Graphql Operations is an agent skill from apollographql/skills. 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.
Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files (for example `references/fragments.md`, `references/mutations.md` and `references/queries.md`). Compatibility notes: Any GraphQL client (Apollo Client, urql, Relay, etc.)
It sits in Backend & APIs, covering GraphQL. It works with GraphQL. The repository describes itself as: Apollo GraphQL Agent Skills. The licence is MIT.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 5f02fcf. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
Bash(npm:*)Bash(npx:*)ReadWriteEditGlobGrepFrom allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are graphql and typescript).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Any GraphQL client (Apollo Client, urql, Relay, etc.)
From compatibility in the SKILL.md frontmatter.
Graphql Operations loads about 1.3k tokens when it runs, and up to ~11k if it reads all its reference files. Until then it costs about 85 tokens; SKILL.md has 288 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from apollographql/skills at commit 5f02fcf, republished under its MIT licence (© apollographql). 288 words, ~1,313 tokens.
.claude/skills/graphql-operations/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.This guide covers best practices for writing GraphQL operations (queries, mutations, subscriptions) as a client developer. Well-written operations are efficient, type-safe, and maintainable.
Write every operation against the project's schema, not against the examples in this guide.
schema entry in codegen.ts, graphql.config.*, or apollo.config.*, then look for *.graphql SDL files.updatedAt or orderBy: { field: CREATED_AT, direction: DESC }, are illustrations.query GetUser($id: ID!) {
user(id: $id) {
id
name
email
}
}mutation CreatePost($input: CreatePostInput!) {
createPost(input: $input) {
id
title
createdAt
}
}subscription OnMessageReceived($channelId: ID!) {
messageReceived(channelId: $channelId) {
id
content
sender {
id
name
}
}
}| Pattern | Example |
|---|---|
| Query | GetUser, ListPosts, SearchProducts |
| Mutation | CreateUser, UpdatePost, DeleteComment |
| Subscription | OnMessageReceived, OnUserStatusChanged |
# Required variable
query GetUser($id: ID!) { ... }
# Optional variable with default
query ListPosts($first: Int = 20) { ... }
# Multiple variables
query SearchPosts($query: String!, $status: PostStatus, $first: Int = 10) { ... }# Define fragment
fragment UserBasicInfo on User {
id
name
avatarUrl
}
# Use fragment
query GetUser($id: ID!) {
user(id: $id) {
...UserBasicInfo
email
}
}query GetUser($id: ID!, $includeEmail: Boolean!) {
user(id: $id) {
id
name
email @include(if: $includeEmail)
}
}
query GetPosts($skipDrafts: Boolean!) {
posts {
id
title
draft @skip(if: $skipDrafts)
}
}# Good: Specific fields
query GetUserName($id: ID!) {
user(id: $id) {
id
name
}
}
# Avoid: Over-fetching
query GetUser($id: ID!) {
user(id: $id) {
id
name
email
bio
posts {
id
title
content
comments {
id
}
}
followers {
id
name
}
# ... many unused fields
}
}# Good: Named operation
query GetUserPosts($userId: ID!) {
user(id: $userId) {
posts {
id
title
}
}
}
# Avoid: Anonymous operation
query {
user(id: "123") {
posts {
id
title
}
}
}# Good: Variables
query GetUser($id: ID!) {
user(id: $id) {
id
name
}
}
# Avoid: Hardcoded values
query {
user(id: "123") {
id
name
}
}// UserAvatar.tsx
export const USER_AVATAR_FRAGMENT = gql`
fragment UserAvatar on User {
id
name
avatarUrl
}
`;
function UserAvatar({ user }) {
return <img src={user.avatarUrl} alt={user.name} />;
}Detailed documentation for specific topics:
id field for cacheable types@include/@skip for conditional fields© apollographql, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 5 other files (references) in skills/graphql-operations of apollographql/skills.
Open the folder on GitHubat commit 5f02fcf
Graphql Operations next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Graphql Operations this skillapollographql/skills | 117 | — | ~1.3k | Automated safety check: Pass | MIT | |
| Nodejs Backend Patternsever-works/ever-works | 162 | 18 repos | ~4k | Automated safety check: Pass | AGPL-3.0 | |
| API DesignerJeffallan/claude-skills | 12k | 1 repos | ~2k | Automated safety check: Pass | MIT | |
| GraphQL Operations with CodegenChrisWiles/claude-code-showcase | 6.1k | 3 repos | ~1.5k | Automated safety check: Pass | None | |
| API Design Principlesjh941213/my-cc-harness | 126 | 18 repos | ~3.4k | Automated safety check: Pass | None | |
| API And Interface Designdzhalaevd/Donatello | 135 | 8 repos | ~2.6k | Automated safety check: Pass | Apache-2.0 |
ever-works/ever-works
Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, and API design best practices.
Jeffallan/claude-skills
Designs REST and GraphQL APIs from resource modeling to an OpenAPI 3.1 contract, with versioning, pagination and RFC 7807 error handling.
ChrisWiles/claude-code-showcase
Sets the rules for writing GraphQL queries and mutations in .gql files, running codegen, and using generated Apollo hooks with proper error and loading handling.
jh941213/my-cc-harness
REST 및 GraphQL API 설계 원칙 가이드. An agent skill from jh941213/my-cc-harness.
dzhalaevd/Donatello
Guides stable API and interface design. An agent skill from dzhalaevd/Donatello.
twentyhq/twenty
Registers a new syncable entity in three NestJS modules and adds its service and GraphQL resolver layers when contributing to the Twenty server.
apollographql/skills
Build and iterate on an Apollo Connectors subgraph for a GraphOS supergraph from a REST API, with or without an OpenAPI or Swagger spec, in a dedicated git workspace that records what the API…
apollographql/skills
Guide for building React applications with Apollo Client 4.x.
apollographql/skills
DEPRECATED: superseded by the graphos-factory skill (npx skills add apollographql/skills@graphos-factory), which builds and maintains a Connectors subgraph from a REST API with recorded decisions…
apollographql/skills
Guide for authoring Apollo Federation subgraph schemas. An agent skill from apollographql/skills.
apollographql/skills
Guide for building Apple-platform applications with Apollo iOS, the strongly-typed GraphQL client for Swift.
apollographql/skills
Guide for writing Apollo Router native Rust plugins. An agent skill from apollographql/skills.
Works with
Categories
Guide for writing GraphQL operations (queries, mutations, fragments) following best practices. Graphql Operations is an agent skill from apollographql/skills. Guide for writing GraphQL operations (queries, mutations, fragments) following best practices.
Graphql Operations fits situations like: writing GraphQL queries; organizing operations with fragments; optimizing data fetching patterns; setting up type generation.
Run `npx skills add apollographql/skills --skill graphql-operations -a claude-code`. Or copy the skill folder (skills/graphql-operations in apollographql/skills) into .claude/skills/graphql-operations in your project. Claude Code loads it when a task matches its description.
Run `npx skills add apollographql/skills --skill graphql-operations -a codex`. Or copy the skill folder (skills/graphql-operations in apollographql/skills) into .agents/skills/graphql-operations in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add apollographql/skills --skill graphql-operations -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/graphql-operations, .gemini/skills/graphql-operations, .github/skills/graphql-operations and .opencode/skills/graphql-operations in your project.
SKILL.md names no scripts, command-line tools or credentials: Graphql Operations is instructions for the agent only. Its frontmatter pre-approves these tools: Bash(npm:*), Bash(npx:*), Read, Write, Edit, Glob, Grep. Compatibility (from SKILL.md): Any GraphQL client (Apollo Client, urql, Relay, etc.).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Graphql Operations is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.3k tokens (SKILL.md is roughly 5.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 9.6k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Graphql Operations: Nodejs Backend Patterns (ever-works/ever-works, 162 stars), API Designer (Jeffallan/claude-skills, 12k stars), GraphQL Operations with Codegen (ChrisWiles/claude-code-showcase, 6.1k stars) and API Design Principles (jh941213/my-cc-harness, 126 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
apollographql (a GitHub organization) maintains it in apollographql/skills, which has 117 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on October 7, 2026.
Source: apollographql/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.