一键导入
pr-description
Prepares a pull request description. Use when asked to write or draft a PR description.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Prepares a pull request description. Use when asked to write or draft a PR description.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Reviews the review comments on a PR and helps address them. Use when asked to review a review, respond to PR feedback, or address review comments.
Prepares a git commit message. Use when asked to write or draft a commit message.
| name | pr-description |
| description | Prepares a pull request description. Use when asked to write or draft a PR description. |
Write PR descriptions following these conventions:
Part of <url> or Fixes <url>When referencing code, use permanent links with the commit SHA, not main:
Good: https://github.com/shop/world/blob/845bb9d9e90c30668470d808593389397f4e89bd/path/to/file.rb#L691-L695
Bad: https://github.com/shop/world/blob/main/path/to/file.rb#L691-L695
This ensures links don't break when code moves after the PR merges.
## Questions for reviewers - When you need input on specific decisions### Before / ### After - For visual changes, include screenshots<details><summary>...</summary>...</details> - For verbose info like stacktraces or long code samplesPart of https://github.com/shop/issues-team/issues/123
When identity isn't running in development, the UserLimits field was returning "Field 'userLimits' doesn't exist" because visibility checks were failing.
The UserLimits type requires USER_ACCESS scope. Even though mock API scopes were being returned, the context had `user_access: false` because the mock token didn't have a `sub` claim. The fix adds the missing claim and corresponding context overrides.
I assumed we only need this for development mode - if we need similar behavior in test, we'd need to extend `TestContextOverrides` as well.
The key change is in [DevelopmentContextOverrides](https://github.com/shop/world/blob/a1b2c3d/path/to/file.rb#L45-L52) where we now check for the sub claim before setting user_access.
## Questions for reviewers
Should we add similar overrides for other scopes?
ruby ~/.claude/skills/pr-description/context.rb to get branch name, main SHA, commits, and diff stats~/.claude/local-notes/pr-descriptions/pr-<branch_name>.md using GitHub flavored markdowncat ~/.claude/local-notes/pr-descriptions/pr-<branch_name>.md | pbcopy