← 返回 Skills 市场
geji

PingCode Enhanced

作者 Ji Gao · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
61
总下载
1
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install pingcode-enhanced
功能描述
PingCode 研发管理平台 API 集成。支持查询工作项、测试库、项目进度、组织架构、知识库、DevOps 等。
使用说明 (SKILL.md)

PingCode Skill

通过 PingCode Open API 操作研发管理平台数据。

前置条件

  1. 在 PingCode 企业后台创建应用,获取 Client IDClient Secret
  2. 配置应用的数据访问范围(需要勾选各模块权限)
  3. 设置环境变量
    export PINGCODE_CLIENT_ID="your_client_id"
    export PINGCODE_CLIENT_SECRET="your_client_secret"
    

1️⃣ 项目管理

获取项目列表

python3 scripts/query_projects.py                                  # 所有项目
python3 scripts/query_projects.py --name "合规"                     # 按名称搜索
python3 scripts/query_projects.py --project_id xxx --detail         # 项目详情

查看迭代 (Sprint)

python3 scripts/query_projects.py --project_id xxx --sprints        # 指定项目的迭代
python3 scripts/query_projects.py --all_projects_sprints --sprints  # 全部活跃迭代

查看发布 (Release)

python3 scripts/query_projects.py --project_id xxx --releases

项目成员

python3 scripts/query_projects.py --project_id xxx --members

2️⃣ 工作项 (Work Items)

获取我的工作项

python3 scripts/get_my_tasks.py

获取指定项目的全部工作项

python3 scripts/get_project_workitems.py --project_name "项目名称"
python3 scripts/get_project_workitems.py --project_id abc123 --json

工作项高级查询(推荐)

python3 scripts/query_workitems.py --project_name "项目名称"                # 统计
python3 scripts/query_workitems.py --project_name "项目名称" --type bug     # 只看 bug
python3 scripts/query_workitems.py --project_name "项目名称" --unfinished   # 未完成
python3 scripts/query_workitems.py --all_projects --unfinished                # 全部未完成
python3 scripts/query_workitems.py --project_name "项目名称" --assignee "张三"
python3 scripts/query_workitems.py --project_name "项目名称" --recent 7     # 最近7天

更新工作项

python3 scripts/update_workitem.py --workitem_id abc --assignee anytao
python3 scripts/update_workitem.py --workitem_id abc --start_date "2026-03-12" --due_date "2026-03-20"
python3 scripts/update_workitem.py --workitem_id abc --assignee anytao --priority "高"
python3 scripts/update_workitem.py --workitem_id abc --status "进行中"

生成周报

python3 scripts/generate_weekly_report.py
python3 scripts/generate_weekly_report.py --project_id xxx --project_name "项目名称"
python3 scripts/generate_weekly_report.py --output /tmp/weekly_report.md

3️⃣ 测试管理 (Test Hub)

测试库列表

python3 scripts/query_test_library.py                                    # 全部测试库
python3 scripts/query_test_library.py --library_name "项目名称"          # 按名称搜索
python3 scripts/query_test_library.py --library_name "项目名称" --detail # 含用例统计
python3 scripts/query_test_library.py --library_id xxx --detail          # 按 ID 查详情

测试用例查询

python3 scripts/query_test_library.py --library_name "项目名称" --detail

输出示例:

📂 测试模块 (50):
   劳动用工合规: 30
   在职管理: 13
   AI工作台: 12
   首页-AI: 8
   ...

📋 用例状态分布:
   设计: 260

测试执行记录

python3 scripts/query_test_runs.py                                      # 最近执行
python3 scripts/query_test_runs.py --library_name "项目名称"            # 按测试库
python3 scripts/query_test_runs.py --days 7                              # 最近7天
python3 scripts/query_test_runs.py --detail                              # 详细结果

4️⃣ 组织架构

python3 scripts/query_users.py                            # 所有用户
python3 scripts/query_users.py --search "蔡"              # 按姓名搜索
python3 scripts/query_users.py --user_id xxx               # 用户详情(含邮箱/手机/职位)
python3 scripts/query_users.py --departments              # 部门列表
python3 scripts/query_users.py --groups                   # 团队列表
python3 scripts/query_users.py --roles                    # 角色列表
python3 scripts/query_users.py --detail                   # 显示全部用户详细信息

5️⃣ 知识管理 (Wiki)

python3 scripts/query_wiki.py                              # 知识库空间列表
python3 scripts/query_wiki.py --space_id xxx               # 空间下的页面
python3 scripts/query_wiki.py --space_id xxx --search "合规"  # 搜索页面
python3 scripts/query_wiki.py --page_id xxx                # 查看页面详情
python3 scripts/query_wiki.py --page_id xxx --content      # 查看正文内容

6️⃣ 动态 & 评论 & 工时

python3 scripts/query_activities.py --work_item_id xxx               # 查看动态
python3 scripts/query_activities.py --work_item_id xxx --comments   # 评论
python3 scripts/query_activities.py --work_item_id xxx --hours      # 工时
python3 scripts/query_activities.py --work_item_id xxx --followers  # 关注人
python3 scripts/query_activities.py --work_item_id xxx --relations  # 关联项

7️⃣ DevOps 集成

python3 scripts/query_devops.py --repos     # 代码仓库
python3 scripts/query_devops.py --commits  # 提交记录
python3 scripts/query_devops.py --pr       # Pull Request
python3 scripts/query_devops.py --builds   # 构建记录
python3 scripts/query_devops.py --deploys  # 部署记录

8️⃣ 全局看板

python3 scripts/pingcode_dashboard.py                     # 所有项目概览
python3 scripts/pingcode_dashboard.py --project "合规"     # 按项目筛选
python3 scripts/pingcode_dashboard.py --test               # 含测试库统计

脚本清单

脚本 说明
query_projects.py 项目、迭代、发布、成员
get_projects.py 获取项目列表(原版)
get_my_tasks.py 我的工作项
get_project_workitems.py 项目工作项(原版)
query_workitems.py 工作项高级查询(推荐)
update_workitem.py 更新工作项
generate_weekly_report.py 生成周报
query_test_library.py 测试库 + 用例查询
query_test_runs.py 测试执行记录
query_users.py 用户/部门/团队/角色
query_wiki.py 知识库
query_activities.py 动态/评论/工时
query_devops.py DevOps 集成
pingcode_dashboard.py 全局看板
安全使用建议
Install only if you want this agent to access PingCode on your behalf. Create a dedicated PingCode application with the minimum scopes needed, avoid enabling all modules unless necessary, require confirmation before updates, and be careful because query results may include confidential company information.
功能分析
Type: OpenClaw Skill Name: pingcode-enhanced Version: 1.0.1 The skill bundle is a comprehensive and legitimate integration for the PingCode R&D management platform. It contains a suite of Python scripts (e.g., `query_projects.py`, `query_workitems.py`, `query_users.py`) designed to interact with the official PingCode Open API (https://open.pingcode.com). The scripts handle authentication securely via environment variables (PINGCODE_CLIENT_ID/SECRET) and include logic to prevent accidental leakage of tokens in error messages. The functionality—ranging from project tracking and test management to wiki access and weekly report generation—is entirely consistent with the stated purpose, and no indicators of data exfiltration, malicious execution, or prompt injection were found.
能力评估
Purpose & Capability
The artifacts are coherent with the stated PingCode API integration purpose: the provided scripts call https://open.pingcode.com for projects, work items, tests, org data, wiki, and DevOps. The capability set is broad but mostly disclosed.
Instruction Scope
The skill documents commands that can mutate PingCode work items, such as assignee, dates, priority, and status, without documenting a required confirmation step or rollback guidance.
Install Mechanism
There is no install script or remote installer, which reduces install-time risk. However, provenance is limited because the source/homepage are unknown and the runnable scripts depend on Python/requests without an install specification.
Credentials
The skill requires PingCode client credentials and asks the user to enable data access across modules, giving the agent potentially broad access to enterprise project, org, wiki, DevOps, and work-item data.
Persistence & Privilege
No background workers, persistence, or self-starting behavior are shown. The main privilege issue is delegated API access through environment-provided PingCode client credentials.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install pingcode-enhanced
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /pingcode-enhanced 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
清理示例中的企业内部信息,统一替换为通用示例名称
v1.0.0
全面升级:新增测试管理、组织架构、知识库、DevOps、全局看板等20+脚本
元数据
Slug pingcode-enhanced
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

PingCode Enhanced 是什么?

PingCode 研发管理平台 API 集成。支持查询工作项、测试库、项目进度、组织架构、知识库、DevOps 等。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 61 次。

如何安装 PingCode Enhanced?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install pingcode-enhanced」即可一键安装,无需额外配置。

PingCode Enhanced 是免费的吗?

是的,PingCode Enhanced 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

PingCode Enhanced 支持哪些平台?

PingCode Enhanced 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 PingCode Enhanced?

由 Ji Gao(@geji)开发并维护,当前版本 v1.0.1。

💬 留言讨论