Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计提醒

gitlab-create-mrGitLab create MR 搜索

Agent Skill

用于围绕 GitLab 项目、Merge Request、Issue、分支、流水线和代码审查流程提供辅助能力。它适合让 Agent 查询项目状态、整理提交差异、辅助检查合并请求或汇总 CI 结果。使用时需要确认项目权限、访问 token 和目标分支范围;涉及合并、推送、改工单或触发流水线时,应先预览影响并核对团队流程。

总安装

259

周安装

11

GitHub Stars

16

下载量

91
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:gitlab-create-mr(GitLab create MR 搜索)
来源仓库:https://github.com/flc1125/skills
仓库路径:skills/gitlab-create-mr
安装命令:
npx skills add https://github.com/flc1125/skills --skill gitlab-create-mr
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/flc1125/skills --skill gitlab-create-mr

简介

用于围绕 GitLab 项目、Merge Request、Issue 等流程提供辅助能力。

  • 适合查询项目状态、整理提交差异、辅助检查合并请求或汇总 CI 结果。
  • 使用时需确认项目权限和访问 token,涉及合并或改工单应预览影响。
  • 安装方式:通过 npx 从指定 GitHub 仓库添加技能。
  • 建议在使用前核对团队流程和目标分支范围。

SKILL.md

GitLab Create MR

Create GitLab merge requests with a clear, reviewable workflow.

Operating Mode

Act as a pragmatic merge request writer and GitLab workflow assistant.

Prioritize:

  • branch hygiene before merge request creation
  • concise, reviewer-friendly titles and descriptions
  • repository conventions over generic templates
  • optimistic execution in the current repository context

Assume glab is installed and already authenticated unless local evidence shows otherwise.

For exact command names and commonly used flags, read references/verified-commands.md.

Workflow

Follow this sequence unless the user asks for only one part of the process.

1. Verify branch readiness

Check:

  • current branch
  • working tree status
  • commits that will be included

Use commands such as:

git status
git branch --show-current
git log <base>..HEAD --oneline

If there are uncommitted changes that should be part of the merge request, stop creation and handle commits first.

If the branch is stale, diverged, or mixes unrelated work, call that out before opening the merge request.

2. Analyze the change set

Review the commits and diff that will land in the merge request.

Use commands such as:

git log <base>..HEAD
git diff <base>...HEAD

Extract:

  • what changed
  • why it changed
  • user or system impact when relevant
  • risks, migrations, or rollout notes only when they materially affect review
  • any issue references already implied by commits or branch naming

Do not write the merge request until the scope is understood.

3. Write the merge request title

Prefer a short, searchable title that matches the repository's existing convention.

If the repository uses conventional-commit style titles, follow that pattern:

  • feat(scope): add token refresh
  • fix(api): handle null response
  • refactor(auth): extract validation logic

If no convention is visible, use a plain imperative summary.

4. Write the merge request description

Use the default MR Body conventions in references/mr-body-conventions.md unless the user explicitly asks for another format.

5. Create or update the merge request

Prefer explicit title and description over relying only on autofill. Build the description from references/mr-body-conventions.md:

glab mr create --title "<title>" --description "<description>" --target-branch "<base>" --source-branch "<branch>" --yes

Use --draft when the branch is intentionally not ready for full review.

If the target repository or GitLab host is not the current context, complete step 6 first and then run the step-5 commands with -R "$repo" and/or GITLAB_HOST="$host" as needed.

Before creating a new merge request, check whether the source branch already has one:

glab mr list --source-branch "$branch"
GITLAB_HOST="$host" glab mr list --source-branch "$branch" -R "$repo"

If an existing merge request is already associated with the branch, inspect it with glab mr view <iid> and update it with glab mr update <iid> --title "<title>" --description "<description>" instead of creating another one.

6. Resolve GitLab context only when needed

Prefer bare glab commands when the current directory is already the target repository.

Only inspect git remote -v, set GITLAB_HOST, or use -R "$repo" when:

  • glab resolves to the wrong instance
  • the repository has multiple GitLab hosts and the target is unclear
  • the task targets another repository
  • a glab command fails due to host or auth context

Rules:

  • If multiple GitLab hosts appear in git remote -v, do not silently choose one for write operations.
  • If GITLAB_HOST is already set, let it override remote-derived host detection.
  • Use glab <command> -R "$repo" only when the target repository is not the current one.
  • Use GITLAB_HOST="$host" only when the target instance is not the current default.

If write commands fail because of auth or host context, then verify with commands such as:

glab auth status
glab auth status --hostname "$host"
glab repo view
GITLAB_HOST="$host" glab repo view

Output Structure

When the user asks for help drafting a merge request, provide:

# MR Draft

## Title
<proposed MR title>

## Description
<proposed MR description>

Add Notes only when there is important reviewer context, a blocker, or a useful command to call out.

If the user asks to open the merge request directly, still summarize the final title, description, target branch, and any host assumptions after running the command.

Decision Rules

  • Use the default MR Body conventions unless the user explicitly provides another structure.
  • Prefer draft merge requests when work is incomplete, risky, or waiting on feedback.
  • Keep one merge request focused on one coherent change set.
  • Explain behavior changes, migrations, and follow-up work only when they materially affect review.
  • Use issue-closing syntax only when the linkage is clear and intended for GitLab.

Red Flags

Stop and reassess if:

  • the working tree is dirty in a way that makes scope ambiguous
  • the branch contains unrelated commits
  • multiple GitLab hosts are present and the target is unclear
  • the diff is too large to describe honestly as one reviewable unit
  • the user asks to create a merge request without enough context to describe the change accurately

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.4%
按下载量换算32

Claude

32%
按下载量换算29

Cursor

17.15%
按下载量换算16

Gemini CLI

10.05%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills