بنقرة واحدة
gitlab-cli
// Operate GitLab from terminal with `glab` for repositories, merge requests, issues, pipelines, releases, and API calls. Use for any GitLab task. For template-compliant MR creation, load reference workflow under references/.
// Operate GitLab from terminal with `glab` for repositories, merge requests, issues, pipelines, releases, and API calls. Use for any GitLab task. For template-compliant MR creation, load reference workflow under references/.
| name | gitlab-cli |
| description | Operate GitLab from terminal with `glab` for repositories, merge requests, issues, pipelines, releases, and API calls. Use for any GitLab task. For template-compliant MR creation, load reference workflow under references/. |
For GitLab tasks, use glab as the primary interface.
Rules:
glab first.glab api instead of raw curl for GitLab API calls.glab --version
host="$(git remote get-url origin 2>/dev/null | sed -E 's#^https?://([^/]+)/.*#\1#; s#^[^@]+@([^:]+):.*#\1#')"
glab auth status --hostname "$host"
-R group/projectFor MR creation with .gitlab/merge_request_templates/*, read:
references/create-mr.mdKeep this file focused on general glab operations and routing.
# Repository
glab repo view
glab repo clone owner/repo
glab repo create my-repo --description "My new repo"
glab repo fork owner/repo
glab repo list --group my-group
glab browse
# Merge requests
glab mr list
glab mr list --state all
glab mr view 42
glab mr view 42 --output json
glab mr checkout 42
glab mr approve 42
glab mr merge 42 --squash
glab mr merge 42 --squash --remove-source-branch
glab mr close 42
glab mr reopen 42
glab mr note 42 --message "Looks good to me"
# Issues
glab issue list
glab issue view 123
glab issue view 123 --output json
glab issue close 123
glab issue reopen 123
glab issue note 123 --message "I can reproduce this"
# Pipelines
glab ci status
glab ci list
glab ci run
glab ci run --variables KEY=value
glab ci view <pipeline-id>
glab ci retry <pipeline-id>
glab ci cancel <pipeline-id>
glab ci trace <job-id>
# Releases
glab release list
glab release view v1.2.3
glab release create v1.2.3 --name "Release v1.2.3" --notes "Changelog..."
glab release create v1.2.3 --ref main
glab release upload v1.2.3 ./dist/app.zip
glab release delete v1.2.3
glab mr checkout <number>
glab mr approve <number>
glab mr merge <number> --squash --remove-source-branch
glab issue view <number>
glab mr list --search "<keyword>"
glab ci view
glab ci view --live
glab ci trace <job-id>
glab ci retry <pipeline-id>
glab: command not found -> install glab.not logged in -> glab auth login --hostname <host>.-R group/project.api, repository scopes).Create or update a skill in this repository under skills/<skill-name>. Use when the user asks to add a new skill, improve an existing skill, scaffold skill structure, or align a skill with repository standards.
Work with Obsidian vaults — create and edit Obsidian Flavored Markdown (.md), Bases (.base), JSON Canvas (.canvas), and interact with vaults via the Obsidian CLI. Use when working with Obsidian notes, wikilinks, callouts, embeds, properties, frontmatter, tags, bases, canvas files, or vault operations.
Build and modify Grafana dashboards following the user's established style conventions. Use when creating new dashboards, adding panels, modifying existing dashboards, or reviewing dashboard JSON for consistency. Requires the Grafana MCP to be enabled.
Operate GitHub from terminal with `gh` for repositories, pull requests, issues, releases, actions, and API calls. Use for any GitHub task. For template-compliant PR or issue creation, load reference workflows under references/.
Manage day-to-day Git workflow with safe branch creation, conventional commits, rebasing, pushing, MR creation, active-branch sync, and integration-branch consolidation. Use when the user asks to create branches, commit, push, sync feature/fix branches, rebuild dev branches, or open merge requests.
Detect when the user is correcting the AI's approach or pointing out mistakes. Trigger phrases include 'you should', 'why not', 'that's wrong', 'use X instead', 'not like that', 'I said', 'no, do', 'wrong tool', 'wrong approach', 'I meant', 'actually', 'instead of', '不对', '应该用', '为什么不', '错了'. On activation, the AI reflects on what went wrong, identifies the correct approach, and logs the lesson to Obsidian for future reference.