# Send glab to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "glab",
    "name": "glab",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/bezkom/glab",
    "canonicalUrl": "https://clawhub.ai/bezkom/glab",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/glab",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=glab",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "_meta.json",
      "references/api-advanced.md",
      "references/commands-detailed.md",
      "references/troubleshooting.md",
      "scripts/glab-mr-await.sh"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "glab",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-12T02:50:53.733Z",
      "expiresAt": "2026-05-19T02:50:53.733Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=glab",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=glab",
        "contentDisposition": "attachment; filename=\"glab-1.0.4.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "glab"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/glab"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/glab",
    "downloadUrl": "https://openagent3.xyz/downloads/glab",
    "agentUrl": "https://openagent3.xyz/skills/glab/agent",
    "manifestUrl": "https://openagent3.xyz/skills/glab/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/glab/agent.md"
  }
}
```
## Documentation

### GitLab CLI (glab)

Official CLI for GitLab. Manage issues, merge requests, pipelines, and more from the terminal.

Source: Inspired by NikiforovAll/glab-skill on Smithery.

### ⚠️ Security Notice

The glab api command provides unrestricted GitLab API access with your token.

A compromised or overly-permissive token can delete projects, modify settings, expose secrets
Recommendation: Use tokens with minimal scopes:

read_api - Read-only operations
api - Full access (only when write operations needed)


For automation, consider project-level tokens with limited scope
Never use tokens with sudo scope unless required

### Prerequisites

Required binaries:

glab - GitLab CLI
jq - JSON processor (for scripts and API parsing)

Required credentials:

GITLAB_TOKEN - GitLab personal access token

Optional configuration:

GITLAB_HOST - Self-hosted GitLab instance (default: gitlab.com)

# Verify installation
glab --version
jq --version

# Authenticate (interactive)
glab auth login

# Or via environment
export GITLAB_TOKEN="glpat-xxxxxxxxxxxxxxxxxxxx"
export GITLAB_HOST="gitlab.example.org"  # for self-hosted

# Verify auth
glab auth status

### Quick Reference

Merge Requests:

glab mr create --title "Fix" --description "Closes #123"
glab mr list --reviewer=@me          # MRs awaiting your review
glab mr checkout 123                  # Test MR locally
glab mr approve 123 && glab mr merge 123

Issues:

glab issue create --title "Bug" --label=bug
glab issue list --assignee=@me
glab issue close 456

CI/CD:

glab ci status                        # Current pipeline status
glab pipeline ci view                 # Watch pipeline live
glab ci lint                          # Validate .gitlab-ci.yml
glab ci retry                         # Retry failed pipeline

Working Outside Repo:

glab mr list -R owner/repo            # Specify repository

Advanced API Access:

See references/api-advanced.md for glab api usage. This command enables arbitrary GitLab API calls and should be used with appropriately-scoped tokens.

### Create and Merge MR

# 1. Push branch
git push -u origin feature-branch

# 2. Create MR
glab mr create --title "Add feature" --description "Implements X" --reviewer=alice,bob --label="enhancement"

# 3. After approval, merge
glab mr approve 123
glab mr merge 123 --remove-source-branch

### Review MR

# List MRs for review
glab mr list --reviewer=@me

# Checkout and test
glab mr checkout 123

# Approve or comment
glab mr approve 123
glab mr note 123 -m "Looks good, just one suggestion..."

### Monitor Pipeline

# Watch current branch pipeline
glab pipeline ci view

# Check specific pipeline
glab ci view 456

# View failed job logs
glab ci trace

# Retry
glab ci retry

### Self-Hosted GitLab

# Set default host
export GITLAB_HOST=gitlab.example.org

# Or per-command
glab mr list -R gitlab.example.org/owner/repo

### Scripts

ScriptDescriptionglab-mr-await.shWait for MR approval and successful pipelineglab-pipeline-watch.shMonitor pipeline with exit codes for CI

# Wait for MR to be approved and merged
./scripts/glab-mr-await.sh 123 --timeout 600

# Watch pipeline, exit 0 on success, 1 on failure
./scripts/glab-pipeline-watch.sh --timeout 300

Script environment variables:

TIMEOUT - Max wait time in seconds (default varies by script)
INTERVAL - Polling interval in seconds (default 5-10s)

### Troubleshooting

ErrorFixcommand not found: glabInstall glabcommand not found: jqInstall jq401 UnauthorizedSet GITLAB_TOKEN or run glab auth login404 Project Not FoundVerify repo name and permissionsnot a git repositoryUse -R owner/repo flagsource branch already has MRglab mr list to find existing

For detailed troubleshooting, see references/troubleshooting.md.

### Progressive Disclosure

references/api-advanced.md - glab api usage with security considerations
references/commands-detailed.md - Full command reference with all flags
references/troubleshooting.md - Detailed error scenarios and solutions

Load these when you need specific flag details or are debugging issues.

### Best Practices

Always verify auth: glab auth status
Use minimal-scope tokens for read operations
Link MRs to issues: "Closes #123" in description
Lint CI config before pushing: glab ci lint
Use --output=json for scripting
Most commands have --web to open in browser
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: bezkom
- Version: 1.0.4
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-12T02:50:53.733Z
- Expires at: 2026-05-19T02:50:53.733Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/glab)
- [Send to Agent page](https://openagent3.xyz/skills/glab/agent)
- [JSON manifest](https://openagent3.xyz/skills/glab/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/glab/agent.md)
- [Download page](https://openagent3.xyz/downloads/glab)