gflow Ops
Use this skill for local gflow work: inspect the daemon, queue, jobs, reservations, logs, and safely mutate scheduler state.
When To Use
- The user asks about
gflowd, gqueue, gjob, gcancel, ginfo, gstats, or the local scheduler state.
- The task needs job inspection, failure diagnosis, or GPU availability checks.
- The task needs job submission, update, hold, release, or cancellation.
- The task needs validation of the local
gflow mcp serve MCP server.
Do not use this skill for remote cluster orchestration or multi-tenant service design. gflow is local-first.
Preferred Order
- Check liveness first.
Use MCP
get_health if available. CLI fallback: gflowd status.
- Inspect before mutating.
Use
get_info, list_jobs, get_job, get_stats, list_reservations.
- Prefer MCP tools over ad hoc shell commands when the tool server is available.
- For validation, use short no-GPU test jobs in the current repo directory.
- Clean up test jobs when done.
MCP Tools
Prefer these tools when the local MCP server is configured:
get_health
get_info
list_jobs
get_job
get_job_log
get_stats
list_reservations
submit_jobs
update_job
hold_job
release_job
cancel_job
get_job_log.text is the agent-friendly program output view.
Use full_text only when the filtered output is missing important context.
Use submit_jobs for both one-off test jobs and small parameter sweeps. It attempts jobs sequentially and reports per-job success or failure.
CLI Fallbacks
Use CLI only when MCP is unavailable or when testing the CLI itself.
- Health:
gflowd status
- Queue:
gqueue, gqueue -a, gqueue -s Running
- Scheduler info:
ginfo, gstats
- Submit:
gbatch ...
- Inspect:
gjob show <job_id>, gjob log <job_id>
- Mutate:
gjob hold <job_id>, gjob release <job_id>, gjob update ..., gcancel <job_id>
Safety Rules
- Treat all write operations as potentially user-impacting.
- Do not cancel, hold, release, or update existing non-test jobs without explicit user intent.
- For experimentation, create dedicated test jobs with
gpus: 0 unless the user explicitly wants GPU scheduling behavior.
- Before using
cancel_job, confirm the target job ID and whether it is a test job.
- After creating test jobs, cancel them if they are still active.
Reliable Validation Pattern
When you need a queued job for hold_job, release_job, or update_job testing:
- Submit a blocker job with
gpus: 0 and a long sleep.
- Submit a dependent job with
depends_on_ids: [blocker_id].
- Operate on the dependent job while it is waiting on the blocker.
- Cancel both jobs after validation.
This avoids interfering with GPU workloads and reduces scheduler races.
Examples
User request:
"Check whether gflowd is healthy and show me the latest failed jobs."
Preferred flow:
get_health
list_jobs with a failure filter and explicit limit
get_job or get_job_log for the most relevant failures
User request:
"Test whether hold/release works."
Preferred flow:
- Submit blocker test job
- Submit dependent test job
hold_job
update_job if needed
release_job
cancel_job both test jobs
User request:
"Create a small parameter sweep with MCP."
Preferred flow:
get_health
- Build the full set of test jobs with
gpus: 0 unless GPU behavior is part of the test
submit_jobs
list_jobs or get_job to confirm the submitted IDs and states
cancel_job the test jobs after validation if they are no longer needed
Source: AndPuQing/gflow — distributed by TomeVault.
1---2name: andpuqing-gflow-gflow3description: gflow Ops4---56# gflow Ops78Use this skill for local `gflow` work: inspect the daemon, queue, jobs, reservations, logs, and safely mutate scheduler state.910## When To Use1112- The user asks about `gflowd`, `gqueue`, `gjob`, `gcancel`, `ginfo`, `gstats`, or the local scheduler state.13- The task needs job inspection, failure diagnosis, or GPU availability checks.14- The task needs job submission, update, hold, release, or cancellation.15- The task needs validation of the local `gflow mcp serve` MCP server.1617Do not use this skill for remote cluster orchestration or multi-tenant service design. `gflow` is local-first.1819## Preferred Order20211. Check liveness first.22 Use MCP `get_health` if available. CLI fallback: `gflowd status`.232. Inspect before mutating.24 Use `get_info`, `list_jobs`, `get_job`, `get_stats`, `list_reservations`.253. Prefer MCP tools over ad hoc shell commands when the tool server is available.264. For validation, use short no-GPU test jobs in the current repo directory.275. Clean up test jobs when done.2829## MCP Tools3031Prefer these tools when the local MCP server is configured:3233- `get_health`34- `get_info`35- `list_jobs`36- `get_job`37- `get_job_log`38- `get_stats`39- `list_reservations`40- `submit_jobs`41- `update_job`42- `hold_job`43- `release_job`44- `cancel_job`4546`get_job_log.text` is the agent-friendly program output view.47Use `full_text` only when the filtered output is missing important context.48Use `submit_jobs` for both one-off test jobs and small parameter sweeps. It attempts jobs sequentially and reports per-job success or failure.4950## CLI Fallbacks5152Use CLI only when MCP is unavailable or when testing the CLI itself.5354- Health: `gflowd status`55- Queue: `gqueue`, `gqueue -a`, `gqueue -s Running`56- Scheduler info: `ginfo`, `gstats`57- Submit: `gbatch ...`58- Inspect: `gjob show <job_id>`, `gjob log <job_id>`59- Mutate: `gjob hold <job_id>`, `gjob release <job_id>`, `gjob update ...`, `gcancel <job_id>`6061## Safety Rules6263- Treat all write operations as potentially user-impacting.64- Do not cancel, hold, release, or update existing non-test jobs without explicit user intent.65- For experimentation, create dedicated test jobs with `gpus: 0` unless the user explicitly wants GPU scheduling behavior.66- Before using `cancel_job`, confirm the target job ID and whether it is a test job.67- After creating test jobs, cancel them if they are still active.6869## Reliable Validation Pattern7071When you need a queued job for `hold_job`, `release_job`, or `update_job` testing:72731. Submit a blocker job with `gpus: 0` and a long `sleep`.742. Submit a dependent job with `depends_on_ids: [blocker_id]`.753. Operate on the dependent job while it is waiting on the blocker.764. Cancel both jobs after validation.7778This avoids interfering with GPU workloads and reduces scheduler races.7980## Examples8182User request:83"Check whether gflowd is healthy and show me the latest failed jobs."8485Preferred flow:861. `get_health`872. `list_jobs` with a failure filter and explicit `limit`883. `get_job` or `get_job_log` for the most relevant failures8990User request:91"Test whether hold/release works."9293Preferred flow:941. Submit blocker test job952. Submit dependent test job963. `hold_job`974. `update_job` if needed985. `release_job`996. `cancel_job` both test jobs100101User request:102"Create a small parameter sweep with MCP."103104Preferred flow:1051. `get_health`1062. Build the full set of test jobs with `gpus: 0` unless GPU behavior is part of the test1073. `submit_jobs`1084. `list_jobs` or `get_job` to confirm the submitted IDs and states1095. `cancel_job` the test jobs after validation if they are no longer needed110111---112> Source: [AndPuQing/gflow](https://github.com/AndPuQing/gflow) — distributed by [TomeVault](https://tomevault.io).113<!-- tomevault:4.0:skill_md:2026-06-17 -->