mattpocock/skills

pr

用简短结构写PR正文:Summary以最小图示解释变化,Evidence展示前后证据,Merge Danger交代可回退性与影响范围。它负责描述已有变更,不是替你制造测试或截图证据。

  • SKILL.md 已保存
  • 中文用法已整理
  • 安装与运行未实测
先判断是否解决你的问题

pr 是什么?

用简短结构写PR正文:Summary以最小图示解释变化,Evidence展示前后证据,Merge Danger交代可回退性与影响范围。它负责描述已有变更,不是替你制造测试或截图证据。

中文说明由本站依据来源整理;英文原文保留在页面下方。

按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 pr,然后按本页使用示例提供材料。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 pr

请在 Codex 的当前工作环境中安装并检查 pr 这个 Skill。

项目身份:mattpocock/skills / pr
来源:https://github.com/mattpocock/skills/blob/5863806dd4e15c63174bee4e7515a4256792ecfa/skills/engineering/pr/SKILL.md
已定位的源文件:skills/engineering/pr/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
准备输入,再按步骤执行

装好以后,具体怎么用?

准备哪些材料

  • 提供真实差异、原问题和已有验证结果,术语沿用GLOSSARY.md。没有前后证据时应先标明缺项。

会得到什么

  • 可直接用于PR正文的变更说明、证据和合并影响描述。

实际使用顺序

  1. 按变化选择伪代码、调用树、组件树、文件树、diff或Mermaid,只留解释关键点所需内容。
  2. 在Evidence列出实际Before/After截图、输出或失败/通过测试,不能把预期输出写成真实运行。
  3. 说明合并属于易回退的双向门还是难逆转的单向门,给出影响范围与必要说明,保持正文简短。
使用示例

从一个具体任务开始

本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。

安装并识别 Skill 后发送

复制一个具体任务

教学示例:请用pr为这次Skills搜索修改写正文。读取真实diff,用简短数据流图说明中文摘要如何进入检索;Evidence只用已有测试与截图,没有的写未验证。说明回退方式和影响范围,只写草稿,不创建或发布PR。
预期结果

预期得到能帮助评审判断变化的PR草稿,不包含虚构验证结果;本例未运行。

使用前先看这些限制

使用条件与边界

  • 模板字段齐全不代表实现正确或合并风险已消失。
针对这个 Skill 的疑问

常见问题

必须每种图都放吗?

不必。来源要求选择能解释关键点的最小视图,多图如果不增加理解就不应堆进去。

需要核对时再展开原文

来源原文与资料状态

源文件
已保存 SKILL.md,抓取于 2026-11-16T12:36:35.145Z
中文使用说明
已针对下方源文件版本整理用途、用法和常见问题
安装与任务测试
本站未执行安装或任务测试
来源复核
本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料

skills/engineering/pr/SKILL.md · 抓取时间 2026-11-16T12:36:35.145Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

Use when writing a PR body.

查看源文件章节 / Source sections
  • 原文:Sections
  • 原文:Summary
  • 原文:Guidance
  • 原文:Evidence
  • 原文:Merge Danger
原文:正文开头

Use this template for writing the PR body: ```markdown ## Summary <diagram, diff-sketch, or tree> ## Evidence - **Before:** <screenshot/output/failing test run> **After:** <screenshot/output/passing test run> ## Merge Danger **Door:** <one-way or two-way> <optional: description> **Blast Radius:** <one-word description> <optional: potential ramifications of merge> ```

原文:Sections

Skip all preambles and keep prose brief. Use the user's domain language from `GLOSSARY.md`.

原文:Summary

Pick the smallest view that makes the key point clear. - Show logic or an algorithm as pseudocode: ```text on(save) if content is unchanged return cached result write new content return fresh result ``` - Show runtime control flow as a call tree: ```text submitForm createSession persistPrompt launchAgent navigateToSession ``` - Show UI structure as a component tree, including state and module boundaries that matter: ```text <SessionPage> (apps/example/src/routes/session.tsx) useSessionEvents() <SessionToolbar> <RunSkillButton> (packages/ui) ``` - Show file responsibility or a broad refactor as a shallow file tree: ```text src/ ├── commands/ # parses user actions ├── sessions/ # owns session state └── transport/ # sends API requests ``` - Show component interaction, control flow, or data flow with Mermaid: ```mermaid sequenceDiagram participant User participant UI participant Daemon User->>UI: choose command UI->>Daemon: send expanded prompt Daemon-->>UI: stream result ``` - Use `diff` when the point is what changes and the surrounding shape already exists. Match the diff shape to the topic. For a component change: ```diff <SessionPage> useSessionEvents() <SessionToolbar> + <RunSkillButton /> <SessionTimeline> + <SkillResultCard /> ``` For a file-layout change: ```diff src/ ├── commands/ +│ └── show-me.ts # expands the slash command ├── sessions/ -└── transport.ts +└── transport/ + ├── client.ts + └── stream.ts ``` For a call-tree or call-stack change: ```diff submitForm createSession persistPrompt + expandSkillMention launchAgent - navigateToSession + navigateToSession + subscribeToEvents ``` For a state or control-flow change: ```diff on(save) - write content + if content is unchanged + return cached result + write new content + invalidate cache ``` - Show the whole block when most of it is new, when omitted context would hide ownership or order, or when the user needs a copyable target shape:

本段为节选,完整内容见源文件。

原文:Guidance

Place each visual next to the short text it supports. Keep only the calls, files, props, states, and boundaries needed to answer the user's current question or the options to resolve the current discussion point. You may use one of these, you may use several, it is unlikely you will use all of them. Use your judgement and don't overwhelm the user.

原文:Evidence

Concrete evidence that the change works. Show a before and after. Screenshots are S-tier - when the environment is set up for it and the change is visual. Execution-based evidence is A-tier. Test results, console output. Show the exact test that now fails and passes, using pseudocode.

原文:Merge Danger

Describe whether it's a one-way or two-way door. You can walk back through two-way doors, but not one-way doors. A PR that is cheap to roll back is lower risk. Changes that involve destructive actions or hard-to-reverse decisions are one-way doors. The blast radius is the potential impact or scope of the changes introduced by this PR. Consider all possibilities. Examples are layout shift, breakages for consumers, mobile responsiveness, etc.

文件 SHA256:ab63f1cf78647389edcd386c9427c5dfca27ed2836930c24773ffee834c19bcd

仓库许可证记录:MIT;repository-license-recorded-scope-unverified,查看来源。

SKILL.md原文description · 2026-11-16T12:36:35.145Z

Use when writing a PR body.

查看历史简介来源

历史收录数据

来源仓库mattpocock/skills
Skill源路径skills/engineering/pr/SKILL.md

安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源