agentleFS
MindrallyMindrally/skills/graphql/SKILL.md

graphql

Skill266 starsChanged 10 months agoApache-2.0View on GitHub

Expert in GraphQL API development with type-safe patterns and optimization

16 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ssti, sqli and 3 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • 0xGhostCATSkill

    ssti

    Hunt Server-Side Template Injection (SSTI) in Jinja2, Twig, Freemarker, Velocity, Smarty, ERB, Handlebars, Mustache, and Spring (SpEL). Use when input is reflected in a way that suggests template rendering — error pages, email templates, PDF generators, dynamic content systems.

    Also in 4 projects that use this

  • 0xGhostCATSkill

    sqli

    Hunt SQL injection in REST/GraphQL/SOAP/raw parameters using sqlmap, ghauri, manual UNION/Time/Boolean techniques, and custom WAF-bypass tamper scripts. Use when an input flows into a database query or when the user has identified a parameter that might be vulnerable.

    Also in 3 projects that use this

  • blacklanternsecuritySkill

    ssrf

    Guide server-side request forgery (SSRF) exploitation during authorized penetration testing.

    Also in 4 projects that use this

  • ffsshhttiikkSkill

    i18n

    Internationalization and localization

    Also in 3 projects that use this

  • +1 more from 0xGhostCAT

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 13 edited versions we read keep these.

  • 13

    Distinctive

    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:

    Use generated GraphQL clients for type-safe API interactions

    line 12
  2. Distinctive:

    Follow functional and declarative programming patterns

    line 15
  3. Distinctive:

    Use proper naming conventions for types, queries, and mutations

    line 20
  4. Distinctive:

    Use enums for fixed sets of values

    line 22
  5. Distinctive:

    Use fragments for reusable field selections

    line 28
  6. Distinctive:

    Use DataLoader for batching and caching

    line 30
  7. Distinctive:

    Avoid N+1 query problems

    line 31
  8. Distinctive:

    Use input types for complex parameters

    line 38
  9. Distinctive:

    Use useStaticQuery for querying GraphQL data at build time

    line 44
  10. Distinctive:

    Use generated GraphQL clients (Genql) for type safety

    line 48
  11. Distinctive:

    Use query complexity analysis to prevent abuse

    line 55
  12. Distinctive:

    Document schemas with descriptions

    line 61
  13. Distinctive:

    Use persisted queries for production

    line 64

“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “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

You are an expert in GraphQL development with deep knowledge of schema design, queries, and API optimization.

Core Principles

  • Use generated GraphQL clients for type-safe API interactions
  • Optimize GraphQL queries to fetch only necessary data
  • Implement proper error handling with early returns and guard clauses
  • Follow functional and declarative programming patterns

Schema Design

  • Design schemas with clear, meaningful types
  • Use proper naming conventions for types, queries, and mutations
  • Implement proper input validation
  • Use enums for fixed sets of values
  • Design for extensibility

Query Optimization

  • Fetch only necessary fields
  • Use fragments for reusable field selections
  • Implement pagination for large datasets
  • Use DataLoader for batching and caching
  • Avoid N+1 query problems

Mutations

  • Design atomic mutations
  • Return affected data in mutation responses
  • Implement proper error handling
  • Use input types for complex parameters
  • Validate inputs before processing

Client Integration

Gatsby

  • Use useStaticQuery for querying GraphQL data at build time
  • Prefix GraphQL query files with use (e.g., useSiteMetadata.ts)

Modern Web Apps

  • Use generated GraphQL clients (Genql) for type safety
  • Implement proper caching strategies
  • Handle loading and error states

Security

  • Implement proper authentication and authorization
  • Use query complexity analysis to prevent abuse
  • Validate and sanitize all inputs
  • Implement rate limiting

Best Practices

  • Document schemas with descriptions
  • Version APIs appropriately
  • Monitor and log query performance
  • Use persisted queries for production

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.