windmill-labs / write-script-graphql
Install for your project team
Run this command in your project directory to install the skill for your entire team:
mkdir -p .claude/skills/write-script-graphql && curl -L -o skill.zip "https://fastmcp.me/Skills/Download/3304" && unzip -o skill.zip -d .claude/skills/write-script-graphql && rm skill.zip
Project Skills
This skill will be saved in .claude/skills/write-script-graphql/ and checked into git. All team members will have access to it automatically.
Important: Please verify the skill by reviewing its instructions before using it.
MUST use when writing GraphQL queries.
0 views
0 installs
Skill Content
---
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 script 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:
```graphql
query GetUser($id: ID!) {
user(id: $id) {
id
name
email
}
}
```
## Variables
Variables are passed as script arguments and automatically bound to the query:
```graphql
query SearchProducts($query: String!, $limit: Int = 10) {
products(search: $query, first: $limit) {
edges {
node {
id
name
price
}
}
}
}
```
## Mutations
```graphql
mutation CreateUser($input: CreateUserInput!) {
createUser(input: $input) {
id
name
createdAt
}
}
```