跳到正文
Skillpedia
通用编程91k · #1323

update-pr-description

它能做什么

这个技能引导 AI 对照实际的代码改动,检查拉取请求的标题和描述。适合希望自己的拉取请求描述对审阅者准确无误的开发者。

适用场景

  • ✓当拉取请求已经变大,描述不再与改动相符的时候。
  • ✓当你在请求审阅之前,想要一个清晰的标题和摘要的时候。
  • ✓当审阅者表示描述已经过时的时候。

技能链接

https://github.com/storybookjs/storybook/blob/next/.agents/skills/update-pr-description/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/storybookjs/storybook/blob/next/.agents/skills/update-pr-description/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请检查我的拉取请求描述是否仍与代码相符。如果不符,请建议一个更新后的标题。”

每周 5 个新技能,1 分钟读完。

工作原理

AI 读取当前的标题、描述、提交信息和完整差异。它只报告有实质意义的差距,一次提出一项更新建议,并应用你批准的那些。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Update PR Description

Workflow

  1. Resolve the PR. Use the number/URL the user provided. If none, look up the PR for the current branch with gh pr view.
  2. Gather evidence:
    • gh pr view <pr> --json title,body
    • gh pr view <pr> --json commits (commit messages)
    • gh pr diff <pr> (full diff against base)
  3. Evaluate divergence. Compare the stated title/description against what the commits and diff actually do. Only flag meaningful divergence (wrong scope, missing major changes, stale claims, inaccurate summary). Ignore trivial wording.
  4. Report. Tell the user whether the title and/or description meaningfully diverges. If not, stop here.
  5. Suggest iteratively. Propose concrete updated title/description. Ask the user one change at a time whether to apply, accept edits, and refine.
  6. Apply. Once agreed, update on the user's behalf with gh pr edit <pr> --title ... --body ....

Notes

  • Match the repository's existing PR template/style if the body uses one.
  • Don't rewrite a description that's already accurate.
  • Update the state of checkboxes where appropriate.
  • Remove section placeholders/reminders when filling out a section.
  • Do not remove the canary release section.
常见问题

它会自动修改我的描述吗?

不会。它只提出改动,在你同意后才会应用。

如果描述本来就准确,它会重写吗?

不会。该技能说明,不要重写已经准确的描述。

除了代码,它还检查什么?

提交信息,这样它就能看出每次提交实际做了什么。

详情

作者的原始描述

Evaluate a PR's title and description against its actual implementation, then iteratively suggest and apply updates. Use when the user asks to check, fix, or update a PR title or description.

repo: storybookjs/storybook

热度

GitHub 星标
91k
排名
#1323
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能