{
  "schemaVersion": "1.0",
  "item": {
    "slug": "gitlab-api",
    "name": "GitLab API",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/d1gl3/gitlab-api",
    "canonicalUrl": "https://clawhub.ai/d1gl3/gitlab-api",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/gitlab-api",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=gitlab-api",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "scripts/gitlab_api.sh"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "slug": "gitlab-api",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-03T17:52:33.571Z",
      "expiresAt": "2026-05-10T17:52:33.571Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=gitlab-api",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=gitlab-api",
        "contentDisposition": "attachment; filename=\"gitlab-api-0.1.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "gitlab-api"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/gitlab-api"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/gitlab-api",
    "agentPageUrl": "https://openagent3.xyz/skills/gitlab-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/gitlab-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/gitlab-api/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "GitLab API",
        "body": "Interact with GitLab repositories via the REST API. Supports both GitLab.com and self-hosted instances."
      },
      {
        "title": "Setup",
        "body": "Store your GitLab personal access token:\n\nmkdir -p ~/.config/gitlab\necho \"glpat-YOUR_TOKEN_HERE\" > ~/.config/gitlab/api_token\n\nToken scopes needed: api or read_api + write_repository\n\nGet a token:\n\nGitLab.com: https://gitlab.com/-/user_settings/personal_access_tokens\nSelf-hosted: https://YOUR_GITLAB/~/-/user_settings/personal_access_tokens"
      },
      {
        "title": "Configuration",
        "body": "Default instance: https://gitlab.com\n\nFor self-hosted GitLab, create a config file:\n\necho \"https://gitlab.example.com\" > ~/.config/gitlab/instance_url"
      },
      {
        "title": "List Projects",
        "body": "GITLAB_TOKEN=$(cat ~/.config/gitlab/api_token)\nGITLAB_URL=$(cat ~/.config/gitlab/instance_url 2>/dev/null || echo \"https://gitlab.com\")\n\ncurl -H \"PRIVATE-TOKEN: $GITLAB_TOKEN\" \\\n  \"$GITLAB_URL/api/v4/projects?owned=true&per_page=20\""
      },
      {
        "title": "Get Project ID",
        "body": "Projects are identified by ID or URL-encoded path (namespace%2Fproject).\n\n# By path\ncurl -H \"PRIVATE-TOKEN: $GITLAB_TOKEN\" \\\n  \"$GITLAB_URL/api/v4/projects/username%2Frepo\"\n\n# Extract ID from response: jq '.id'"
      },
      {
        "title": "Read File",
        "body": "PROJECT_ID=\"12345\"\nFILE_PATH=\"src/main.py\"\nBRANCH=\"main\"\n\ncurl -H \"PRIVATE-TOKEN: $GITLAB_TOKEN\" \\\n  \"$GITLAB_URL/api/v4/projects/$PROJECT_ID/repository/files/${FILE_PATH}?ref=$BRANCH\" \\\n  | jq -r '.content' | base64 -d"
      },
      {
        "title": "Create/Update File",
        "body": "PROJECT_ID=\"12345\"\nFILE_PATH=\"src/new_file.py\"\nBRANCH=\"main\"\nCONTENT=$(echo \"print('hello')\" | base64)\n\ncurl -X POST -H \"PRIVATE-TOKEN: $GITLAB_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  \"$GITLAB_URL/api/v4/projects/$PROJECT_ID/repository/files/${FILE_PATH}\" \\\n  -d @- <<EOF\n{\n  \"branch\": \"$BRANCH\",\n  \"content\": \"$CONTENT\",\n  \"commit_message\": \"Add new file\",\n  \"encoding\": \"base64\"\n}\nEOF\n\nFor updates, use -X PUT instead of -X POST."
      },
      {
        "title": "Delete File",
        "body": "curl -X DELETE -H \"PRIVATE-TOKEN: $GITLAB_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  \"$GITLAB_URL/api/v4/projects/$PROJECT_ID/repository/files/${FILE_PATH}\" \\\n  -d '{\"branch\": \"main\", \"commit_message\": \"Delete file\"}'"
      },
      {
        "title": "List Files in Directory",
        "body": "curl -H \"PRIVATE-TOKEN: $GITLAB_TOKEN\" \\\n  \"$GITLAB_URL/api/v4/projects/$PROJECT_ID/repository/tree?path=src&ref=main\""
      },
      {
        "title": "Get Repository Content (Archive)",
        "body": "curl -H \"PRIVATE-TOKEN: $GITLAB_TOKEN\" \\\n  \"$GITLAB_URL/api/v4/projects/$PROJECT_ID/repository/archive.tar.gz\" \\\n  -o repo.tar.gz"
      },
      {
        "title": "List Branches",
        "body": "curl -H \"PRIVATE-TOKEN: $GITLAB_TOKEN\" \\\n  \"$GITLAB_URL/api/v4/projects/$PROJECT_ID/repository/branches\""
      },
      {
        "title": "Create Branch",
        "body": "curl -X POST -H \"PRIVATE-TOKEN: $GITLAB_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  \"$GITLAB_URL/api/v4/projects/$PROJECT_ID/repository/branches\" \\\n  -d '{\"branch\": \"feature-xyz\", \"ref\": \"main\"}'"
      },
      {
        "title": "Helper Script",
        "body": "Use scripts/gitlab_api.sh for common operations:\n\n# List projects\n./scripts/gitlab_api.sh list-projects\n\n# Read file\n./scripts/gitlab_api.sh read-file <project-id> <file-path> [branch]\n\n# Write file\n./scripts/gitlab_api.sh write-file <project-id> <file-path> <content> <commit-msg> [branch]\n\n# Delete file\n./scripts/gitlab_api.sh delete-file <project-id> <file-path> <commit-msg> [branch]\n\n# List directory\n./scripts/gitlab_api.sh list-dir <project-id> <dir-path> [branch]"
      },
      {
        "title": "Rate Limits",
        "body": "GitLab.com: 300 requests/minute (authenticated)\nSelf-hosted: Configurable by admin"
      },
      {
        "title": "API Reference",
        "body": "Full API docs: https://docs.gitlab.com/ee/api/api_resources.html\n\nKey endpoints:\n\nProjects: /api/v4/projects\nRepository files: /api/v4/projects/:id/repository/files\nRepository tree: /api/v4/projects/:id/repository/tree\nBranches: /api/v4/projects/:id/repository/branches"
      }
    ],
    "body": "GitLab API\n\nInteract with GitLab repositories via the REST API. Supports both GitLab.com and self-hosted instances.\n\nSetup\n\nStore your GitLab personal access token:\n\nmkdir -p ~/.config/gitlab\necho \"glpat-YOUR_TOKEN_HERE\" > ~/.config/gitlab/api_token\n\n\nToken scopes needed: api or read_api + write_repository\n\nGet a token:\n\nGitLab.com: https://gitlab.com/-/user_settings/personal_access_tokens\nSelf-hosted: https://YOUR_GITLAB/~/-/user_settings/personal_access_tokens\nConfiguration\n\nDefault instance: https://gitlab.com\n\nFor self-hosted GitLab, create a config file:\n\necho \"https://gitlab.example.com\" > ~/.config/gitlab/instance_url\n\nCommon Operations\nList Projects\nGITLAB_TOKEN=$(cat ~/.config/gitlab/api_token)\nGITLAB_URL=$(cat ~/.config/gitlab/instance_url 2>/dev/null || echo \"https://gitlab.com\")\n\ncurl -H \"PRIVATE-TOKEN: $GITLAB_TOKEN\" \\\n  \"$GITLAB_URL/api/v4/projects?owned=true&per_page=20\"\n\nGet Project ID\n\nProjects are identified by ID or URL-encoded path (namespace%2Fproject).\n\n# By path\ncurl -H \"PRIVATE-TOKEN: $GITLAB_TOKEN\" \\\n  \"$GITLAB_URL/api/v4/projects/username%2Frepo\"\n\n# Extract ID from response: jq '.id'\n\nRead File\nPROJECT_ID=\"12345\"\nFILE_PATH=\"src/main.py\"\nBRANCH=\"main\"\n\ncurl -H \"PRIVATE-TOKEN: $GITLAB_TOKEN\" \\\n  \"$GITLAB_URL/api/v4/projects/$PROJECT_ID/repository/files/${FILE_PATH}?ref=$BRANCH\" \\\n  | jq -r '.content' | base64 -d\n\nCreate/Update File\nPROJECT_ID=\"12345\"\nFILE_PATH=\"src/new_file.py\"\nBRANCH=\"main\"\nCONTENT=$(echo \"print('hello')\" | base64)\n\ncurl -X POST -H \"PRIVATE-TOKEN: $GITLAB_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  \"$GITLAB_URL/api/v4/projects/$PROJECT_ID/repository/files/${FILE_PATH}\" \\\n  -d @- <<EOF\n{\n  \"branch\": \"$BRANCH\",\n  \"content\": \"$CONTENT\",\n  \"commit_message\": \"Add new file\",\n  \"encoding\": \"base64\"\n}\nEOF\n\n\nFor updates, use -X PUT instead of -X POST.\n\nDelete File\ncurl -X DELETE -H \"PRIVATE-TOKEN: $GITLAB_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  \"$GITLAB_URL/api/v4/projects/$PROJECT_ID/repository/files/${FILE_PATH}\" \\\n  -d '{\"branch\": \"main\", \"commit_message\": \"Delete file\"}'\n\nList Files in Directory\ncurl -H \"PRIVATE-TOKEN: $GITLAB_TOKEN\" \\\n  \"$GITLAB_URL/api/v4/projects/$PROJECT_ID/repository/tree?path=src&ref=main\"\n\nGet Repository Content (Archive)\ncurl -H \"PRIVATE-TOKEN: $GITLAB_TOKEN\" \\\n  \"$GITLAB_URL/api/v4/projects/$PROJECT_ID/repository/archive.tar.gz\" \\\n  -o repo.tar.gz\n\nList Branches\ncurl -H \"PRIVATE-TOKEN: $GITLAB_TOKEN\" \\\n  \"$GITLAB_URL/api/v4/projects/$PROJECT_ID/repository/branches\"\n\nCreate Branch\ncurl -X POST -H \"PRIVATE-TOKEN: $GITLAB_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  \"$GITLAB_URL/api/v4/projects/$PROJECT_ID/repository/branches\" \\\n  -d '{\"branch\": \"feature-xyz\", \"ref\": \"main\"}'\n\nHelper Script\n\nUse scripts/gitlab_api.sh for common operations:\n\n# List projects\n./scripts/gitlab_api.sh list-projects\n\n# Read file\n./scripts/gitlab_api.sh read-file <project-id> <file-path> [branch]\n\n# Write file\n./scripts/gitlab_api.sh write-file <project-id> <file-path> <content> <commit-msg> [branch]\n\n# Delete file\n./scripts/gitlab_api.sh delete-file <project-id> <file-path> <commit-msg> [branch]\n\n# List directory\n./scripts/gitlab_api.sh list-dir <project-id> <dir-path> [branch]\n\nRate Limits\nGitLab.com: 300 requests/minute (authenticated)\nSelf-hosted: Configurable by admin\nAPI Reference\n\nFull API docs: https://docs.gitlab.com/ee/api/api_resources.html\n\nKey endpoints:\n\nProjects: /api/v4/projects\nRepository files: /api/v4/projects/:id/repository/files\nRepository tree: /api/v4/projects/:id/repository/tree\nBranches: /api/v4/projects/:id/repository/branches"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/d1gl3/gitlab-api",
    "publisherUrl": "https://clawhub.ai/d1gl3/gitlab-api",
    "owner": "d1gl3",
    "version": "0.1.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/gitlab-api",
    "downloadUrl": "https://openagent3.xyz/downloads/gitlab-api",
    "agentUrl": "https://openagent3.xyz/skills/gitlab-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/gitlab-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/gitlab-api/agent.md"
  }
}