360 Secure SkillHub
360 安全技能中心

Gh Standup

通过 Python 脚本调用已登录的 gh 命令行工具,按最近一次站立会日期拉取指定仓库或组织内本人合并的 PR 与直接提交,去重后输出可直接用作站立会消息的纯文本摘要;需 Python 3.10+ 与已认证的 gh。

分类:效率
zerone0x
zerone0x
热度 36.21
最近更新 2026-05-11 17:29:33

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add zerone0x/gh-standup
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
gh-standup
description
Generate a GitHub standup summary covering the period since the last standup. Use when the user asks for a standup, work summary, weekly update, or "what did I do since [day]". Accepts a repo (org/repo) or organization name, and one or more standup days (e.g. Friday, or Monday,Thursday). Pulls merged PRs and direct commits authored by the user since the last standup date, and formats a clean summary.

gh-standup

Generate a standup summary from GitHub activity since the last standup day.

Quick Start

# Single repo, weekly Friday standup
python3 scripts/standup.py --repo ORG/REPO --standup-days Friday

# Multiple standup days
python3 scripts/standup.py --repo ORG/REPO --standup-days Monday,Thursday

# Whole org, specific author
python3 scripts/standup.py --org MY_ORG --standup-days Friday --author username

Parameters

Flag Required Default Description
--repo one of — Single repo (org/repo)
--org one of — Entire GitHub org (all repos)
--standup-days no Friday Comma-separated weekdays
--author no @me GitHub username or @me

Workflow

  1. Run scripts/standup.py with the user's repo/org and standup days
  2. The script calculates the most recent past standup day and uses it as since
  3. Output: merged PRs + direct commits (PR commits de-duped) since that date
  4. Post the output as the standup message

Requirements

  • gh CLI authenticated (gh auth status)
  • Python 3.10+

Notes

  • --org fetches all repos in the org; can be slow for large orgs — prefer --repo when possible
  • PRs are matched by merge date; commits by author date
  • Commits that belong to a merged PR are excluded from "Direct Commits" to avoid duplication