gitlab-cli-workflow
Skill18 starsChanged 3 months agoMITView on GitHub
HOW — GitLab CLI (glab): push branch, create draft MR with title/body; fallback untracked
In this repository105 other files it gives its agents.
- AGENTS.mdAGENTS.md
- reviewSkill
- mcp-auditSkill
- owasp-agentic-reviewSkill
- supply-chain-auditSkill
- threat-modelingSkill
- architecture-diagramSkill
- c4-modelSkill
- aws-well-architected-reviewSkill
- cloud-design-patternsSkill
- assistantSkill
- dev-companionSkill
- onboardingSkill
- output-handshakeSkill
- pr-fallbackSkill
- projectSkill
- workspace-knowledge-syncSkill
- workspaceSkill
- dbt-validationSkill
- snowflake-validationSkill
- adrSkill
- agreementSkill
- bugSkill
- decision-logSkill
- development-workflowSkill
- epicSkill
- incidentSkill
- management-unit-assessmentSkill
- meeting-minutesSkill
- planningSkill
- prdSkill
- project-assessment-evidenceSkill
- project-assessmentSkill
- spikeSkill
- taskSkill
- technical-unit-assessmentSkill
- trdSkill
- user-storySkill
- workflow-client-bootstrapSkill
- workflow-generic-projectSkill
- work-itemSkill
- bragSkill
- brag-slimSkill
- design-assessmentSkill
- design-improvementSkill
- figma-code-connect-componentsSkill
- figma-create-design-system-rulesSkill
- figma-create-new-fileSkill
- figma-implement-designSkill
- figmaSkill
- frontend-design-reviewSkill
- frontend-designSkill
- web-design-guidelinesSkill
- fix-merge-conflictsSkill
- gh-address-commentsSkill
- gh-contribution-plannerSkill
- gh-fix-ciSkill
- github-cli-workflowSkill
- worktreeSkill
- clickup-cliSkill
- The first 60 shown.
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
- Distinctive: line 10
Use this skill when the remote is GitLab and you need to push and open a draft merge request.
- Very specific: line 19
Run glab mr create --help on the machine—subcommands and flags evolve.
- Distinctive: line 31
If the CLI prefers a file flag, use that instead of shell substitution.
- Distinctive: line 33
If draft creation fails, retry with non-draft only if the user accepts, and note the limitation in chat.
- Very specific: line 37
Write untracked MERGE_REQUEST_DESCRIPTION_<WORK_ITEM_ID>.md (or PR_DESCRIPTION_<ID>.md) with title + body.
- Distinctive: line 43
No secrets in MR descriptions.
- Distinctive: line 44
No force-push to shared defaults without explicit user request.
≈ “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.
Files
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
glabauthenticated 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
- Push the branch and set upstream per team practice.
- 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) andoutput-handshakefor where the description file lives and human review—then use that file for--descriptionor the equivalent. - 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.
- If draft creation fails, retry with non-draft only if the user accepts, and note the limitation in chat.
Fallback (CLI failure)
- Write untracked
MERGE_REQUEST_DESCRIPTION_<WORK_ITEM_ID>.md(orPR_DESCRIPTION_<ID>.md) with title + body. - Do not
git addit. - 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.
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
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.

