/forgejo-cli:forgejo-clifrom forgejo-cli
Uses the Forgejo CLI fj against Codeberg or a self-hosted Forgejo: install, per-host auth, host and remote selection (-H, -R, -r and where each goes), the command map and its gaps, and issues (view, search, create, edit, label, close, dependencies). Use when fj is missing, says it is not logged in, hits the wrong instance, for a Forgejo or Codeberg issue, or for a task no narrower forgejo skill covers. Not for github.com or GitHub Enterprise (`gh`, `gh-issues`).
Ships in forgejo-cli. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Drive Codeberg and self-hosted Forgejo with fj. Reads run freely. Every write to the forge (create, edit, comment, merge, release, secret, delete) needs the user's approval of the exact command first.
git remote -v
github.com, or a host that gh auth status --hostname <host> knows: this is GitHub. Stop and name the GitHub skill ("gh-issues, gh-pr or gh-actions, if installed").codeberg.org, a host where curl -fsS https://<host>/api/forgejo/v1/version answers, or a repo with .forgejo/workflows or .gitea/workflows: Forgejo. Continue.fj version
fj auth list
fj whoami
If fj is missing, read the install options in commands. If the host is not listed by auth list, or whoami fails, read auth. No login means anonymous calls, so private repos and all writes fail.
fj never defaults to origin. It resolves the repo from --remote, else the only remote, else the branch's upstream remote, else a remote matching --host. With several remotes, name one explicitly. -H host sets the instance and -C dir the working directory. Confirm the target with git remote get-url <remote> before any write.
The remote flag has no single position, and fj rejects a top-level fj -R. Use the placement in this table (verified on fj v0.7.0 with fj <noun> [-R x] <sub> --help):
| Command | Remote (named git remote) | Repo outside a checkout |
|---|---|---|
fj issue | fj issue -R <remote> <sub> ... (leaves such as fj issue view -R <remote> 1 accept -R too) | -r host/owner/name on issue create, issue search and issue templates only |
fj release, actions, milestone, wiki, tag | fj <noun> -R <remote> <sub> ... | -r host/owner/name on every sub, e.g. fj release -r host/owner/name list |
fj pr | fj pr -R <remote> <sub> ... only; leaf pr create, status, merge or search with -R fails | -r host/owner/name on pr create and pr search only, not status, merge or view |
fj repo labels | none: positional fj repo labels [REPO] <sub> | fj repo labels host/owner/name view |
fj whoami | -r <remote> (lowercase) | -H host |
Check any other command with fj <noun> [-R x] <sub> --help.
Issues: read issues (search, create, edit, labels, close, dependencies). forgejo-release for releases. Commands for everything else are in commands. Confirm any flag with fj <cmd> --help: fj is 0.x and this map was checked against v0.7.0.
api command: output is text (--style minimal strips colors). Parse it carefully.pr create has no --draft (a WIP: title prefix marks a draft) and does not push. issue create has no label flag (fj issue edit N labels -a <label>). No Actions run logs.mcp__plugin_forgejo-mcp_forgejo__*). Otherwise use the web UI (fj <cmd> browse) or ask the user to paste the output.keys.json or any token. Do not paste tokens into commands you show. fj auth add-token reads stdin when no token is given, so ask the user to run it themselves.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin forgejo-cli