360 Secure SkillHub
360 安全技能中心

Codeberg cli

该 Skill 提供 x cb 命令示例,用于在 Codeberg 上克隆和创建仓库、添加协作者、管理议题与拉取请求,以及查看组织和团队、用户信息。使用前需配置 Codeberg 访问令牌,命令执行依赖网络与 x cb CLI。

curry798
curry798
热度 57.39
最近更新 2026-05-11 17:33:24
分类:开发依赖:代码执行 / 第三方 API应用场景:DevOps / API 集成 / 任务管理 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add x-cb
Metadata
name
x-cb
description
Interact with Codeberg using the `x cb` CLI. Use `x cb repo`, `x cb issue`, `x cb pr`, `x cb org`, `x cb team`, and `x cb user` for managing repositories, issues, PRs, organizations, teams, and users on Codeberg. Trigger when user mentions Codeberg, needs to manage Codeberg repos/issues/PRs, clone from codeberg.org, or work with Codeberg organizations or teams.

Codeberg Skill (x cb)

Use x cb to interact with Codeberg (codeberg.org). Get your token at: https://codeberg.org/user/settings/applications

Repository

Clone a repository:

x cb repo clone <owner>/<repo>

List repositories in an organization:

x cb repo ls <org_path>

Create a public repository:

x cb repo create --access public <name>

Add a collaborator to a repository:

x cb repo collaborator add <owner>/<repo> <username> --permission push

Issue

List issues in a repository:

x cb issue ls --repo <owner>/<repo>

Create an issue:

x cb issue create -r <owner>/<repo> --title "Bug" --body "Description"

Pull Request

List pull requests in a repository:

x cb repo pr ls --repo <owner>/<repo> --state open

Create a pull request:

x cb repo pr create --repo <owner>/<repo> --base develop --head main --title "Fix"

Organization

List organizations:

x cb org ls

List repositories in an organization:

x cb org repo ls <org_path>

Team

List teams in an organization:

x cb team ls --org <org_path>

Create a team with permissions:

x cb team create --org <org_path> --units 'repo.code' --units_map '{"repo.code": "write"}' <team_name>

User

Show current user info:

x cb user info

List current user's repositories:

x cb user repo ls