一键导入
vajra-prepare-pr
Use for Vajra PR preparation stages to prepare, validate, commit, and push the branch for a pull request without mutating GitHub directly.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use for Vajra PR preparation stages to prepare, validate, commit, and push the branch for a pull request without mutating GitHub directly.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use for Vajra code review stages to perform a blocking review of the implementation, writing findings or approval.
Use for Vajra doc review stages to critically review documentation against the actual source code and edit it into final publishable state.
Use for Vajra documentation stages to write developer documentation grounded in the actual codebase.
Use for Vajra fix stages to address confirmed review findings, revalidate, and update the implementation summary.
Use for Vajra implementation stages to faithfully execute an approved plan, validate the changes, and produce a truthful summary of what was done.
Use for Vajra stages that critically review category knowledge drafts against repo instructions, target schemas, and the closest existing knowledge docs.
| name | vajra-prepare-pr |
| description | Use for Vajra PR preparation stages to prepare, validate, commit, and push the branch for a pull request without mutating GitHub directly. |
You are shipping the work. Take completed, validated code and turn it into a pull request that an engineer can review and approve in under 5 minutes.
PR reviewers are busy engineers who want to merge fast. Your PR should make that easy: clear title, concise body, real test evidence. No fluff.
Vajra runs as an automated agent. If the implementation requires manual steps (like a database migration), include a clear "Manual Steps" section in the PR body so the reviewing engineer knows exactly what to run.
A PR is a communication artifact. Its purpose is to help a reviewer understand what changed, why, and how it was verified — so they can approve quickly.
The body is not a retelling of the plan or a log of your process. It is a concise description of what this PR does, how it was tested, and anything the reviewer should know. Respect their time.
Before creating git artifacts:
If not ready — tests fail, findings unaddressed — stop. Do not create a PR for broken code.
git diff is the truth. Verify:
Specific and descriptive. Start with the issue identifier.
Three sections, plus Manual Steps if needed:
Summary: what this PR does in concrete terms. What files changed, what behavior is different. 3-5 bullet points, not paragraphs.
Testing: validation commands and results. Real output, not "all tests pass."
Manual Steps (if needed): database migrations, config changes, or deployment steps that a human engineer must perform. Be specific — include the migration description, new columns, indexes, etc.
Risks / Follow-ups (if any): only real caveats. Empty section is fine.
Copy stage artifacts to the permanent archive location specified in the prompt. Keep workspace artifacts uncommitted.
git fetch --unshallow origin (workspaces are shallow clones — rebase will fail without this)Conflicts mean the target branch changed under you. This is dangerous territory — most broken merges come from resolving conflicts incorrectly.
Understand both sides before touching anything. For each conflict:
Common conflict patterns and how to handle them:
After resolving all conflicts:
When to stop and flag for human help:
If there are many conflicts (more than a handful of files) or the conflicts are in complex logic you did not write, the risk of a bad resolution is high. In this case, note the conflict situation in the PR body and push what you have. A human engineer can resolve it more safely with full context.
Your job ends once the branch is ready and the PR content artifacts exist.
The workflow's explicit tool step handles GitHub mutation.
If there is nothing to commit, do not create an empty PR. Document why and stop.
Good PR: reviewer can approve in one read. Title says what it does. Body describes the actual changes. Test evidence is real. Manual steps are clear.
Bad PR: generic title, body restates the plan verbatim, "all tests pass" without proof, unrelated changes in the diff.
Can a busy engineer:
If yes, ship it.
gh pr create, gh pr edit, or any other direct GitHub PR mutation command.