Agent Skillsuw-syfi/vibesys › open-pr

open-pr

GitHub

用于准备并打开 VibeSys 仓库的拉取请求。涵盖分支管理、变更检查、意图分析、测试验证及 PR 创建流程,确保代码质量与提交规范。

.agents/skills/open-pr/SKILL.md uw-syfi/vibesys

触发场景

用户要求创建或打开 Pull Request 需要清理本地分支状态并提交更改 生成符合规范的 PR 描述和模板

安装

npx skills add uw-syfi/vibesys --skill open-pr -g -y
更多选项

非标准路径

npx skills add https://github.com/uw-syfi/vibesys/tree/main/.agents/skills/open-pr -g -y

不安装直接使用

npx skills use uw-syfi/vibesys@open-pr

指定 Agent (Claude Code)

npx skills add uw-syfi/vibesys --skill open-pr -a claude-code -g -y

安装 repo 全部 skill

npx skills add uw-syfi/vibesys --all -g -y

预览 repo 内 skill

npx skills add uw-syfi/vibesys --list

SKILL.md

Frontmatter
{
    "name": "open-pr",
    "description": "Prepare and open VibeSys pull requests from local repo changes. Use when the user asks to create, open, publish, submit, or draft a PR for this repository, including tasks that need branch hygiene, targeted validation, PR intent reflection, PR template completion, commit\/push, GitHub pull request creation, or native GitHub stacks for dependent PRs."
}

Open PR

Overview

Open a pull request for VibeSys changes without losing user work. Keep the scope narrow, recover the intended reason for the change, use the repository PR template, and make verification explicit.

Workflow

  1. Inspect state:

    • Run git status --short --branch.
    • Identify the current branch and upstream with git branch --show-current and git remote -v.
    • Review unstaged, staged, and untracked files before editing, staging, or committing.
    • Preserve unrelated user changes. Stage only files that belong to the requested PR.
  2. Create or confirm a branch:

    • If already on an appropriate feature branch, stay on it.
    • If on main, master, or a generic branch, create a focused branch with the default Codex prefix: vic/<short-topic>.
    • Do not overwrite or reset a branch unless the user explicitly asks.
  3. Understand the diff:

    • Use git diff --stat, git diff, and git diff --staged as needed.
    • Check whether generated-looking artifacts changed and verify they are intentional.
    • For prompt or skill changes, read the affected prompt/skill content as user-visible behavior.
  4. Reflect on intent:

    • Gather PR motivation from the existing conversation, user request, issue links, commit history, changed files, tests, and any docs touched by the diff.
    • Treat intent as the most important part of the PR description. The Problem section should explain why the change exists, not merely restate which files changed.
    • Separate known intent from inference. If the reason, target user, review concern, issue linkage, rollout risk, or correctness contract is uncertain, ask the user for clarification before writing or opening the PR.
    • Ask concise questions for anything material that cannot be recovered from context unless the user explicitly asks not to be contacted.
    • Do not invent motivation to make the PR body sound complete. Use "not applicable" or a clear limitation only when the uncertainty is minor and does not change reviewer understanding.
  5. Run the smallest relevant checks:

    • Prefer narrow tests first, then broaden only when the change crosses boundaries.
    • Common checks:
./scripts/format.sh
./scripts/check_format.sh
./scripts/check_lint.sh
uv run pytest path/to/test.py
uv run pytest -k keyword
uv run pytest
  1. Commit intentionally:

    • Stage only the PR's files.
    • Re-run git diff --staged before committing.
    • Use a concise imperative commit subject.
    • If checks could not run, keep the commit message normal and explain the gap in the PR body.
  2. Push:

    • Push the current branch to the default remote, normally origin.
    • Set upstream on first push: git push -u origin <branch>.
  3. Open the PR:

    • Prefer the GitHub app/tooling when available; use gh pr create only as a fallback.
    • Default to a draft PR unless the user explicitly asks for a ready PR.
    • Target the repository's default base branch unless the user specifies another base.
    • Use .github/pull_request_template.md and fill every section.
    • When opening a dependent series, create every PR with its complete body, then register the series as a native GitHub stack as described below.

Native GitHub Stacks

Use a native GitHub stack when two or more PRs form a true dependency chain in the same repository. Keep the bottom PR based on the trunk and each later PR based on the preceding PR's head branch. Do not stack PRs merely because they are related or opened together.

  1. Ensure the official extension is available. Install it when missing: gh extension install github/gh-stack.
  2. Open each PR normally so its title, draft state, and repository-template body are deliberate and complete.
  3. Link the open PRs in bottom-to-top order: gh stack link --base <trunk> <bottom-pr> <...> <top-pr>. Pass PR numbers or URLs. Omit --open unless the user requested ready PRs.
  4. Verify each direct base with gh pr view <pr> --json number,baseRefName,headRefName,isDraft,state,url.
  5. Verify remote stack membership with gh api repos/{owner}/{repo}/pulls/<pr> --jq '.stack', then inspect the reported stack using gh api repos/{owner}/{repo}/stacks/<stack-number> and confirm its trunk and exact bottom-to-top PR order. gh stack view reflects local tracking and is not sufficient verification after gh stack link.

For every intentionally independent PR opened alongside stacked work, target the trunk, do not pass it to gh stack link, and verify that its remote .stack value is null.

PR Body

Use this repository's template headings exactly:

  • Problem: Lead with intent. Explain the maintainer or user pain, why the change is needed, what context led to it, and any issue links. This is the highest-priority section of the PR body.
  • Solution: Describe the high-level design, important boundaries, tradeoffs, and what reviewers should inspect.
  • Architecture: Use this subsection under Solution to describe the ownership model and major components involved in the solution. For nontrivial control flow or cross-boundary changes, include a Mermaid diagram or equivalent sketch that shows how the pieces interact.
  • Verification: Summarize automated tests, manual checks, benchmarks, or why a check was not run.
  • Correctness properties: List invariants, contracts, expected behaviors, and compatibility constraints preserved or introduced.
  • Testing: List exact commands/workflows and their results.

Keep the title concrete and behavior-oriented. Avoid generic titles such as "Update files" or "Fix tests."

VibeSys Review Notes

  • Mention changes to external contracts: manifests, metadata, feature flags, CLI flags, evaluator interfaces, model-serving example bundle shape, prompt output, or skill routing.
  • For prompt changes, include the snapshot diff or state that snapshots were not applicable.
  • For config, metadata, feature flags, and persisted state, verify both valid input and failure cases when touched.
  • For resources/skills/serving-systems/, confirm the subtree authoring guide was followed.
  • Do not include unrelated refactors, broad cleanup, or reverted user work in the PR.

Handoff

End with the PR URL, draft/ready status, branch name, commit hash, and verification run. If any check was skipped or failed, state that plainly with the reason. For stacked work, also report the stack number and PR order. For independent work created alongside a stack, state that remote stack membership is absent.

版本历史

  • 83e011e 当前 2026-09-03 00:32

    新增支持使用原生 GitHub 堆栈处理依赖 PR 的功能。

  • a24830d 2026-07-19 14:14

同 Skill 集合

.agents/skills/create-issue/SKILL.md
.agents/skills/review-pr/SKILL.md
.agents/skills/vs-init/SKILL.md
resources/skills/microservice-optimization/SKILL.md
resources/skills/neuron-agentic-development/skills/neuron-nki-debugging/SKILL.md
resources/skills/neuron-agentic-development/skills/neuron-nki-docs/SKILL.md
resources/skills/neuron-agentic-development/skills/neuron-nki-profiling/SKILL.md
resources/skills/serving-systems/SKILL.md
.agents/skills/tui-bug-hunt/SKILL.md
.agents/skills/vs-meta-opt/SKILL.md
resources/skills/neuron-agentic-development/skills/neuron-nki-profile-querying/SKILL.md
resources/skills/neuron-agentic-development/skills/neuron-nki-writing/SKILL.md

元信息

文件数
0
版本
83e011e
Hash
d60aae88
收录时间
2026-07-19 14:14

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-03 19:10
浙ICP备14020137号-1 $访客地图$