Agent SkillsWide-Moat/open-computer-use › gitlab-explorer

gitlab-explorer

GitHub

通过glab CLI和git命令探索GitLab仓库,支持代码搜索、MR查看、CI/CD分析及历史追溯。操作前需执行认证检查脚本。

skills/public/gitlab-explorer/SKILL.md Wide-Moat/open-computer-use

Trigger Scenarios

探索GitLab仓库结构 搜索项目或代码 查看合并请求 分析Git提交历史

Install

npx skills add Wide-Moat/open-computer-use --skill gitlab-explorer -g -y
More Options

Non-standard path

npx skills add https://github.com/Wide-Moat/open-computer-use/tree/main/skills/public/gitlab-explorer -g -y

Use without installing

npx skills use Wide-Moat/open-computer-use@gitlab-explorer

指定 Agent (Claude Code)

npx skills add Wide-Moat/open-computer-use --skill gitlab-explorer -a claude-code -g -y

安装 repo 全部 skill

npx skills add Wide-Moat/open-computer-use --all -g -y

预览 repo 内 skill

npx skills add Wide-Moat/open-computer-use --list

SKILL.md

Frontmatter
{
    "name": "gitlab-explorer",
    "description": "Explore GitLab repositories using glab CLI and git commands. Use when user asks to: clone repositories, search projects or code in GitLab, view merge requests, explore project structure, check CI\/CD pipelines, work with issues, or analyze git history. IMPORTANT: Always run authentication check script first before any GitLab operation."
}

GitLab Explorer

This skill enables exploring GitLab repositories, searching code, viewing merge requests, and working with git history.

Before Any GitLab Operation

ALWAYS run the authentication check first:

bash /mnt/skills/public/gitlab-explorer/scripts/check_gitlab_auth.sh

This script will:

  • Verify if GitLab token is configured
  • Validate the token by calling GitLab API
  • Show logged-in user info if valid
  • Provide setup instructions if not configured

DO NOT try to read or echo $GITLAB_TOKEN directly - the script handles validation securely without exposing the token.

If authentication is not configured, inform the user:

To use GitLab features, please go to and add your GitLab Personal Access Token. Then start a NEW chat to apply the token.

Quick Start

Clone a Repository

git clone https://gitlab.com/group/project.git
cd project

Search for Projects

# Search projects by name
glab api "projects?search=keyword" | jq '.[].path_with_namespace'

# List projects in a group
glab api "groups/GROUP_NAME/projects" | jq '.[].name'

Check Current User

glab api user | jq '{username, email, name}'

Exploring Code

Repository Structure

# Show directory tree
tree -L 2

# Find files by pattern
find . -name "*.py" -type f

# Search for text in files
git grep "pattern"

Git History

# View commit history
git log --oneline -20

# Visual branch history
git log --oneline --graph --all -20

# Who changed what
git blame filename

# Show specific commit
git show COMMIT_HASH

# Changes between branches
git diff main..feature-branch

Top Contributors

git shortlog -sn --all | head -10

Working with Merge Requests

# List open MRs
glab mr list

# View specific MR
glab mr view 123

# Show MR diff
glab mr diff 123

# Checkout MR branch locally
glab mr checkout 123

CI/CD Pipelines

# Current pipeline status
glab ci status

# List recent pipelines
glab ci list

# View pipeline details
glab ci view PIPELINE_ID

# Watch job logs in real-time
glab ci trace

Issues

# List issues
glab issue list

# View issue details
glab issue view 123

# Create new issue
glab issue create --title "Bug report" --description "Description here"

Reference Materials

For detailed command reference, see:

  • references/glab-commands.md - Complete glab CLI reference
  • references/git-commands.md - Git commands for code exploration

Common Workflows

Explore Unknown Repository

  1. Clone the repo
  2. Check README and documentation
  3. Explore directory structure with tree
  4. Find main entry points
  5. Use git log to understand recent changes
  6. Use git blame to find who wrote specific code

Review Merge Request

  1. glab mr view ID - read description
  2. glab mr diff ID - review changes
  3. glab mr checkout ID - test locally if needed
  4. Check CI status with glab ci status

Find Code by Pattern

# Search in all files
git grep "function_name"

# Search with context
git grep -n -C 3 "pattern"

# Search in specific file types
git grep "pattern" -- "*.py"

Version History

  • 4d891a7 Current 2026-07-25 06:58

Same Skill Collection

skills/examples/algorithmic-art/SKILL.md
skills/examples/artifacts-builder/SKILL.md
skills/examples/canvas-design/SKILL.md
skills/examples/copy-editing/SKILL.md
skills/examples/internal-comms/SKILL.md
skills/examples/mcp-builder/SKILL.md
skills/examples/single-cell-rna-qc/SKILL.md
skills/examples/skill-creator/SKILL.md
skills/examples/slack-gif-creator/SKILL.md
skills/examples/theme-factory/SKILL.md
skills/examples/web-artifacts-builder/SKILL.md
skills/examples/writing-skills/SKILL.md
skills/public/describe-image/SKILL.md
skills/public/doc-coauthoring/SKILL.md
skills/public/docx/SKILL.md
skills/public/frontend-design/SKILL.md
skills/public/pdf/SKILL.md
skills/public/playwright-cli/SKILL.md
skills/public/pptx/SKILL.md
skills/public/skill-creator/SKILL.md
skills/public/sub-agent/SKILL.md
skills/public/test-driven-development/SKILL.md
skills/public/webapp-testing/SKILL.md
skills/public/xlsx/SKILL.md
skills/examples/product-marketing-context/SKILL.md
skills/examples/social-content/SKILL.md
skills/public/file-reading/SKILL.md
skills/public/pdf-reading/SKILL.md

Metadata

Files
0
Version
58593bd
Hash
866a44e2
Indexed
2026-07-25 06:58

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 13:06
浙ICP备14020137号-1 $Гость$