update-pr-description
它能做什么
这个技能引导 AI 对照实际的代码改动,检查拉取请求的标题和描述。适合希望自己的拉取请求描述对审阅者准确无误的开发者。
适用场景
- ✓当拉取请求已经变大,描述不再与改动相符的时候。
- ✓当你在请求审阅之前,想要一个清晰的标题和摘要的时候。
- ✓当审阅者表示描述已经过时的时候。
技能链接
https://github.com/storybookjs/storybook/blob/next/.agents/skills/update-pr-description/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请检查我的拉取请求描述是否仍与代码相符。如果不符,请建议一个更新后的标题。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 读取当前的标题、描述、提交信息和完整差异。它只报告有实质意义的差距,一次提出一项更新建议,并应用你批准的那些。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Update PR Description
Workflow
- Resolve the PR. Use the number/URL the user provided. If none, look up the PR for the current branch with
gh pr view. - Gather evidence:
gh pr view <pr> --json title,bodygh pr view <pr> --json commits(commit messages)gh pr diff <pr>(full diff against base)
- 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.
- Report. Tell the user whether the title and/or description meaningfully diverges. If not, stop here.
- Suggest iteratively. Propose concrete updated title/description. Ask the user one change at a time whether to apply, accept edits, and refine.
- 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
评论
- …
同一仓库的更多技能
handle-pr-comments
91k帮你的智能体逐条处理 GitHub 拉取请求的审查意见,建议修复方案,应用你的选择,并把讨论串标为已解决。
principle-encode-lessons-in-structure
91k教你的智能体把反复出现的错误转化为自动检查,例如 lint 规则或脚本,而不是一再写下同样的提醒。
storybook-startup-benchmark
91k帮你的智能体测量 Storybook 的启动时间,以及显示第一个 story 所需的时间,并通过重复运行进行公平比较。
storybook-upgrade
91k教你的智能体把项目中的所有 Storybook 包升级到指定版本,每次只升级一个大版本。