api-graphql-resolver

api-graphql-resolver is a skill for Claude Code, Codex from caravanglory/magehub. It costs 32 tokens per session (2,697 once invoked), scanned A, original, MIT.

A Magento 2 GraphQL resolver that connects a GraphQL query or mutation to application services and returns data in the declared schema.

In plain words
What is it for?
Adding GraphQL types, queries, and mutations; validating inputs; checking customer or admin access; and delegating work to services or repositories.
Why use it?
It provides a defined way for GraphQL clients to request or change data while input validation and authorisation are handled in one place.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/caravanglory/magehub/api-graphql-resolver
Any agent
npx skills add caravanglory/magehub --skill api-graphql-resolver
Clone the repo
git clone --depth 1 https://github.com/caravanglory/magehub

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for api-graphql-resolver

README.md
[![agentmods](https://agentmods.dev/badge/skills/caravanglory/magehub/api-graphql-resolver.svg)](https://agentmods.dev/skills/caravanglory/magehub/api-graphql-resolver)
Your own site
<a href="https://agentmods.dev/skills/caravanglory/magehub/api-graphql-resolver"><img src="https://agentmods.dev/badge/skills/caravanglory/magehub/api-graphql-resolver.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,697 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00032 $0.02697
Opus 5 $0.00016 $0.01349
Sonnet 5 $0.00006 $0.00539
Haiku 4.5 $0.00003 $0.00270

Measured 4d ago against content hash 9d1d30f3931e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

api-graphql-resolver scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/api/api-graphql-resolver/SKILL.md · 336 lines

How it starts

The opening of the file, as written. The whole thing — 336 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GraphQL Resolver

Activation

Use When
  • The task is to add or modify Magento GraphQL schema, query resolvers, mutation resolvers, or GraphQL authorization behavior.
  • The task mentions etc/schema.graphqls, @resolver, ResolverInterface, GraphQlInputException, or customer/admin GraphQL context.
Do Not Use When
  • The task is REST webapi.xml work without GraphQL schema or resolver changes.
  • The task is only internal service logic where no GraphQL transport mapping is required.
Required Inputs
  • GraphQL field or mutation name, input shape, output type, authorization requirement, and service/repository to delegate to.
  • Backward compatibility expectation for existing schema fields and clients.

Workflow

  1. Inspect existing schema.graphqls files, resolver classes, service contracts, authorization checks, and tests for the same domain.
  2. Design the schema first, keeping queries/mutations backward-compatible and field names explicit.
  3. Implement thin resolvers that validate input, check authorization, delegate to services/repositories, and return arrays matching the schema.
  4. Add or update unit/API-functional coverage for success, validation failure, authorization failure, and missing entity paths.

Guardrails

  • Treat all GraphQL arguments and LLM-generated or client-generated payloads as untrusted input.
  • Do not query collections directly from resolvers when a service contract or repository exists.
  • Ask before introducing a breaking schema change such as field removal, type change, or required input addition. (approval required)

Verification

  • Run bin/magento setup:di:compile or the project wrapper for new resolver classes and constructor dependencies.
  • Run targeted unit tests and GraphQL/API functional tests when available.
  • Run a sample GraphQL query or mutation against the local environment when credentials/session are available.

Output Contract

  • State the schema fields changed, resolver classes touched, authorization model, and sample query/mutation used for verification.
  • Flag any backward-compatibility risk explicitly.

Read the full file on GitHub · 336 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 336 lines · 32 tokens per session scan A 9d1d30f3931e

Subscribe to this mod's changes

api-graphql-resolver is a skill published in the GitHub repository caravanglory/magehub (2 stars, last pushed 2mo ago), licensed MIT. It adds 32 tokens to every session and 2,697 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

nemoclaw-contributor-implement-issue

Implement an accepted NemoClaw GitHub issue in the current checkout. Use when a user asks to pick up an issue for implementation, implement or fix a named issue, or add the issue's tests. Confirm accepted scope, deliver the smallest independently valuable capability slice, and record validation and remaining gates…

NVIDIA/NemoClaw · 134 tokens

amazon-reviews-api-skill

This skill helps users automatically extract Amazon product reviews via the Amazon Reviews API. Agent should proactively apply this skill when users express needs like getting reviews for Amazon product with ASIN B07TS6R1SF, analyzing customer feedback for a specific Amazon item, getting ratings and comments for a…

browser-act/skills · 124 tokens

amazon-competitor-analyzer

Scrapes Amazon product data from ASINs using browseract.com automation API and performs surgical competitive analysis. Compares specifications, pricing, review quality, and visual strategies to identify competitor moats and vulnerabilities.

browser-act/skills · 48 tokens

shopify-functions

Shopify Functions allow developers to customize the backend logic that powers parts of Shopify. Available APIs: Discount, Cart and Checkout Validation, Cart Transform, Pickup Point Delivery Option Generator, Delivery Customization, Fulfillment Constraints, Local Pickup Delivery Option Generator, Order Routing Location…

Shopify/Shopify-AI-Toolkit · 61 tokens

food-order

Reorder previous Foodora orders, preview cart contents, and track delivery ETA/status with ordercli. Use when the user wants to reorder food, check delivery status, or browse recent Foodora order history. Never confirm an order without explicit user approval.

Bitterbot-AI/bitterbot-desktop · 53 tokens

asc-subscription-localization

Bulk-localize subscription, subscription-group, and in-app purchase display names across App Store locales using asc, including API 4.4.1 version-scoped v2 resources. Use when filling or updating subscription/IAP names and descriptions without App Store Connect UI work.

rorkai/app-store-connect-cli-skills · 60 tokens