Back to registry
source-control bearer auth 1 pinned sources 10 files

Gitea

Generated Gitea CLI and agent Skill for repositories, issues, pull requests, releases, organizations, Actions, and administration.

$ gitea search "list issues" --json
CLI binaries 6 platform builds
Skill Included in CLI
Source refs 1 pinned inputs
Smoke intent list issues
01 Schema gitea commands schema --json
02 Catalog gitea commands --json
03 Search gitea search "list issues" --json
Recipe structure

Files

10 files
builds/gitea.json json
{
  "schema_version": 1,
  "recipe": "gitea",
  "cli_name": "gitea",
  "generated_at": "2026-11-24T17:05:37.802Z",
  "lathe_version": "lathe v0.7.0-rc.1 (none, unknown)",
  "gate": {
    "verdict": "GO",
    "generated_at": "2026-11-24T17:05:37.802Z",
    "lathe_version": "lathe v0.7.0-rc.1 (none, unknown)",
    "command_count": 537,
    "group_count": 9,
    "skill_included": true,
    "warnings": [
      "W3"
    ]
  },
  "source_refs": [
    {
      "name": "gitea_api",
      "display_name": "gitea_api",
      "backend": "swagger",
      "repo_url": "https://github.com/go-gitea/gitea",
      "pinned_tag": "v28.3.0",
      "files": [
        "templates/swagger/v1-swagger.generated.json"
      ]
    }
  ],
  "outputs": {
    "catalog": null,
    "skill": "skills/gitea",
    "cli_artifacts": [
      {
        "os": "darwin",
        "arch": "arm64",
        "format": "tar.gz",
        "binary": "gitea",
        "path": "downloads/gitea-darwin-arm64.tar.gz",
        "size": 4488872,
        "sha256": "sha256:d53a253047ece26be138014bd46810fc538b3499cda576d18382b99edb0c184c"
      },
      {
        "os": "darwin",
        "arch": "amd64",
        "format": "tar.gz",
        "binary": "gitea",
        "path": "downloads/gitea-darwin-amd64.tar.gz",
        "size": 4833193,
        "sha256": "sha256:16b2d813fbe6cc247692a5444315adc7640d0037aeab8f7a9bd0a185a9996183"
      },
      {
        "os": "linux",
        "arch": "amd64",
        "format": "tar.gz",
        "binary": "gitea",
        "path": "downloads/gitea-linux-amd64.tar.gz",
        "size": 4718893,
        "sha256": "sha256:a4f31424509885b0d7186616b18f0e012c1705dceaca6a17f4ca377cf0e14f90"
      },
      {
        "os": "linux",
        "arch": "arm64",
        "format": "tar.gz",
        "binary": "gitea",
        "path": "downloads/gitea-linux-arm64.tar.gz",
        "size": 4274854,
        "sha256": "sha256:3d55384be4c67049830a8db1d9891ac80837f575e8d9b28b486979f4b709f7a3"
      },
      {
        "os": "windows",
        "arch": "amd64",
        "format": "tar.gz",
        "binary": "gitea.exe",
        "path": "downloads/gitea-windows-amd64.tar.gz",
        "size": 4866099,
        "sha256": "sha256:09c3cc371e6cf68128a6c5f20f5c03b5d787ae9b7e37c3b7b4175ca9878e854c"
      },
      {
        "os": "windows",
        "arch": "arm64",
        "format": "tar.gz",
        "binary": "gitea.exe",
        "path": "downloads/gitea-windows-arm64.tar.gz",
        "size": 4352720,
        "sha256": "sha256:79c48eda8634af43ba6fcb27f1799fdb87436a5ce006852d93e5a3cb3a6b9118"
      }
    ]
  }
}

Gitea

This recipe generates the gitea CLI and agent Skill for Gitea: repositories, issues, pull requests, releases, organizations, packages, Actions, notifications, and site administration. It covers all 537 operations in the v28.3.0 API.

API and authentication

Create an application token under Settings → Applications in the web UI, with the scopes you need (read:repository, write:issue, …). Site administration commands require an account with administrator rights.

gitea auth login --hostname <host> --with-token
gitea auth status --hostname <host>

Gitea accepts both Authorization: token <token> and Authorization: Bearer <token>, so the default bearer auth works as-is.

Why base_path is required

Gitea does not commit a ready-to-use API spec. It commits a build-time template: templates/swagger/v1-swagger.generated.json carries a placeholder prefix,

{ "basePath": "/GITEA-API-APP-SUBURL/api/v1" }

which the server substitutes with the instance's sub-URL at request time. Generating from that file without an override produces paths like /GITEA-API-APP-SUBURL/api/v1/repos/{owner}/{repo}, which cannot be called.

The recipe sets base_path: /api/v1, which replaces the prefix and yields the correct /api/v1/... paths. Removing it breaks the generated CLI, so keep it when bumping the pin.

This needs lathe 0.7.0 or newer (lathe-cli/lathe#233).

Install the Skill

gitea skill install --scope user --agent codex --yes

Agent workflow

gitea commands --json
gitea search "list issues" --json
gitea commands show gitea_api issue issue-list-issues --json

Read the contract with commands show before executing. Mutating commands report mutation: write and support --dry-run, which prints the resolved method, URL and body without sending the request.

Upgrading

Bump pinned_tag in specs/sources.yaml when moving to a newer Gitea release, and update the as of date. Check that the spec still carries the placeholder prefix; if a future release ships a real spec, base_path can be dropped.