pr-outline
Use this skill when the user wants a change outline written into a pull request description, or after opening or updating a pull request that changes code.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-08
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- pr-outline
- description
- Use this skill when the user wants a change outline written into a pull request description, or after opening or updating a pull request that changes code.
03 SKILL.md 正文
Write the "What changes at runtime" section of the pull request description. The outline block in .github/PULL_REQUEST_TEMPLATE.md sets its format. Read that block first and follow it. Replace only that block. Leave the rest of the description untouched.
- Find the pull request's real base branch. Run
gh pr view <number> --json baseRefName --jq .baseRefName. Never assume it ismain. A stacked pull request is based on another open pull request's branch. - Read the full diff against that base branch:
git diff <base>...<head>. - Decide whether the runtime flow changes. If it does not, stop and write nothing.
- Write the section as the template describes: a short sentence on what to notice, then a call tree in a
diffcode block. Mark each call the change adds with+and each call it removes with-. Do not draw a Mermaid diagram. The pr-lens workflow already draws one for a code change. - Check every claim in the section against the real diff. Remove or fix any claim the diff does not support.
- Save the section you wrote and checked to a file.
- Run
osf pr section write --pr <number> --name outline --file <path>. It replaces the block, or adds it near the end when absent. It writes the pull request's head commit into the start marker. Everything else in the description stays as it was.
Keep the whole section short for a small pull request.
Stop when the section is written and every claim in it has been checked against the real diff.
04 同仓库更多 Skills
show-me
Use this skill when the user wants a concise visual instead of a wall of prose, such as pseudocode, a call tree, a component tree, a file tree, a Mermaid diagram, or a diff over one of those.
unpinned-script
Use this skill when the user wants to install the helper tool.
unclosed-frontmatter
暂无简介
no-trigger
Checks a folder for common problems before a release.
no-done
Use this skill when the user wants to migrate a package.
manual-shaped
Use this skill when the user wants background on the health-check tool.