gcli
Skill by ferdinandyb
Use gcli to view, list, create and merge pull or merge requests and issues on GitLab, Gitea and Codeberg from the command line. It is for non-GitHub git forges, and GitHub work should use gh instead.
Install gcli
Built from the published package, never by AI.
git clone --depth 1 https://github.com/ferdinandyb/dotfiles /tmp/dotfiles && mkdir -p ~/.claude/skills && cp -r /tmp/dotfiles/.config/opencode/skills/gcli ~/.claude/skills/gcliRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/ferdinandyb/dotfiles /tmp/dotfiles && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/dotfiles/.config/opencode/skills/gcli ~/.gemini/antigravity-cli/skills/gcliAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill teaches an AI assistant to use gcli, a command line tool for non-GitHub git forges such as GitLab, Gitea and Codeberg. It covers listing and viewing pull or merge requests and issues, reading diffs, commits, reviews and CI checks, and creating or commenting on them. It also explains how to make write operations non-interactive, for example by setting GIT_EDITOR to a body editor script and using -y to skip confirmation.
The skill maps common gh commands to their gcli equivalents and sets out a few rules. Markdown rendering should stay disabled so identifiers keep their underscores. gcli has no --json flag, so structured data comes from gcli api, which performs GET requests. The skill is aimed at developers and agents working with non-GitHub forges who want to avoid gh's GitHub-only behaviour.
Written from the project's SKILL.md and checked against it.
What it can do
- List and view PRs/MRsLists pull or merge requests and shows details, diffs, commits, reviews and CI checks.
- List and view issuesLists issues and shows their details and comments.
- Create PRs/MRsCreates pull or merge requests with a title, body, base branch, draft flag and reviewers.
- Comment and reviewAdds comments and threaded replies, and approves pull or merge requests.
- Labels, merge and closeAdds labels, merges, closes and reopens pull or merge requests and issues.
- Forge API GET callsRuns GET requests against the forge API with gcli api and optional pagination.
What you need
- gcli installed as a binary
- Accounts configured for the target forge in the gcli config file
- A git remote or explicit forge path for the repository
Try asking
- List open merge requests on my GitLab project and show CI status
- Show the diff and review comments for PR 42 on Codeberg
- Create a draft pull request on Gitea targeting the main branch
Good to know
- gcli has no --json output; structured data needs gcli api, which only performs GET requests.
- GitHub Actions run logs and workflow commands are not covered; use gh for those.
- On GitHub, -A, -L, -M and -S filter client-side after fetching -n items, so a high -n is needed.
- PR and issue URLs are not accepted as arguments; the number must be extracted.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .config/opencode/skills/gcli/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to gcli
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
gcli: common questions
Should I use gcli or gh for GitHub repositories?
The skill says agents should use gh directly for GitHub, and keep gcli for non-GitHub forges or when gcli is explicitly requested.
Why does gcli output lose underscores in names?
By default gcli renders bodies through liblowdown, which can drop underscores. The skill says markdown rendering is disabled through GCLI_RENDER_MARKDOWN=0 in an agent plugin.
Can gcli be used to post changes to the forge API directly?
No. The skill states gcli api only performs GET requests, so writes must use gcli subcommands or gh api.
How do I install gcli?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is gcli free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is gcli safe to use?
It scores 52 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to gcli?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
