sred-work-summary by getsentry/skills
npx skills add https://github.com/getsentry/skills --skill sred-work-summary收集指定人员在给定年份内完成的所有 GitHub PR、Notion 文档和 Linear 工单。将所有链接按项目分组。将所有内容放入一个私有的 Notion 文档中,并返回该文档的链接。
开始之前,请确保可以访问 GitHub、Notion 和 Linear。Notion 和 Linear 应使用 MCP 连接。GitHub 可以使用 MCP 连接,但如果您可以访问 gh CLI 工具,也可以使用它。
如果其中任何一项无法访问,请提示用户在继续之前授予访问权限。
# 获取当前年份
date +%Y
此命令的输出是当前年份。当前年份减一即为上一年。
从用户处收集所有必需信息:
Github 用户名 :用户的 github 用户名是什么?
Github 仓库 :应该搜索哪些 Github 仓库来查找 PR?
用户可以指定一个逗号分隔的列表,也可以提供一个包含仓库的目录。在第二种情况下,请在指定目录中使用此命令:
# 查找 github 仓库
find . -maxdepth 2 -name ".git" -type d | sed 's/\/.git$//' | sort
确保:
getsentry Github 组织中。此输出在下文中称为“用户仓库”。
事件 :询问用户是否要包含事件文档。
答案是“是”或“否”。如果答案为“否”,则稍后将排除某些文档的搜索。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
其他用户 :询问是否有其他用户可能创建了 Notion 文档。
这应该是一个逗号分隔的名称列表。请记住这是“其他用户”。
创建一个名为“SRED 工作汇总 [当前年份]”的私有 Notion 文档。此文档将被称为“工作汇总”。
如果已存在同名文档,请通知用户重命名现有文档并停止执行。
确保:
时间窗口是上一年的 2 月 1 日到当前年份的 1 月 31 日。查找在时间窗口内,由给定 github 用户名在用户仓库中创建的所有 Github PR。如果用户不想包含事件文档,则忽略标题或描述中包含 INC-X、inc-X 的任何 Github PR。使用 Github MCP 或 gh 命令来完成此操作。
查找用户在时间窗口内创建的所有 Notion 文档。如果用户不想包含事件文档,则忽略标题中包含 INC-XXXX 的任何 Notion 文档。使用 Notion MCP 来完成此操作。
查找在时间窗口内分配给用户的所有 Linear 工单。如果用户不想包含事件文档,则忽略标题中包含 INC-XXXX 的任何 Linear 工单。使用 Linear MCP 来完成此操作。
确保:
对于在步骤 4 中找到的每个 Github PR、Notion 文档和 Linear 工单,在步骤 3 创建的私有文档中放入一个链接。
确保:
运用您自己的智能,将工作汇总文档中的所有 Github、Notion 和 Linear 工单链接按项目分组。此文档的格式如下所示。
# 项目
## [项目名称]
*汇总*: [X] 个 PR, [X] 个 Notion 文档, [X] 个 Linear 工单
### 拉取请求 [X]
*[仓库名称]
[所有 PR 的链接]
- [链接] - [合并日期]
### Notion 文档 [X]
[所有 Notion 文档的链接]
- [链接] - [创建日期]
### Linear 工单 [X]
- [链接] - [创建日期]
对于 Github PR,使用 PR 的标题和描述进行分组。对于 Notion 文档,使用整个文档进行分组。对于 Linear 工单,使用工单的标题和描述。
确保:
搜索由“其他用户”创建的 notion 文档。将与工作汇总中的项目相关的任何文档的链接添加到工作汇总中相应的项目下。
向用户返回工作汇总 Notion 文档的链接。
确保:
这是 2025 年工作汇总文档的示例:https://www.notion.so/sentry/Work-Summary-Feb-2025-Jan-2026-3068b10e4b5d81d3a40cfa6ad3fe1078?source=copy_link
每周安装数
208
仓库
GitHub 星标数
454
首次出现
Feb 18, 2026
安全审计
安装于
codex190
opencode188
gemini-cli187
kimi-cli185
amp185
github-copilot185
Collect all the Github PRs, Notion docs and Linear tickets a person completed in a given year. Group the links from all of those into projects. Put everything into a private Notion document and return a link to that document.
Before starting make sure that Github, Notion and Linear can be accessed. Notion and Linear should be connected using an MCP. Github can be connected with an MCP, but if you have access to the gh CLI tool, you can use that instead.
If any of these can't be accessed, prompt the user to grant access before proceeding.
# Get the current year
date +%Y
The output of this command is the current year. The current year minus one is the previous year.
Collect all of the required information from the user:
Github Username : What is the github username of the user?
Github Repositories : Which Github repositories should be searched for PRs?
The user can either specify a comma separated list, or provide a directory that contains repositories. In the second case use this command in the specified directory:
# Find github repos
find . -maxdepth 2 -name ".git" -type d | sed 's/\/.git$//' | sort
Ensure:
getsentry Github organization.The output of this is hereafter referred to as the "user repos".
Incidents : Ask if the user wants to include incident documents.
The answer is either yes or no. If the answer is no, that will exclude certain documents from the search later on.
Other Users : Ask if there are any other users who might have created Notion documents.
This should be a comma separated list of names. Remember this as the "other users".
Create a private Notion document entitled "SRED Work Summary [current year]". This document will be referred to as the Work Summary.
If a document with this name already exists, notify the user to rename the existing document and stop executing.
Ensure:
The time window is Feb. 1 of the previous year until Jan. 31 of the current year Find all Github PRs created by the given github username in the time window for the user repos. If the user does not want to include incident documents, ignore any Github PRs with INC-X, inc-X in the title or description. Use either the Github MCP or the gh command to do this.
Find all the Notion documents the user created in the time window. If the user does not want to include incident documents, ignore any Notion Documents with INC-XXXX in the title. Use the Notion MCP to do this.
Find all the Linear tickets the user was assigned in the time window. If the user does not want to include incident documents, ignore any Linear tickets with INC-XXXX in the title. Use the Linear MCP to do this.
Ensure:
For each of the Github PRs, Notion documents and Linear tickets found in Step 4, put a link into the private document created in Step 3.
Ensure:
Use your own intelligence to group all the Github, Notion and Linear ticket links in the Work Summary document into projects. The format of this document is shown below.
# Projects
## [Project Name]
*Summary*: [X] PRs, [X] Notion docs, [X] Linear tickets
### Pull Requests [X]
*[repository name]
[Links to all the PRs]
- [link] - [Merge date]
### Notion Docs [X]
[Links to all the Notion docs]
- [link] - [Creation date]
### Linear Tickets [X]
- [link] - [Creation date]
For Github PRs, use both the title of the PR and the description of the PR for grouping. For Notion documents, use the full document for grouping. For Linear tickets use the title of the ticket and the description of the ticket.
Ensure:
Search for notion documents created by the "other users". Take any that are relevant to the projects in the Work Summary and add links to those Notion documents into the Work Summary in the appropriate project.
Return a link to the Work Summary Notion doc to the user.
Ensure:
This is an example Working Summary document for the year 2025: https://www.notion.so/sentry/Work-Summary-Feb-2025-Jan-2026-3068b10e4b5d81d3a40cfa6ad3fe1078?source=copy_link
Weekly Installs
208
Repository
GitHub Stars
454
First Seen
Feb 18, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex190
opencode188
gemini-cli187
kimi-cli185
amp185
github-copilot185
通过 LiteLLM 代理让 Claude Code 对接 GitHub Copilot 运行 | 高级变通方案指南
31,600 周安装