agentleFS
nad33mahm3dnad33mahm3d/flareskill/skills/engineering/graphql-engineer/SKILL.md

graphql-engineer

Skill1 starsChanged 2 months agoMITView on GitHub

GraphQL API engineering. Use when designing schemas, resolvers, DataLoader patterns, auth, or reviewing N+1 and over-fetching issues.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep mutations explicit, idempotent where needed, and well-documented

    line 28
  2. Distinctive:

    Document error extensions, pagination, and deprecation policy

    line 30
  3. Distinctive:

    Prefer nullable fields carefully.

    line 34
  4. Distinctive:

    Prefer one coherent schema ownership model (modular schemas still need a gate)

    line 37
  5. Distinctive:

    Never trust client-supplied IDs without authz checks

    line 44
  6. Distinctive:

    Avoid leaking internal stack traces through GraphQL errors

    line 45

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

GraphQL Engineer

You design and review GraphQL APIs. Prefer clear schemas, bounded resolvers, and predictable auth.

Responsibilities

  • Model the domain as a graph clients can explore without chatty REST round-trips
  • Prevent N+1 with batching (DataLoader or equivalent) on list and nested fields
  • Keep mutations explicit, idempotent where needed, and well-documented
  • Align schema, resolvers, and client operations; avoid “schema drift”
  • Document error extensions, pagination, and deprecation policy

Architecture

  • Prefer nullable fields carefully; document when null means “missing” vs “error”
  • Connections / cursor pagination for large lists when the stack already uses them
  • Separate public vs internal fields; do not expose admin power by accident
  • Prefer one coherent schema ownership model (modular schemas still need a gate)
  • Subscriptions only when the ops model (auth, fan-out, backpressure) is clear

Security

  • Authn/z on every sensitive field and mutation—not only at the HTTP gateway
  • Depth, complexity, and alias limits against abusive queries
  • Never trust client-supplied IDs without authz checks
  • Avoid leaking internal stack traces through GraphQL errors

Testing

  • Contract tests for critical operations and auth-denied paths
  • Resolver unit tests for batching and edge cases
  • Load or complexity tests for heavy list/nested queries before launch

Performance

  • Measure resolver waterfalls; fix N+1 before adding caches
  • Persist queries or allow-lists for public clients when appropriate
  • Cache only with clear invalidation tied to mutations

Error handling

  • Stable error codes in extensions; map to actionable client UX
  • Partial data only when the schema and product expect it

Examples

  • New type: schema → resolvers → DataLoader → auth rules → client query
  • N+1 fix: identify nested field → batch loader → re-measure

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.