write-script-graphql

Writes GraphQL queries and mutations as Windmill scripts with variable binding.

Updated May 28, 2026
One-click install
npx skills add https://github.com/kma-core/windmill --skill write-script-graphql-kma-core
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-script-graphql
Source: https://github.com/kma-core/windmill/tree/main/system_prompts/auto-generated/skills/write-script-graphql
Command: npx skills add https://github.com/kma-core/windmill --skill write-script-graphql-kma-core

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing and testing GraphQL queries inside the Windmill platform requires knowing the correct script structure, variable binding conventions, and which CLI command to use for previewing versus deploying. This Skill provides the exact patterns and command guidance so queries work correctly on the first attempt. ## Core Features & Use Cases - GraphQL Query Authoring: Write queries with typed variables that are automatically bound from script arguments. - Mutation Support: Create mutations with input objects for creating or updating data through a GraphQL API. - CLI Workflow Guidance: Choose correctly between wmill script preview for local iteration, wmill script run for deployed scripts, and wmill sync push only for explicit deploys. - Use Case: You need to fetch user data from a GraphQL API inside a Windmill workflow. The Skill produces a parameterized query like query GetUser($id: ID!) and tells you to validate it with wmill script preview before any deployment. ## Quick Start Write a Windmill GraphQL script that queries a user by ID and preview it locally with sample arguments.

Frequently Asked Questions about write-script-graphql

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write a GraphQL query in Windmill?

Write a standard GraphQL query with typed variables, such as query GetUser($id: ID!), and save it as a script file. Windmill automatically binds script arguments to the query variables, so declared parameters become query inputs without extra code.

How to pass variables to a GraphQL query in Windmill?

Declare variables in the query signature, for example $query: String! or $limit: Int = 10 with a default value. Windmill passes script arguments directly as these variables, so supplying arguments at preview or run time populates the query automatically.

What is the difference between wmill script preview and script run?

wmill script preview executes the local script file without deploying, making it the default for iterating on edits. wmill script run executes the version already deployed in the workspace and should only be used when you explicitly want to test the deployed version.

Can I write GraphQL mutations as Windmill scripts?

Yes, mutations are supported with the same variable binding as queries. Define a mutation such as mutation CreateUser($input: CreateUserInput!) and pass the input object as a script argument to create or update data through the GraphQL API.

When should I use wmill sync push for a GraphQL script?

Use wmill sync push only when you explicitly want to deploy, publish, or push local changes to the workspace. It overwrites the workspace version, so testing local edits should always use wmill script preview instead of pushing first.