plugins/cnb-issue/skills/cnb-issue/SKILL.md
This skill should be used when the user wants to "create a CNB issue", "list CNB issues", "close issue on cnb.cool", "update issue status", "add label to issue", "assign issue to someone", "comment on CNB issue", "查看 cnb issue", "创建问题单", "查询 CNB 问题", "更新 issue 状态", "给 issue 加标签", "分配 issue 处理人", "在 cnb.cool 上创建工单", or mentions managing issues on the CNB (cnb.cool) platform. Provides a CLI tool for full Issue lifecycle management. Do NOT use for GitHub or GitLab issues.
npx skillsauth add hicaosen/skills cnb-issueInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
操作 CNB 平台 (https://cnb.cool) 上的 Issue。所有命令通过 scripts/cnb-client.js 执行。
下文示例中 $SCRIPT 为 $CLAUDE_PLUGIN_ROOT/skills/cnb-issue/scripts/client.js 的简写。
npm install 安装依赖CNB_TOKEN(CNB 个人设置 -> 访问令牌,需 repo-issue:r 或 repo-issue:rw 权限)CNB_TOKEN 环境变量是否存在,未设置则立即停止并告知用户# 列出所有 Issue
node $SCRIPT list owner/repo
# 带过滤条件
node $SCRIPT list owner/repo '{"state":"open","labels":"bug"}'
# 获取单个 Issue 详情
node $SCRIPT get owner/repo 123
node $SCRIPT create owner/repo '{"title":"Bug: 登录页面无法加载","body":"详细描述...","labels":["bug"],"assignees":["username"]}'
# 更新标题和内容
node $SCRIPT update owner/repo 123 '{"title":"新标题","body":"新内容"}'
# 关闭 Issue
node $SCRIPT update owner/repo 123 '{"state":"closed"}'
# 重新打开
node $SCRIPT update owner/repo 123 '{"state":"open"}'
node $SCRIPT add-labels owner/repo 123 '["bug","urgent"]'
node $SCRIPT set-labels owner/repo 123 '["enhancement"]'
node $SCRIPT remove-label owner/repo 123 wontfix
node $SCRIPT add-assignees owner/repo 123 '["user1","user2"]'
node $SCRIPT remove-assignees owner/repo 123 '["user1"]'
node $SCRIPT add-comment owner/repo 123 "这是评论内容"
node $SCRIPT list-comments owner/repo 123
# 创建 Issue 并添加评论
ISSUE_NUM=$(node $SCRIPT create myorg/myproject/myrepo '{"title":"[Bug] 支付页面超时","body":"## 问题描述\n支付页面在高峰期出现超时情况","labels":["bug","priority-critical"],"assignees":["backend-team"]}' | node -e "process.stdin.on('data',d=>{const r=JSON.parse(d);console.log(r.number||r.issue_number||'')})")
echo "Issue 创建成功: $ISSUE_NUM"
node $SCRIPT add-comment myorg/myproject/myrepo "$ISSUE_NUM" "已分配给后端团队处理,预计 24 小时内修复。"
| 命令 | 说明 |
|------|------|
| list <repo> [query] | 列出 Issues |
| get <repo> <number> | 获取 Issue 详情 |
| create <repo> <json> | 创建 Issue |
| update <repo> <number> <json> | 更新 Issue |
| add-labels <repo> <number> <labels> | 添加标签 |
| set-labels <repo> <number> <labels> | 设置标签(替换) |
| remove-label <repo> <number> <name> | 移除标签 |
| add-assignees <repo> <number> <users> | 添加处理人 |
| remove-assignees <repo> <number> <users> | 移除处理人 |
| add-comment <repo> <number> <body> | 添加评论 |
| list-comments <repo> <number> | 列出评论 |
| 权限 | 说明 |
|------|------|
| repo-issue:r | 读取 Issue |
| repo-issue:rw | 读写 Issue |
| repo-notes:r | 读取评论 |
| repo-notes:rw | 读写评论 |
username/repoorg/project/repodevelopment
VictoriaTraces HTTP API reference for querying distributed traces via Jaeger-compatible API. This skill should be used when searching traces, listing services/operations, getting trace details by ID, querying service dependencies, constructing HTTP requests to VictoriaTraces, or working with Jaeger API endpoints for distributed tracing analysis.
development
VictoriaMetrics HTTP API reference for querying metrics, exporting/importing data, TSDB stats, and administrative operations. This skill should be used when constructing HTTP requests to VictoriaMetrics, understanding query endpoints (/api/v1/query, /api/v1/query_range, /api/v1/export, /api/v1/import), response formats, checking cardinality, creating snapshots, or integrating with VictoriaMetrics API.
development
VictoriaLogs HTTP API reference for querying logs, hits stats, field discovery, live tailing, and log statistics. This skill should be used when constructing HTTP requests to VictoriaLogs, understanding query endpoints (/select/logsql/query, /select/logsql/tail, /select/logsql/hits, /select/logsql/field_names), response formats, or integrating with VictoriaLogs API for log search and analysis.
testing
PromQL query language fundamentals for Prometheus and Prometheus-compatible systems. Use for understanding PromQL instant/range vectors, label matchers, aggregation operators, offset/@ modifiers, or when targeting non-VictoriaMetrics Prometheus systems. For VictoriaMetrics-specific features like default_rollup, rollup, or outlier detection, use the metricsql skill.