Agent Skills: GraphQL

MUST use when writing GraphQL queries.

UncategorizedID: windmill-labs/windmill/write-script-graphql

Repository

windmill-labsLicense: NOASSERTION
16,266927

Install this agent skill to your local

pnpm dlx add-skill https://github.com/windmill-labs/windmill/tree/HEAD/system_prompts/auto-generated/skills/write-script-graphql

Skill Files

Browse the full folder contents for write-script-graphql.

Download Skill

Loading file tree…

system_prompts/auto-generated/skills/write-script-graphql/SKILL.md

Skill Metadata

Name
write-script-graphql
Description
MUST use when writing GraphQL queries.

CLI Commands

Place scripts in a folder. After writing, tell the user they can run:

  • wmill generate-metadata - Generate .script.yaml and .lock files
  • wmill sync push - Deploy to Windmill

Do NOT run these commands yourself. Instead, inform the user that they should run them.

Use wmill resource-type list --schema to discover available resource types.

GraphQL

Structure

Write GraphQL queries or mutations. Arguments can be added as query parameters:

query GetUser($id: ID!) {
  user(id: $id) {
    id
    name
    email
  }
}

Variables

Variables are passed as script arguments and automatically bound to the query:

query SearchProducts($query: String!, $limit: Int = 10) {
  products(search: $query, first: $limit) {
    edges {
      node {
        id
        name
        price
      }
    }
  }
}

Mutations

mutation CreateUser($input: CreateUserInput!) {
  createUser(input: $input) {
    id
    name
    createdAt
  }
}