pr

GitHub

在 Claude Code 中自动化创建 GitHub PR,包含提交检查、PR 描述生成及 URL 返回。自动请求 Claude 和 Codex 审查,并启动轮询机制等待反馈,最终展示审查结果供用户决策。

.agents/skills/pr/SKILL.md n0an/VivaDicta

Trigger Scenarios

需要创建代码合并请求时 希望自动获取 AI 助手对 PR 的审查意见时

Install

npx skills add n0an/VivaDicta --skill pr -g -y
More Options

Non-standard path

npx skills add https://github.com/n0an/VivaDicta/tree/main/.agents/skills/pr -g -y

Use without installing

npx skills use n0an/VivaDicta@pr

指定 Agent (Claude Code)

npx skills add n0an/VivaDicta --skill pr -a claude-code -g -y

安装 repo 全部 skill

npx skills add n0an/VivaDicta --all -g -y

预览 repo 内 skill

npx skills add n0an/VivaDicta --list

SKILL.md

Frontmatter
{
    "name": "pr",
    "description": "Create a GitHub Pull Request in Claude Code with Claude and Codex review requests and built-in polling workflow",
    "disable-model-invocation": true
}

pr

You are given the following context: $ARGUMENTS

Task: Create a GitHub Pull Request in Claude Code

This skill is the Claude Code-specific PR workflow. In Codex, use $prcdx instead.

Based on the provided context, create a pull request following these steps:

  1. First, check the current git status and uncommitted changes
  2. If there are uncommitted changes, ask if they should be committed first
  3. Ensure the current branch is not main/master
  4. Push the current branch to remote if needed
  5. Create the pull request using gh pr create with:
    • A clear, descriptive title
    • A comprehensive description including:
      • Summary of changes
      • Testing performed
      • Any breaking changes or notes
  6. Return the PR URL when complete

IMPORTANT: Final Summary

ALWAYS end your response with a clear summary that includes:

  • What was done (branch created, commits made, etc.)
  • The PR URL (e.g., "PR #123: https://github.com/owner/repo/pull/123")
  • Whether Claude review was requested
  • Whether Codex review was requested
  • The PR is ready for review

Format the PR link prominently so it's easy to find.

If no arguments are provided, create a PR with auto-generated title and description based on the commit history.

Use appropriate flags like --draft if the PR is work in progress.

Post-PR: Request Review and Poll

After the PR is created, always do the following (skip only if the user explicitly says not to):

  1. Request reviews by posting two comments on the PR:
    gh pr comment <PR_NUMBER> --body "@claude please review this PR"
    gh pr comment <PR_NUMBER> --body "@codex please review this PR"
    
  2. Start polling for Claude and Codex review using /loop 2m to check PR comments, PR reviews, and inline review comments every 2 minutes:
    gh pr view <PR_NUMBER> --json comments,reviews,url
    gh api repos/<owner>/<repo>/issues/<PR_NUMBER>/comments
    gh api repos/<owner>/<repo>/pulls/<PR_NUMBER>/comments
    
  3. Do not stop polling just because Claude replied first. Codex review usually takes longer.
  4. Keep polling until you see a real Codex comment or review, not just "in progress" status, or until a reasonable bounded wait expires.
  5. Show the returned review feedback to the user and ask "WDYT?" to discuss the findings before acting on them. If Claude replied but Codex has not yet replied, say that Codex review is still pending and keep polling until the bounded wait is reached.

IMPORTANT: Review Inspection Hygiene

When checking review feedback, do not rely only on top-level PR reviews or summary comments.

  • Always inspect inline review comments / file-level threads too.
  • A generic top-level review body can still coexist with actionable inline comments.
  • Inline comments may be attached to an older reviewed commit on the same branch and still be worth evaluating.
  • Before dismissing a review as empty or boilerplate, check:
    • issue comments
    • PR reviews
    • pull request review comments / inline comments

Suggested extra check:

gh api repos/<owner>/<repo>/pulls/<PR_NUMBER>/comments

Handling Review Feedback

  • Real critical bugs (regressions, data loss, crashes, security issues): fix them immediately without asking.
  • Everything else (style, theoretical issues, nice-to-haves, non-critical improvements): present to the user with your assessment and ask before fixing.

Merge Requests

If the user explicitly says merge, do not wait for CI to finish.

  • Merge the PR immediately using a regular merge commit.
  • Do not block on pending checks unless the user explicitly asks to wait.
  • If you see ongoing GitHub Actions build jobs for that PR or branch, submit a cancel request after merging instead of leaving them running.
  • Do not wait for GitHub to confirm the cancellation. One cancel request is enough unless the user explicitly asks you to verify.
  • Right after the merge, switch the local repository back to main.

Post-Merge: Update What's New

After the PR is merged, update the running What's New file in the Obsidian vault:

  • File: Projects/VivaDicta/what's new/whats-new-running.md in the vault at /Users/antonnovoselov/Library/Mobile Documents/iCloud~md~obsidian/Documents/Second Brain Vault/
  • Skip if the PR is a one-liner simple fix, bug fix, refactor, or minor cleanup that users wouldn't notice.
  • Add a concise, user-facing bullet point when the PR introduces a new feature or notable improvement. Write it from the user's perspective (what they can now do), not technical details. This file feeds into App Store Connect "What's New" release notes.

Version History

  • c5601d4 Current 2026-07-25 08:15

Same Skill Collection

.agents/skills/analyze-unrecognized-apps/SKILL.md
.agents/skills/app-container-group/SKILL.md
.agents/skills/app-container/SKILL.md
.agents/skills/asc-aso-audit/SKILL.md
.agents/skills/asc-aso-rankings/SKILL.md
.agents/skills/asc-localize-metadata/SKILL.md
.agents/skills/asc-metadata-sync/SKILL.md
.agents/skills/asc-release-flow/SKILL.md
.agents/skills/asc-whats-new-writer/SKILL.md
.agents/skills/axe-simulator-control/SKILL.md
.agents/skills/coverage-report/SKILL.md
.agents/skills/diagram/SKILL.md
.agents/skills/ios-log-capture/SKILL.md
.agents/skills/ios-simulator-skill/SKILL.md
.agents/skills/krankie-audit/SKILL.md
.agents/skills/krankie-rankings/SKILL.md
.agents/skills/loc-report/SKILL.md
.agents/skills/prcdx/SKILL.md
.agents/skills/release-prepare/SKILL.md
.agents/skills/screenshot/SKILL.md
.agents/skills/simulator-screenshot-time/SKILL.md
.agents/skills/spm-build-analysis/SKILL.md
.agents/skills/start-logs-device-structured/SKILL.md
.agents/skills/start-logs-device/SKILL.md
.agents/skills/start-logs/SKILL.md
.agents/skills/stop-logs-device-structured/SKILL.md
.agents/skills/stop-logs-device/SKILL.md
.agents/skills/stop-logs/SKILL.md
.agents/skills/swift-concurrency-pro/SKILL.md
.agents/skills/swift-testing-pro/SKILL.md
.agents/skills/swiftdata-pro/SKILL.md
.agents/skills/swiftui-liquid-glass/SKILL.md
.agents/skills/swiftui-performance-audit/SKILL.md
.agents/skills/swiftui-pro/SKILL.md
.agents/skills/xcode-build-benchmark/SKILL.md
.agents/skills/xcode-build-fixer/SKILL.md
.agents/skills/xcode-build-orchestrator/SKILL.md
.agents/skills/xcode-compilation-analyzer/SKILL.md
.agents/skills/xcode-project-analyzer/SKILL.md
.agents/skills/xcodebuild-testing/SKILL.md
.agents/skills/commit-push/SKILL.md

Metadata

Files
0
Version
fbf9c91
Hash
fad0b23b
Indexed
2026-07-25 08:15

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 13:39
浙ICP备14020137号-1 $방문자$