aver005/gitlab-worker/glw

Claude Code and agent skill by aver005/gitlab-worker

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Operate the `glw` GitLab work-items CLI to manage issues/work items from natural-language requests: create/view/update/close/reopen issues, set status/assignee/labels/weight/dates, add comments, track time (estimate/spend), search and bulk-edit by filter, list everything assigned to the user across projects, read and clear the GitLab To-Do List, and switch projects. Use whenever the user wants to manage GitLab issues or work items, create/update/close issues, do time tracking, run bulk issue operations, asks what is on them / their to-dos, or explicitly says "через glw" / "using glw".

Install

npx vskill@latest install aver005/gitlab-worker/glw

SKILL.md

The same SKILL.md was published earlier as aver005/gitlab-worker/glw.

glw — GitLab Work Items CLI

glw manages GitLab work items (issues) via the GraphQL API. Bun runtime, Windows/POSIX. You translate a user's natural-language request into exact glw commands, preview any bulk change, execute, and report results.

Invocation

Preferred: glw <command> [flags] (if linked via bun link). Fallback if glw is not on PATH: bun run src/index.ts <command> [flags] from the repo root. Everything below uses glw; substitute the fallback verbatim.

Aliases: i=init, cfg=config, s=search, p=projects, l/ls=list, v=view, cr=create, u=update, co=comment, ln=link. (use has no alias.)

1. Preflight (run once per session before mutations)

Do these in order. Stop and ask the user only if a step fails and you cannot self-correct.

  1. Tool available — glw --help. If "command not found", switch to

bun run src/index.ts --help from the repo root for all subsequent calls.

  1. Auth — glw whoami --json. Success prints {"id","username","name"};

note the username (used for "me"/"на мне"). Failure → see auth errors below.

  1. Project set — only needed for project-scoped commands (everything except

whoami, projects, use, init, completion, mine, todos). A quick probe: glw list --limit 1 --json. If it errors with "GitLab project not configured", resolve the project (see below) before proceeding.

Config / auth error messages and fixes

The CLI reads config in priority order: --project flag > env (GITLAB_URL/GITLAB_TOKEN/GITLAB_PROJECT) > .env in cwd > glw.config.json in cwd > global .env/glw.config.json from %APPDATA%/glw (POSIX: ~/.config/glw) — the global layer applies only when enabled via glw global on (check: glw global status). Exact errors:

Inspect the effective config safely (no network, never throws): glw config (alias cfg) — shows url/project/tokenEnv/masked token/global mode. Individual values: glw config url, etc.

  • GitLab URL not configured. → ask the user for the URL, then

glw config url <url>. Do not guess a URL.

  • GitLab access token not configured. → user runs glw config token <token>

or glw init <token> (both write GITLAB_TOKEN to .env). Never fabricate a token.

  • GitLab project not configured. → run glw projects to list, then

glw use <name> to persist, or pass --project <ref> per command.

2. CRITICAL agent gotcha — non-TTY auto-declines confirmation

The interactive confirmation prompt returns false when stdin is not a TTY (if (!process.stdin.isTTY) return false). Agents run non-TTY, so any update/close by selection filter (no explicit iids) will silently abort ("Aborted.") unless you pass --yes.

Protocol — never --yes blindly on an unpreviewed filter:

  • `update` by filter: first run the identical command with --dry-run

(no --yes). It prints the matched items without changing anything. Show the user the count + list. Then re-run replacing --dry-run with --yes.

  • `close` by filter: close has no --dry-run (passing it fails with

Unknown option). Preview by running the equivalent glw search/glw list --json with the same filter first, show the matched items, then run glw close ... --yes.

  • Explicit iids (glw update 42 43 ..., glw close 42): still prompt-gated

when >0 items, so pass --yes for non-interactive runs. These are already scoped, so no separate preview is required beyond confirming the iids.

3. Output parsing — use --json, never scrape human output

For anything you must reason over (counts, iids, statuses, assignees), pass --json. Human output is colored and for showing the user only; do not parse it. Supported on: whoami, projects, labels, search, list, mine, todos, view, create, link, parent.

JSON shape (verified against src/api/work-item.ts):

  • list/search → a JSON array of work-item nodes. view/create → a

single node.

  • Node top-level: `{ "id", "iid", "title", "state", "webUrl", "namespace":

{ "fullPath" }, "widgets": [...] } (namespace.fullPath = project path). **iid is a string** (e.g. "42"); state is "opened"/"closed"`.

  • Fields live in the widgets array, each keyed by type:
  • DESCRIPTION → description
  • ASSIGNEES → assignees.nodes[] ({id,username,name})
  • LABELS → labels.nodes[] ({id,title})
  • STATUS → status ({id,name} or null)
  • WEIGHT → weight (number or null)
  • START_AND_DUE_DATE → startDate, dueDate (or null)
  • TIME_TRACKING → timeEstimate, totalTimeSpent (seconds)
  • HIERARCHY → hasParent, hasChildren, parent ({id,iid,title,state}

or null), children.nodes[] ({id,iid,title,state})

  • LINKED_ITEMS → blocked (bool), blockedByCount, blockingCount

(this GitLab exposes counts only, not the linked list — read links from the web UI or infer from the counts)

To get an assignee's username: find the widget with type == "ASSIGNEES", read assignees.nodes[0].username. whoami --json → {id,username,name}.

Prefer flat fields when you only need a few values: list/search/mine/view accept --fields iid,title,status,labels,weight,estimate,spent --json and return flat objects (view: one object) — no widget digging. labels and assignees are arrays of titles/usernames, estimate/spent are seconds, missing values are null. Available: iid id title state status labels assignees weight start due estimate spent project url description.

todos --json is always flat: [{ id, action, state, type, project, ref, title, targetState, author, createdAt, url, body }] — id is the to-do id for todos done, not an iid; the item's iid is in ref (acme/app#42).

4. Intent → command mapping (canonical)

Full flag reference: references/commands.md. Intent cookbook (RU+EN phrasings): references/recipes.md. Summary:

  • Create from file: glw create <file> (.md/.txt/.json). Run

glw create <file> --dry-run --json first when the file was written by hand or by you: it resolves labels/users/status/type on the server, sends nothing, and lists every problem in problems (exit 1 if any). MD/txt supports a YAML frontmatter block between --- lines with keys: title, labels, assignees/assignee, weight, estimate, spend, spend_date, spend_summary, start/start_date, due/due_date, status, confidential, type. If frontmatter has none of these keys, the whole file (incl. ---) is treated as the body. Flags override frontmatter: --title --label(repeatable) --labels(csv) --assignee --weight --start --due --estimate --spend --date --summary --status --confidential --type. Estimate/spend are applied by a second request right after creation; if that fails, the item still exists — the error names its iid.

  • Edit fields (glw update): `--title --body --body-file --status

--assignee --labels(set,csv) --add-label(repeatable) --remove-label --weight --start --due --estimate --spend --summary --date. Clear a field with the literal none: --assignee none, --weight none, --start none, --due none`.

  • Comment: glw comment <iid> "text" or --file <f>; --internal for a

confidential note.

  • Close/reopen: glw close <iid...> (optional --comment "...");

glw reopen <iid...>.

  • Link work items (glw link): `glw link <iid> <target...> [--type

related|blocks|blocked-by] [--remove]. Creates the relation **from** <iid> **to** each target (blocks → <iid> blocks the targets; blocked-by → the reverse); default related. --remove deletes the link (--type ignored). Explicit iids only, no prompt. #42 and 42` both accepted.

  • Parent / children (glw parent): `glw parent <child-iid...> --to

<parent-iid|none>. Sets the parent of each child (that is how you "add children" to an epic/parent); --to none detaches. Continues past per-item failures, exits non-zero if any failed. Uses the hierarchy widget on workItemUpdate` under the hood.

  • Search (≥1 filter required): positional text = title AND description;

--name title-only; --body description-only; --start_time/--start YYYY-MM-DD >=; multiple filters combine with AND; --state opened|closed|all (default opened); --limit (default 200).

  • List: --state --search --assignee --label --limit(default 50). One

project only, assignee/label filtered client-side over the fetched page.

  • Everything assigned to me ("что на мне", "мои задачи везде"): `glw mine

[--state] [--label]... [--limit] [--fields] --json — all projects, server-side. Iids repeat across projects: include project in --fields and pass --project <path> when you then view/update/close` an item.

  • To-Do List ("мой To-Do", "что от меня ждут", "где меня упомянули"):

glw todos [--state pending|done|all] [--project <ref>] --json. Mark done: glw todos done <id...> (to-do ids from id); all pending: preview with glw todos --json, then glw todos done --all --yes.

  • Projects: glw projects [--search] to discover; glw use <name> to set

default; --project <ref> per command. <ref> = full group/project path or a unique short name.

  • Labels: glw labels [--search <q>] --json lists the labels that exist

(project + ancestor groups). Check it before passing label names to create/update instead of guessing from other issues.

  • Scoped labels (scope::value) are mutually exclusive: GitLab keeps one

per scope. A glw: warning: labels ... share scope line on stderr means you passed two from one scope in the same call — pick one and rerun.

  • Statuses: system names are To do, In progress, Done, Won't do,

Duplicate (case-insensitive; server may define custom ones). Quote names with spaces.

  • Duration format (estimate/spend): \d+[wdhm] combos — 2h, 30m,

1h30m, 3d, 1w2d3h.

  • Time tracking: glw estimate <iid> <dur>; `glw spend <iid> <dur>

[--summary "..."] [--date YYYY-MM-DD]. Also settable via update --estimate/--spend. --date` books the time on a past day (default: today).

5. Bulk operation protocol (imperative)

  1. Resolve scope. If the user named issues by content/attribute, do NOT

guess iids — build a selection filter or search first.

  1. Preview. update→ run with --dry-run. close→ run

search/list --json with the same filter. Never skip.

  1. Report to user the matched count and a short list (iid + title).
  2. Sanity gate. If the count is 0, or surprisingly large (e.g. a filter you

expected to match a handful returns dozens), STOP and ask the user to confirm before mutating.

  1. Execute the identical filter with --yes (for update, swap --dry-run

for --yes).

  1. Report results per item. The CLI continues past a per-item failure and

prints Failed #<iid>: <msg>, then exits non-zero if any failed. Surface which succeeded and which failed; a non-zero exit with some successes is partial success, not total failure.

Batch create (glw create a.md b.md or glw create <dir>): first glw create <files|dir> --dry-run --json and fix every entry with non-empty problems; then run with --yes --json (a directory asks for confirmation, which auto-declines without a TTY). Output is [{ file, item?, error? }]: item without error = created; item with error = created but time tracking failed (retry with estimate/spend, do NOT create again); error alone = not created. Never rerun the whole batch after a partial failure — that duplicates the created items; rerun only the failed files.

6. Error recovery

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/aver005/gitlab-worker/glw/badge)](https://verified-skill.com/skills/aver005/gitlab-worker/glw)

Something wrong with this skill or its page? Tell us.