agentleFS
crowdincrowdin/skills/skills/graphql/SKILL.md

graphql

Skill8 starsChanged 3 months agoMITView on GitHub

Write valid, schema-aware Crowdin GraphQL queries and debug invalid ones. Use this whenever the user asks for Crowdin GraphQL queries, filters, pagination, sorting, or when they share GraphQL errors from Crowdin Playground (especially unknown argument/field errors) and need a corrected query that actually matches the schema.

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

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

  • 0

    Common

    Most of the 13 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill to produce valid Crowdin GraphQL queries that match the live schema, avoid unsupported arguments, and include practical …

    line 8
  2. Distinctive:

    If relevant, a corrected version of the user's broken query plus a brief "what was wrong".

    line 15
  3. Distinctive:

    If the request is ambiguous, choose a conservative default and say so briefly.

    line 27
  4. Very specific:

    Add required pagination arguments (first or last) on every connection.

    line 33
  5. Very specific:

    Add nested selections (edges -> node) and only requested fields.

    line 34
  6. Distinctive:

    Add filtering/sorting only where the schema supports it.

    line 35
  7. Distinctive:

    Do not invent arguments by analogy with REST parameters.

    line 37
  8. Very specific:

    Every queried connection has first or last (1..10000).

    line 42
  9. Very specific:

    If user asks for "from date X to date Y", use supported filter input fields (for resources that expose them), not ad-hoc args.

    line 53
  10. Distinctive:

    If the user query contains field arguments that are not in the schema, rewrite the query using supported alternatives.

    line 59
  11. Very specific:

    Keep supported args like languageId, first, after.

    line 66
  12. Very specific:

    If date constraints are required, move them to a supported filter input on fields that provide one (or explain that this field does not …

    line 67
  13. Distinctive:

    Do not request large nested fan-outs without reason.

    line 75
  14. Distinctive:

    When the user provides an error, follow this output format:

    line 142
  15. Distinctive:

    Prefer correctness over being "clever".

    line 151
  16. Distinctive:

    If the schema support is uncertain, explicitly say "verify in Playground Explorer for this field".

    line 152
  17. Distinctive:

    Never pretend an argument exists.

    line 153

“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

Crowdin GraphQL Query Writing

Use this skill to produce valid Crowdin GraphQL queries that match the live schema, avoid unsupported arguments, and include practical pagination/filtering patterns.

What to Deliver

Return:

  1. A working GraphQL query.
  2. A short explanation of how it works.
  3. If relevant, a corrected version of the user's broken query plus a brief "what was wrong".
  4. Optional: variables object when it improves readability.

Core Workflow

1) Confirm intent and scope

Identify:

  • Target resource (projects, strings, translations, etc.).
  • Required constraints (language, dates, status, user, approval state).
  • Output fields user needs.

If the request is ambiguous, choose a conservative default and say so briefly.

2) Build from schema-safe primitives

Use this sequence:

  1. Pick the root field that actually exposes the target connection.
  2. Add required pagination arguments (first or last) on every connection.
  3. Add nested selections (edges -> node) and only requested fields.
  4. Add filtering/sorting only where the schema supports it.

Do not invent arguments by analogy with REST parameters.

3) Validate against common Crowdin GraphQL constraints

Before finalizing:

  • Every queried connection has first or last (1..10000).
  • Estimated total requested nodes stay under 10,000.
  • Query includes pageInfo when pagination is likely needed.
  • Query avoids unsupported arguments on a field.

4) Add safe pagination pattern

Prefer cursor pagination:

  • Forward: first + after
  • Backward: last + before

If user asks for "from date X to date Y", use supported filter input fields (for resources that expose them), not ad-hoc args.

High-Risk Mistakes to Prevent

Unknown argument errors

If the user query contains field arguments that are not in the schema, rewrite the query using supported alternatives.

Example anti-pattern from real failures:

  • translations(..., createdAfter: "...", createdBefore: "...")

Fix strategy:

  1. Remove unsupported args.
  2. Keep supported args like languageId, first, after.
  3. If date constraints are required, move them to a supported filter input on fields that provide one (or explain that this field does not expose date filtering directly).

Missing required pagination arguments

Crowdin GraphQL connections require first or last. Never omit them.

Over-fetching

Do not request large nested fan-outs without reason. Keep node count budgeted.

Query Patterns

Pattern A: Minimal safe connection query

query GetProjects($first: Int!, $after: String) {
  viewer {
    projects(first: $first, after: $after) {
      edges {
        node {
          id
          name
        }
        cursor
      }
      pageInfo {
        hasNextPage
        endCursor
      }
      totalCount
    }
  }
}

Pattern B: Filtering + ordering (where supported)

query FilteredProjects {
  viewer {
    projects(
      first: 10
      filter: { createdAt: { gt: "2023-01-01T00:00:00Z" } }
      order: [{ lastActivityAt: asc }]
    ) {
      edges {
        node {
          id
          name
          lastActivityAt
        }
      }
    }
  }
}

Pattern C: Rate limit awareness

query MeAndCost {
  viewer {
    username
  }
  rateLimit {
    limit
    cost
    remaining
    resetAt
  }
}

Debugging Template

When the user provides an error, follow this output format:

  1. Cause: one sentence pointing to schema mismatch.
  2. Fixed query: full corrected query.
  3. Why this works: 2-4 bullets tied to schema rules.
  4. If date filtering was requested: explain whether that specific field supports date filtering; if not, propose nearest valid alternative.

Tone and Safety

  • Prefer correctness over being "clever".
  • If the schema support is uncertain, explicitly say "verify in Playground Explorer for this field".
  • Never pretend an argument exists.

Reference

For constraints and examples, align with Crowdin docs:

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.