glab-workitems
Create, list, and delete GitLab work items (tasks, OKRs, key results, epics, incidents, test cases). Use when working with GitLab's work item types beyond standard issues. Triggers on work items, work-items, tasks, OKRs, key results, epics, work item create, work item delete.
What this skill does
# glab work-items Create, list, and delete GitLab work items — GitLab's unified work tracking model for tasks, OKRs, key results, epics, incidents, test cases, and related planning objects. ## ⚠️ Experimental Feature `glab work-items` is still marked **EXPERIMENTAL** upstream: - command shape may still change - availability can differ by GitLab version / feature flags - some work item types are only meaningful at group scope - use `glab issue` for stable day-to-day issue workflows See: https://docs.gitlab.com/policy/development_stages_support/ ## Quick start ```bash # List work items in the current project glab work-items list # Create a task in the current project glab work-items create --type task --title "Follow up on flaky pipeline" # Create a group-scoped epic glab work-items create --type epic --group my-group --title "Platform rewrite" ``` ## Scope model `glab work-items` uses repository context by default, then lets you override scope explicitly: - **Current repo context** → project work items in the checked-out repository - `--repo owner/project` → a different project - `--group my-group` → group/subgroup work items This matters because some work item types are commonly project-scoped (`task`, `issue`, `incident`) while others often live at group scope (`epic`, `objective`, `key_result`). ## Common workflows ### List work items ```bash # First 20 open work items in current project glab work-items list # Filter by type glab work-items list --type epic --group gitlab-org glab work-items list --type issue --repo gitlab-org/cli # Closed or all states glab work-items list --state closed --group gitlab-org glab work-items list --state all --group gitlab-org # Increase page size (max 100) glab work-items list --per-page 50 --group gitlab-org # Cursor-based pagination glab work-items list --after "eyJpZCI6OTk5OX0" --group gitlab-org # JSON output for automation glab work-items list --output json --group gitlab-org ``` ### Create work items Use `--type` to declare the work item type explicitly. ```bash # Create a project work item glab work-items create \ --type task \ --title "Audit runner costs" \ --description "Summarize shared-runner usage before Friday" # Create a confidential incident glab work-items create \ --type incident \ --title "Investigate production latency spike" \ --confidential # Create a group-scoped epic glab work-items create \ --type epic \ --group my-group \ --title "Q3 platform migration" # JSON output for scripts glab work-items create --type issue --title "Backfill docs" --output json ``` Supported upstream type values include: `epic`, `incident`, `issue`, `key_result`, `objective`, `requirement`, `task`, `test_case`, and `ticket`. ### Delete work items ```bash # Delete by IID in the current project glab work-items delete 42 # Delete a group work item glab work-items delete 42 --group my-group # Delete from another project and return JSON glab work-items delete 42 --repo mygroup/myproject --output json ``` `delete` is destructive. Double-check whether the IID belongs to the intended project or group before running it. ## Work items vs issues | Need | Prefer | |---|---| | Standard bug / feature issue workflow | `glab issue` | | Tasks, OKRs, objectives, key results, next-gen epics | `glab work-items` | | Stable/non-experimental issue automation | `glab issue` | | Group-scoped planning objects | `glab work-items --group ...` | Use `glab work-items` when the work type itself matters. Use `glab issue` when you just need standard issue lifecycle commands with the most mature CLI surface. ## Troubleshooting **`work-items: command not found` or docs show `workitems`:** - The current upstream command family is `glab work-items` with a hyphen. - Unhyphenated `glab workitems` examples are stale. - Check your version with `glab version` when troubleshooting local command availability. **Create/delete seems unavailable on your machine:** - Confirm local command availability with `glab work-items --help` and upgrade glab if create/delete subcommands are missing. **Type filter returns nothing:** - Not every GitLab instance exposes every work item type. - Try the correct scope (`--group` vs `--repo`) for the type you're querying. **Delete removed the wrong thing:** - `delete` works by IID within the selected project/group scope. - Re-run with explicit `--repo` or `--group` so the scope is unambiguous. ## Related Skills - `glab-issue` — Standard issue workflows - `glab-milestone` — Milestones often paired with OKRs and planning - `glab-iteration` — Sprint / iteration planning - `glab-incident` — Incident-specific workflows ## Command reference ```text glab work-items <command> [flags] glab work-items list [flags] --after Cursor for pagination --group Group/subgroup scope --output text|json --per-page Up to 100 items --repo Project scope override --state opened|closed|all --type One or more work item types glab work-items create [flags] --confidential Mark the work item confidential --description Body text (use - to open editor) --group Group/subgroup scope --output text|json --repo Project scope override --title Title for the new work item --type epic|incident|issue|key_result|objective|requirement|task|test_case|ticket glab work-items delete <iid> [flags] --group Group/subgroup scope --output text|json --repo Project scope override ```
Related in Code Review
gstack
IncludedFast headless browser for QA testing and site dogfooding. Navigate pages, interact with elements, verify state, diff before/after, take annotated screenshots, test responsive layouts, forms, uploads, dialogs, and capture bug evidence. Use when asked to open or test a site, verify a deployment, dogfood a user flow, or file a bug with screenshots. (gstack)
startup-due-diligence
IncludedLegal due diligence review for seed-stage and Series A startups (US, Delaware C-Corp focus). Supports both investor and founder perspectives. Capabilities include: (1) Interactive document review and issue spotting; (2) Document request list generation; (3) Cap table and SAFE/convertible note analysis; (4) Red flag identification with severity ratings; (5) Diligence report generation. TRIGGERS: due diligence, DD, startup investment, cap table review, Series A, seed round, investor diligence, legal review startup, SAFE analysis, convertible note, 409A, founder vesting.
interview-master
IncludedThis skill should be used when the user asks to "generate interview questions", "prepare for interview", "optimize resume", "conduct mock interview", "analyze git commits for resume", "generate resume from code", "review my resume", or mentions interview preparation, career assistance, or extracting project experience from git history. Provides comprehensive interview and career development guidance for both job seekers and interviewers.
fix-issue
IncludedFixes GitHub issues using parallel analysis agents for root cause investigation, code exploration, and regression detection. Reads issue context from gh CLI, searches codebase and memory for related patterns, generates a fix with tests, and links the resolution back to the issue via PR. Includes prevention analysis to avoid recurrence. Use when debugging errors, resolving regressions, fixing bugs, or triaging issues.
sf-apex
IncludedGenerates and reviews Salesforce Apex code with 150-point scoring. TRIGGER when: user writes, reviews, or fixes Apex classes, triggers, test classes, batch/queueable/schedulable jobs, or touches .cls/.trigger files. DO NOT TRIGGER when: LWC JavaScript (use sf-lwc), Flow XML (use sf-flow), SOQL-only queries (use sf-soql), or non-Salesforce code.
swift-development
IncludedComprehensive Swift development for building, testing, and deploying iOS/macOS applications. Use when Claude needs to: (1) Build Swift packages or Xcode projects from command line, (2) Run tests with XCTest or Swift Testing framework, (3) Manage iOS simulators with simctl, (4) Handle code signing, provisioning profiles, and app distribution, (5) Format or lint Swift code with SwiftFormat/SwiftLint, (6) Work with Swift Package Manager (SPM), (7) Implement Swift 6 concurrency patterns (async/await, actors, Sendable), (8) Create SwiftUI views with MVVM architecture, (9) Set up Core Data or SwiftData persistence, or any other Swift/iOS/macOS development tasks.