用途:该技能让 AI 代理通过 Membrane CLI 与自托管 Git 仓库管理平台 Gitea 交互,管理仓库、组织、用户等数据,适用于需要让代理读写 Gitea 数据的集成场景。
主要能力:预置操作覆盖列表与获取类(如 list-user-repositories、list-organization-repositories、list-issues、list-pull-requests、list-branches、list-releases、get-repository、get-issue 等)和写入类(create-repository、create-issue、create-pull-request、update-repository、delete-repository 等),涉及仓库、分支、议题、拉取请求、里程碑、组织、用户等对象。当预置操作不满足需求时,可通过代理直接请求 Gitea API。
使用方式:先安装 CLI:npm install -g @membranehq/cli@latest;再登录 membrane login --tenant --clientName=<agentType>,无头环境会输出授权 URL,用户完成后执行 membrane login complete <code>。用 membrane connection ensure "https://gitea.io" --json 建立连接,若状态为 BUILDING 则轮询 membrane connection get <id> --wait --json 直到 READY。用 membrane action list --connectionId=CONNECTION_ID --intent "QUERY" --limit 10 --json 查找操作,用 membrane action run <actionId> --connectionId=CONNECTION_ID --input '{"key": "value"}' --json 执行,结果在 output 字段。代理请求用 membrane request CONNECTION_ID /path/to/endpoint,可加 -X、-H、-d、--json、--query、--pathParam 等选项。任何命令加 --json 可获得机器可读输出。
限制与说明:认证由 Membrane 在服务端管理,不应向用户索取 API 密钥或令牌;连接可能需要用户完成浏览器操作,状态可能为 CLIENT_ACTION_REQUIRED 或报错。具体 Gitea 版本兼容性、速率限制、权限范围等资料未提供。