-
Notifications
You must be signed in to change notification settings - Fork 13
Enhance GitLab skill with CLI documentation#63
Conversation
- Add trigger for https://gitlab.com URLs to identify GitLab artifacts - Add IMPORTANT note about recognizing GitLab URLs - Add glab CLI examples for checking pipeline status, viewing MRs/issues - Add section on handling review comments (matching GitHub skill) - Add comprehensive glab CLI command reference: - Merge request commands (list, view, create, checkout, approve, merge) - Issue commands (list, view, create, close, comment) - Pipeline/CI commands (status, view, list, retry, trace) - API access commands - Add section on resolving discussion threads via API - Add note about not marking MRs ready unless explicitly asked This brings the GitLab skill to parity with the GitHub skill in terms of CLI usage documentation and best practices. Co-authored-by: openhands <openhands@all-hands.dev>
Removed the verbose 'Common GitLab CLI Commands' reference section. Key examples are already in the IMPORTANT block, and the discussion thread resolution section provides the equivalent of GitHub's GraphQL examples. Co-authored-by: openhands <openhands@all-hands.dev>
jpshackelford
commented
Feb 19, 2026
A customer indicated that the agent was attempting to use the web-browser to access GitLab issues and MRs. I have updated the GitLab skill to use the gitlab command-line so as to give equivalent instructions as the GitHub skill. I have tested with my own GitLab instance.
@all-hands-bot
all-hands-bot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Acceptable - Brings GitLab skill to parity with GitHub, but command syntax and consistency need fixes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟠 Important: Description is 180+ characters. The GitHub skill keeps it concise (~100 chars). Long descriptions break UI displays and catalog views. Consider:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Suggestion: Placeholders :id and :mr_iid are not explained. Make it concrete:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Suggestion: Inconsistent tooling. Line 62 uses glab api, then suddenly switches to curl. Pick one approach or explain why you switch. For consistency with the skill's preference for glab:
- Resolve a discussion thread:
glab api --method PUT projects/:id/merge_requests/:mr_iid/discussions/:discussion_id \ -f resolved=true
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔴 Critical: Command syntax is wrong. glab ci retry does NOT take a pipeline ID argument - it retries the last pipeline for the current branch. For a specific pipeline:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟢 Nit: File should end with a newline (POSIX standard). Git will flag this.
Summary
This PR enhances the GitLab skill to have equivalent detail to the GitHub skill, particularly around CLI usage and URL recognition.
Changes
URL Recognition
https://gitlab.comas a trigger so the skill activates when GitLab URLs are mentioned<IMPORTANT>section that any URL starting withhttps://gitlab.comrefers to a GitLab artifactCLI Documentation
Added comprehensive
glabCLI command reference:Review Comment Handling
Other Improvements
Motivation
The GitHub skill had significantly more detail about CLI usage, especially around:
ghfor workflow monitoringThis update brings the GitLab skill to parity, ensuring agents have the same level of guidance when working with GitLab repositories.
Testing
The glab CLI commands were tested against a live GitLab repository to verify accuracy.
@jpshackelford can click here to continue refining the PR