AGENT SKILL

graphql-and-webserver

Use when a coding agent needs to start or debug dagster-webserver, query Dagster GraphQL through the CLI or Python client, handle path prefixes, headers, auth, remote URLs, read-only webserver mode, or diagnose webserver/API failures.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
graphql-and-webserver
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Use when a coding agent needs to start or debug dagster-webserver, query Dagster GraphQL through the CLI or Python client, handle path prefixes, headers, auth, remote URLs, read-only webserver mode, or diagnose webserver/API failures.
disable-model-invocation
true

02 资源文件 3

03 SKILL.md 正文

GraphQL And Webserver

Use this sub-skill for Dagster OSS webserver and GraphQL API workflows in an installed Dagster Python environment. It covers dagster-webserver, dagster-graphql, the DagsterGraphQLClient, remote GraphQL URLs, path prefixes, headers/auth, read-only serving, and API troubleshooting.

Route Here

  • Starting dagster-webserver directly, especially with --host, --port, --path-prefix, --read-only, or logging/database timeout flags.
  • Running one-off GraphQL queries with dagster-graphql --text, --file, --predefined, --variables, --remote, or --output.
  • Using DagsterGraphQLClient for run status, job submission, repository-location reload/shutdown, run termination, custom headers, custom auth, HTTPS, timeouts, or path prefixes.
  • Debugging /graphql, /server_info, workspace target selection, invalid variables JSON, remote URL validation, connection errors, read-only mutation failures, or API response __typename errors.

Route Elsewhere

  • Core Dagster asset/job/Definitions modeling: use ../asset-definitions/SKILL.md if that sub-skill exists.
  • Local dagster CLI project validation, asset materialization, schedule/sensor commands, or dagster dev: use ../cli-local-development/SKILL.md if that sub-skill exists.
  • Production deployment topology, daemon, instance storage, run launchers, Kubernetes, or service operations: use ../deployment-operations/SKILL.md if that sub-skill exists.
  • Dagster Plus authorization and cloud deployment administration: treat this sub-skill only as a client/API caution and route cloud operations elsewhere if available.

Start Here

  1. Decide whether the task is server-side (dagster-webserver), CLI query (dagster-graphql), or Python client (DagsterGraphQLClient).
  2. For server startup, choose a workspace target deliberately: -w/--workspace, -f/--python-file, -m/--module-name, package target flags, -a/--attribute, and -d/--working-directory as appropriate.
  3. For GraphQL CLI queries, provide exactly one query source: --text, --file, or --predefined; add --variables as a JSON string only when the query declares variables.
  4. For remote webservers, verify the public base URL and path prefix before querying; the GraphQL endpoint is the base URL plus /graphql after any prefix.
  5. Use python scripts/graphql_health_check.py --help from this sub-skill directory to inspect safe helper options before any network call.

References

  • Workflows and API Reference for concrete webserver, GraphQL CLI, Python client, path-prefix, header/auth, and read-only examples.
  • Troubleshooting for install/import failures, optional dependency gaps, CLI/API misuse, connection errors, path-prefix problems, read-only failures, and GraphQL response errors.
  • GraphQL health-check script for a safe --dry-run command printer or optional read-only GraphQL health query against a webserver URL.

Safety Notes

  • dagster-webserver starts a long-running service; do not launch it as a smoke test unless the user asked to start a server.
  • dagster-graphql mutations and DagsterGraphQLClient methods such as submit_job_execution, terminate_run, reload_repository_location, and shutdown_repository_location can mutate deployment state.
  • Prefer read-only queries such as version, repositoriesOrError, or run-status lookups when diagnosing connectivity.
  • Never print secrets from auth headers or tokens; pass them via environment variables or secret managers and redact them in logs.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351