Glab gitlab issue
Reusable agent skills for local workflows and automation, including China workday checks and Codex session history tools.
npx -y skills add Sube-py/awesome-skills --skill glab-gitlab-issueAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Read and manage GitLab issues through the `glab` CLI. Use when a user provides an issue ID and repository and asks to view issue details, comments, or uploaded images, publish comments, update assignees or labels, or manage issue time tracking (estimate/spent time) without using the web UI.
SKILL.md
3.9 KB, as published. Nobody here has run it
Glab Gitlab Issue
Manage GitLab issues from the terminal using glab.
Required Inputs
Collect these inputs before running commands:
repo:OWNER/REPOorGROUP/NAMESPACE/REPO(example:example-org/example-app)- Pass plain repo path (do not pre-encode
%2F). - The helper script auto-encodes repo path only when calling
glab apiendpoints.
- Pass plain repo path (do not pre-encode
issue_id: issue IID in that repository (example:165)author(for commit query): GitLab username (example:octocat)
Workflow
- Confirm authentication with
glab auth statusif access is uncertain. - Identify intent: view, comment, assignee update, label update, or time tracking.
- For reading an issue, use
view; it caches GitLab/uploads/...files from the description and notes by default under${XDG_CACHE_HOME:-$HOME/.cache}/codex/glab-gitlab-issue/and rewrites them to local links in the output. - Return key result, including any changed fields.
Preferred Execution
Prefer the bundled helper script for consistency:
bash scripts/issue.sh <action> --repo <repo> --issue <issue_id> [...flags]
Supported actions:
commits: query commit history by repo + author, return committed date/author/messageview: view issue; optional comments/system logs/json output; caches upload files by defaultimages: lower-level helper to refresh/list cached/uploads/...files from the issue description and notesnote: post a comment from inline textnote-file: post a comment from a fileassignee: update assigneeslabels: add/remove labelsestimate: set time estimateadd-spent: add spent time and return created timelog IDlist-spent: list timelog entries on the issue and return timelog IDsdelete-spent: delete one spent-time entry by timelog ID, owner-safe by defaultreset-estimate: clear estimatereset-spent: clear spent time
Use --dry-run with any action to preview the underlying glab command.
Command Reference
Load references/commands.md when exact command syntax is needed.
Practical Examples
View issue with comments:
bash scripts/issue.sh commits --repo example-org/example-api --author octocat --limit 20
bash scripts/issue.sh view --repo example-org/example-app --issue 165 --comments
Use a custom cache directory or bypass caching:
bash scripts/issue.sh view --repo example-org/example-app --issue 30 --comments --cache-dir /tmp/issue-30-cache
bash scripts/issue.sh view --repo example-org/example-app --issue 30 --no-cache
Publish a comment:
bash scripts/issue.sh note --repo example-org/example-app --issue 165 --message "Finished today's progress update."
Update assignee and labels:
bash scripts/issue.sh assignee --repo example-org/example-app --issue 165 --assignee alice
bash scripts/issue.sh labels --repo example-org/example-app --issue 165 --add backend,urgent --remove triage
Track time:
bash scripts/issue.sh estimate --repo example-org/example-app --issue 165 --duration 3h
bash scripts/issue.sh add-spent --repo example-org/example-app --issue 165 --duration 45m --summary "daily report"
bash scripts/issue.sh list-spent --repo example-org/example-app --issue 165 --limit 20
bash scripts/issue.sh delete-spent --repo example-org/example-app --issue 165 --timelog-id gid://gitlab/Timelog/12345
Troubleshooting
- If
404occurs, verify repo path and issue IID belong to the same project. - If
403occurs, verify token scope and project access. - If comment text contains many special characters, use
note-file.