agentleFS
MindrallyMindrally/skills/graphql/SKILL.md

graphql

Skill275 starsChanged 52 days agoApache-2.0View on GitHub

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

28 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use sqli, ssti and 10 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.
  • SubhiSecSkill

    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 5 projects that use this

  • SubhiSecSkill

    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 6 projects that use this

  • sunilgentyalaSkill

    xxe

    XML External Entity injection expert methodology. Covers classic XXE, blind OOB XXE, XXE via file upload, XXE to SSRF, and XXE in PDF/DOCX parsers.

    Also in 4 projects that use this

  • zebbernSkill

    subdomain-enum

    Enumerate subdomains for a target domain using passive and active reconnaissance techniques. Use when starting reconnaissance on a new target, when you need to discover the attack surface, when expanding scope from a root domain, or when the user provides a domain to investigate.

    Also in 3 projects that use this

  • yaklangSkill

    request-smuggling

    HTTP request smuggling and desynchronization testing. Use when front proxies, CDNs, or load balancers disagree with the origin on message framing (Content-Length vs Transfer-Encoding), on HTTP/2→HTTP/1 translation, or when exploring client-side desync via browser fetch pipelines.

    Also in 3 projects that use this

  • Sorcha-PlatformSkill

    jwt

    Implements JWT Bearer authentication for service-to-service and user authorization. Use when: Configuring authentication, creating authorization policies, issuing/validating tokens, or troubleshooting 401/403 errors.

    Also in 3 projects that use this

  • +5 more from SubhiSec

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 22 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 15
  2. Distinctive:

    Follow functional and declarative programming patterns

    line 18
  3. Distinctive:

    Use proper naming conventions for types, queries, and mutations

    line 23
  4. Distinctive:

    Use enums for fixed sets of values

    line 25
  5. Distinctive:

    Use fragments for reusable field selections

    line 31
  6. Distinctive:

    Use DataLoader for batching and caching

    line 33
  7. Distinctive:

    Avoid N+1 query problems

    line 34
  8. Distinctive:

    Use input types for complex parameters

    line 41
  9. Distinctive:

    Use useStaticQuery for querying GraphQL data at build time

    line 47
  10. Distinctive:

    Use generated GraphQL clients (Genql) for type safety

    line 51
  11. Distinctive:

    Use query complexity analysis to prevent abuse

    line 58
  12. Distinctive:

    Document schemas with descriptions

    line 64
  13. Distinctive:

    Use persisted queries for production

    line 67

“Common” is measured: kept by at least 6 in 10 of the 22 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.