Back to Registry View Author Profile
Official Verified
aliyun-codeup
阿里云云效 Codeup 代码仓库管理 - 查询项目、分支、提交记录等
skill-install — Terminal
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/alexmayanjun-collab/aliyun-codeupOr
阿里云云效 Codeup 技能
通过个人访问令牌访问阿里云云效 Codeup 代码仓库。
🔑 配置要求
1. 环境变量
在 ~/.zshrc 或 Gateway 环境变量中配置:
export YUNXIAO_PERSONAL_TOKEN="pt-xxx" # 云效个人访问令牌
2. 令牌获取
- 访问 https://codeup.aliyun.com/
- 右上角头像 → 个人设置 → 个人访问令牌
- 创建令牌,勾选权限:
read_api- 读取代码库read_repository- 读取仓库
🛠️ 功能
查询项目分支
输入: 项目 URL 或路径 输出: 分支列表、统计信息
示例:
查看云效项目 https://codeup.aliyun.com/flashexpress/ard/be/tools/data-admin-api 的分支
查询项目信息
输入: 项目 URL 输出: 项目名称、描述、成员数、最近活动
查询提交记录
输入: 项目 URL + 分支名 输出: 最近提交记录、提交者、时间
分析分支活跃度
输入: 项目 URL 输出: 各分支最后提交时间、活跃度排名
📋 使用方式
方式 1:Git Clone(推荐)
# 临时克隆查询
git clone --quiet "https://oauth2:[email protected]/<path>.git"
cd <repo> && git branch -a
cd /tmp && rm -rf <repo>
优点:
- ✅ 稳定可靠
- ✅ 支持所有 Git 操作
- ✅ 无需处理 API 分页
缺点:
- ⚠️ 需要临时克隆(小项目很快)
方式 2:HTTP API
# 查询分支
curl -s "https://codeup.aliyun.com/api/v3/projects/<id>/repository/branches" \
-H "Private-Token: $YUNXIAO_PERSONAL_TOKEN"
# 查询项目
curl -s "https://codeup.aliyun.com/api/v3/projects?search=<name>" \
-H "Private-Token: $YUNXIAO_PERSONAL_TOKEN"
优点:
- ✅ 快速(无需克隆)
- ✅ 节省带宽
缺点:
- ⚠️ API 地址可能变化
- ⚠️ 需要处理认证重定向
🔧 核心脚本
codeup_cli.py
#!/usr/bin/env python3
"""
阿里云云效 Codeup CLI 工具
"""
import subprocess
import sys
import os
import tempfile
import shutil
from urllib.parse import urlparse
def get_token():
"""从环境变量获取令牌"""
token = os.getenv('YUNXIAO_PERSONAL_TOKEN')
if not token:
print("❌ 错误:未配置 YUNXIAO_PERSONAL_TOKEN 环境变量")
sys.exit(1)
return token
def parse_project_url(url):
"""解析项目 URL"""
parsed = urlparse(url)
path = parsed.path.strip('/')
# 移除末尾的 /branches, /commits 等
if '/' in path:
parts = path.split('/')
if parts[-1] in ['branches', 'commits', 'tree', 'blob']:
path = '/'.join(parts[:-1])
return path
Metadata
AI Skill Finder
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skill Add to Configuration
Paste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-alexmayanjun-collab-aliyun-codeup": {
"enabled": true,
"auto_update": true
}
}
}Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.
Related Skills
Dataworks Daily Monitor
Skill by alexmayanjun-collab
alexmayanjun-collab 4473
dataworks-smart-monitor
DataWorks 智能监控技能 - 异步分析任务运行情况,智能告警分级(不阻塞主会话)
alexmayanjun-collab 4473
etl-generator
大数据 ETL 流程生成器 - 根据源表 DDL 生成标准化 ETL 加工 SQL(HiveSQL/MySQL)
alexmayanjun-collab 4473
dev-machine-cleanup
开发机清理技能 - 异步清理日志和临时文件(不阻塞主会话)
alexmayanjun-collab 4473
Dev Machine Database
Skill by alexmayanjun-collab
alexmayanjun-collab 4473