agentleFS
MasihMoafiMasihMoafi/skills/gitlab/SKILL.md

gitlab

Skill7 starsChanged 4 months agoMITView on GitHub

GitLab workflow guidelines for agents. Use when working on repositories hosted on GitLab to coordinate branches, commits, MRs, and permissions.

  • Commits and pushes

11 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use confluence and github.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • SpillwaveSolutionsSkill

    confluence

    Manage Confluence documentation with downloads, uploads, conversions, and diagrams. Use when asked to "download Confluence pages", "upload to Confluence", "convert Wiki Markup", "sync markdown to Confluence", "create Confluence page", or "handle Confluence images".

    Also in 3 projects that use this

  • NVIDIASkill

    github

    Interact with GitHub using the gh CLI restricted to REST API only (no GraphQL). Use when the user wants to work with GitHub issues, pull requests, repos, releases, or Actions — especially in sandboxed environments where the GraphQL endpoint may be blocked. Trigger keywords - github, gh, pull request, PR, github issue, github actions, workflow, release, gh api.

    Also in 6 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 3

    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. Very specific:

    Create feature branches from dev with naming: issue_name or fix_description

    line 18
  2. Very specific:

    Create Pull/Merge Requests (PR/MR) ONLY to dev branch

    line 20
  3. Very specific:

    NEVER: create PRs to test or main

    line 25
  4. Distinctive:

    NEVER: delete or force-push to protected branches

    line 27
  5. Distinctive:

    When in doubt, ask before merging anything

    line 81

“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “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 Workflow - Agent Guidelines

🚨 CRITICAL RULES FOR AGENTS

Branch Protection & Workflow

issue_name_branch → dev → test → main (production)

Agent Permissions

✅ ALLOWED:

  • Create feature branches from dev with naming: issue_name or fix_description
  • Make commits to your feature branch
  • Create Pull/Merge Requests (PR/MR) ONLY to dev branch
  • Request reviews on PRs to dev

❌ STRICTLY FORBIDDEN (unless explicitly instructed):

  • NEVER directly commit to dev, test, or main
  • NEVER create PRs to test or main
  • NEVER merge any PR without human approval
  • NEVER delete or force-push to protected branches
  • NEVER modify CI/CD configurations without explicit permission

Workflow Steps

1. Starting Work on an Issue

git checkout dev
git pull origin dev
git checkout -b fix_signup_validation

# ... make changes ...

git add .
git commit -m "fix: improve signup validation"
git push -u origin fix_signup_validation

2. Creating a Merge Request

glab mr create --source-branch $(git branch --show-current) --target-branch dev \
  --title "TYPE: Description" --description "Resolves #123"

Where TYPE is: feat, fix, docs, refactor, test, chore. Never target test or main.

3. After Human Review & Approval

Humans handle the rest:

  • Review your PR to dev
  • Merge dev → test (for testing)
  • Merge test → main (for production)

You do NOT handle these merges.

Quick Reference

git branch --show-current       # check current branch
git branch -a                   # view all branches
glab mr list                    # check open MRs
glab mr view <MR_ID>            # inspect one MR

Wrong Target Branch

# Not yet created - just recreate with the right target:
glab mr create --target-branch dev

# Already created - close and recreate:
glab mr close <MR_ID>
glab mr create --source-branch your_branch --target-branch dev

Summary for Agents

  • Your PRs go to dev ONLY
  • Humans handle dev → test → main
  • When in doubt, ask before merging anything
  • Protected branches are protected for a reason

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.