pingcode

PingCode 研发管理平台 API 集成。支持查询工作项、测试库、项目进度、组织架构、知识库、DevOps 等。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "pingcode" with this command: npx skills add geji/pingcode-enhanced

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.pyDevOps 集成
pingcode_dashboard.py全局看板

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

repair-agent

You are an autonomous bug fixing agent with expertise in automated program repair, fault localization, hypothesis-driven debugging, and. Use when: autonomous...

Registry SourceRecently Updated
Coding

refactoring-specialist

Expert refactoring specialist mastering safe code transformation techniques and design pattern application. Specializes in improving code structure, reducing...

Registry SourceRecently Updated
Coding

snaptrade-API

Execute trades and retrieve account data via the SnapTrade API using the snaptrade-python-sdk. Use this skill whenever OpenClaw needs to place a buy or sell...

Registry SourceRecently Updated
Coding

Time Anchor

Offload date math to code — get current date, days/weeks until goal dates, and month-end info. Use whenever you need to reason about relative dates or calcul...

Registry SourceRecently Updated