agentleFS
ulises-jeremiasulises-jeremias/agent-toolkit/skills/forge/gitlab-cli-workflow/SKILL.md

gitlab-cli-workflow

Skill18 starsChanged 3 months agoMITView on GitHub

HOW — GitLab CLI (glab): push branch, create draft MR with title/body; fallback untracked

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Use this skill when the remote is GitLab and you need to push and open a draft merge request.

    line 10
  2. Very specific:

    Run glab mr create --help on the machine—subcommands and flags evolve.

    line 19
  3. Distinctive:

    If the CLI prefers a file flag, use that instead of shell substitution.

    line 31
  4. Distinctive:

    If draft creation fails, retry with non-draft only if the user accepts, and note the limitation in chat.

    line 33
  5. Very specific:

    Write untracked MERGE_REQUEST_DESCRIPTION_<WORK_ITEM_ID>.md (or PR_DESCRIPTION_<ID>.md) with title + body.

    line 37
  6. Distinctive:

    No secrets in MR descriptions.

    line 43
  7. Distinctive:

    No force-push to shared defaults without explicit user request.

    line 44

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

GitLab CLI — draft MR (HOW)

Use this skill when the remote is GitLab and you need to push and open a draft merge request. Workflow skills delegate here.

Prerequisites

  • glab authenticated for the host (glab auth status).
  • Branch pushed to the documented remote.

Discover draft flags

Run glab mr create --help on the machine—subcommands and flags evolve. Prefer draft / WIP equivalents when available.

Recommended flow

  1. Push the branch and set upstream per team practice.
  2. Create an MR body file: use the project’s merge request template when present. If the project has no template, you may align the Markdown with pr-fallback (same default sections as the org PR body) and output-handshake for where the description file lives and human review—then use that file for --description or the equivalent.
  3. Draft MR (illustrative; confirm flags with glab --help):
glab mr create --draft --title "YOUR_TITLE" --description "$(cat /path/to/body.md)"

If the CLI prefers a file flag, use that instead of shell substitution.

  1. If draft creation fails, retry with non-draft only if the user accepts, and note the limitation in chat.

Fallback (CLI failure)

  1. Write untracked MERGE_REQUEST_DESCRIPTION_<WORK_ITEM_ID>.md (or PR_DESCRIPTION_<ID>.md) with title + body.
  2. Do not git add it.
  3. Instruct the user to open the GitLab New merge request UI from the branch and paste content, choosing draft if the UI offers it.

Safety

  • No secrets in MR descriptions.
  • No force-push to shared defaults without explicit user request.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.