OneKeyHQ

1k-pr-daily-report

生成按模块分组的24小时PR活动报告,包含中文摘要。当用户询问PR统计、日报或PR汇总时使用。

OneKeyHQ 2,474 540 更新于 7个月前

资源

1
GitHub

安装

npx skillscat add onekeyhq/app-monorepo/1k-pr-daily-report

通过 SkillsCat registry 安装。

技能简介

生成按模块分组的24小时PR活动报告,包含中文摘要。当用户询问PR统计、日报或PR汇总时使用。

SKILL.md

24h PR 日报

Generate a PR activity report for the last 24 hours, grouped by module, with Chinese titles and status labels.

Step 1: Fetch PR data

gh pr list --state all --search "created:>=$(date -v-24H +%Y-%m-%dT%H:%M:%S)" --limit 100 --json number,title,state,isDraft,mergedAt,createdAt,author,labels

On Linux, use date -d '24 hours ago' instead of date -v-24H.

Step 2: Classify status

  • [已完成]: state is MERGED
  • [进行中]: state is OPEN (regardless of isDraft)

Step 3: Classify modules

Determine the module from the PR title prefix and content:

Module Matching rules
Desktop title contains desktop, electron, snap, serialport
iOS title contains ios, TOCrop, EAS
Market(行情) title contains market
Perps(合约交易) title contains perps, trading
钱包/硬件 title contains wallet, account, keyless, pin, hardware
CI/发布/热更新 title contains bundle, release, workflow, ci, label
Watchlist(关注) title contains watchlist, watch
Refer(推荐) title contains refer
Network title contains network, netinfo
依赖/安全 title contains bump, upgrade, security, flatted, minimatch, dep

If a PR doesn't match any rule, place it under 其他.

Step 4: Output format

Use this exact format:

## 24h PR 统计

### {Module Name}
- #{number} {Chinese title} [{status}]
- #{number} {Chinese title} [{status}]

### {Module Name}
...

---

**合计 {total} 个 PR**:已完成 {merged} / 进行中 {open}

Rules:

  • Translate each PR title to a concise Chinese summary
  • Group by module, each module is a ### heading
  • Each PR is a - #number title [status] line
  • Modules with more PRs come first
  • End with a summary line showing totals