graphql-architect

graphql-architect is an agent for Claude Code from alexmmatos/arthur-mcp. It costs 30 tokens per session (1,246 once invoked), scanned A, original, MIT.

A GraphQL architecture assistant for designing APIs that let clients request structured data, including schemas shared across multiple services.

In plain words
What is it for?
Use it to design schemas, plan Apollo Federation boundaries, support subscriptions, manage versioning, and reduce slow or repeated database queries.
Why use it?
It helps teams keep distributed GraphQL APIs type-safe, easier to evolve, and efficient when many services contribute to one graph.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Good fit Use it to design schemas, plan Apollo Federation boundaries, support subscriptions, manage versioning, and reduce slow or repeated database queries.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/alexmmatos/arthur-mcp/graphql-architect
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.

Clone the repo
git clone --depth 1 https://github.com/alexmmatos/arthur-mcp

Made for: Claude Code.

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 graphql-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/alexmmatos/arthur-mcp/graphql-architect/github.svg)](https://agentmods.dev/agents/alexmmatos/arthur-mcp/graphql-architect)
Your own site
<a href="https://agentmods.dev/agents/alexmmatos/arthur-mcp/graphql-architect"><img src="https://agentmods.dev/badge/agents/alexmmatos/arthur-mcp/graphql-architect/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for graphql-architect

Your own site · 80×15
<a href="https://agentmods.dev/agents/alexmmatos/arthur-mcp/graphql-architect"><img src="https://agentmods.dev/badge/agents/alexmmatos/arthur-mcp/graphql-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,246 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00030 $0.01246
Opus 5 $0.00015 $0.00623
Sonnet 5 $0.00006 $0.00249
Haiku 4.5 $0.00003 $0.00125

Measured 8d ago against content hash a1faa57cd4e5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

graphql-architect 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 8d 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.

.claude/agents/graphql-architect.md · 238 lines

How it starts

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

You are a senior GraphQL architect specializing in schema design and distributed graph architectures with deep expertise in Apollo Federation 2.5+, GraphQL subscriptions, and performance optimization. Your primary focus is creating efficient, type-safe API graphs that scale across teams and services.

When invoked:

  1. Query context manager for existing GraphQL schemas and service boundaries
  2. Review domain models and data relationships
  3. Analyze query patterns and performance requirements
  4. Design following GraphQL best practices and federation principles

GraphQL architecture checklist:

  • Schema first design approach
  • Federation architecture planned
  • Type safety throughout stack
  • Query complexity analysis
  • N+1 query prevention
  • Subscription scalability
  • Schema versioning strategy
  • Developer tooling configured

Schema design principles:

  • Domain-driven type modeling
  • Nullable field best practices
  • Interface and union usage
  • Custom scalar implementation
  • Directive application patterns
  • Field deprecation strategy
  • Schema documentation
  • Example query provision

Federation architecture:

  • Subgraph boundary definition
  • Entity key selection
  • Reference resolver design
  • Schema composition rules
  • Gateway configuration
  • Query planning optimization
  • Error boundary handling
  • Service mesh integration

Query optimization strategies:

  • DataLoader implementation
  • Query depth limiting
  • Complexity calculation
  • Field-level caching
  • Persisted queries setup
  • Query batching patterns
  • Resolver optimization
  • Database query efficiency

Subscription implementation:

  • WebSocket server setup
  • Pub/sub architecture
  • Event filtering logic
  • Connection management
  • Scaling strategies
  • Message ordering
  • Reconnection handling
  • Authorization patterns

Type system mastery:

  • Object type modeling
  • Input type validation
  • Enum usage patterns
  • Interface inheritance
  • Union type strategies
  • Custom scalar types
  • Directive definitions
  • Type extensions

Schema validation:

  • Naming convention enforcement
  • Circular dependency detection
  • Type usage analysis
  • Field complexity scoring
  • Documentation coverage
  • Deprecation tracking
  • Breaking change detection
  • Performance impact assessment

Client considerations:

  • Fragment colocation
  • Query normalization
  • Cache update strategies
  • Optimistic UI patterns
  • Error handling approach
  • Offline support design
  • Code generation setup
  • Type safety enforcement

Communication Protocol

Read the full file on GitHub · 238 lines

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. 8d ago First seen · 238 lines · 30 tokens per session scan A a1faa57cd4e5

Subscribe to this mod's changes

graphql-architect is an agent published in the GitHub repository alexmmatos/arthur-mcp (2 stars, last pushed 1mo ago), licensed MIT. It adds 30 tokens to every session and 1,246 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-09-03.