一键导入
pr-automation
Automated PR review, fixing, CI monitoring, and merging with hybrid batch/individual strategy
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Automated PR review, fixing, CI monitoring, and merging with hybrid batch/individual strategy
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Test and validate Genkit AI flows with sample inputs
Generate Shadcn/ui components following project conventions
Implements top 3-5 priority GitHub issues in parallel using git worktrees and separate subagents, then creates PRs for each. Use when you want to tackle multiple issues simultaneously.
Analyzes open GitHub issues, prioritizes them by roadmap impact, determines parallel workability with git worktrees, and creates a plan to work on multiple issues simultaneously using sub-agents. Use when planning parallel development work.
基于 SOC 职业分类
| name | pr-automation |
| description | Automated PR review, fixing, CI monitoring, and merging with hybrid batch/individual strategy |
| disable-model-invocation | false |
| argument-hint | [--max-parallel N] [--dry-run] [--interactive] [--pr-filter LABEL] [--ci-timeout DURATION] [--confirm-merges] [--no-auto-merge] [--require-approval] |
| allowed-tools | Bash(gh *), Bash(git *), Skill(simplify), Task, TaskCreate, TaskUpdate, TaskList, TaskGet, Read, Write, Edit, Glob, Grep |
Automates the process of reviewing, fixing, CI monitoring, and merging pull requests in the Planar Nexus repository.
Process all open PRs:
/pr-automation
/pr-automation --max-parallel 5 --dry-run --interactive
/pr-automation --pr-filter "ready-for-merge" --max-age 7d
/pr-automation --ci-timeout 45m --ci-poll-interval 1m
/pr-automation --confirm-merges --no-auto-merge --require-approval
--pr-filter LABEL: Only process PRs with specific labels--max-age DURATION: Maximum age of PRs to process (e.g., 7d, 24h)--min-age DURATION: Minimum age of PRs to process--exclude-prs NUM1,NUM2: Comma-separated PR numbers to exclude--max-parallel N: Maximum number of PRs to process in parallel (default: 3)--batch-size N: Number of PRs per batch when splitting (default: 10)--no-batch: Skip batch processing, go directly to individual processing--fallback-threshold N: Number of batch failures before falling back (default: 3)--no-review: Skip code review step--no-simplify: Skip simplify skill, use only custom checks--review-depth LEVEL: Review depth (basic, standard, thorough)--ci-timeout DURATION: Maximum time to wait for CI (default: 30m)--ci-poll-interval DURATION: Polling interval for CI status (default: 30s)--required-jobs JOBS: Comma-separated CI job names to monitor (default: lint,typecheck,build)--no-auto-merge: Don't auto-merge, only prepare PRs--confirm-merges: Require confirmation before each merge--merge-method METHOD: Merge method (squash, merge, rebase - default: squash)--require-approval: Require PR approval before merging--dry-run: Simulate operations without making changes--interactive: Interactive mode with prompts--verbose: Verbose output--no-rollback: Disable rollback capability--force: Force operations despite warningsgh pr listBatch PR Attempt: Creates single batch PR with all changes
Individual Processing (fallback)
Monitors the following jobs from .github/workflows/ci.yml:
lint: ESLint code quality checkstypecheck: TypeScript type checkingbuild: Next.js build verificationPolls for completion with configurable intervals and timeouts.
Uses git merge --no-commit --no-ff to simulate merges and detect conflicts:
Uses the existing /simplify skill for code quality review:
Leverages gh command for all GitHub operations:
Implements four levels of error recovery:
The skill provides:
/pr-automation --dry-run --verbose
/pr-automation --pr-filter "automerge" --confirm-merges
/pr-automation --interactive --require-approval --ci-timeout 45m
/pr-automation --max-parallel 5 --batch-size 8 --verbose
Increase CI timeout if checks take longer than expected:
/pr-automation --ci-timeout 60m
If conflicts persist, use individual processing:
/pr-automation --no-batch --verbose
Skip simplify skill if it's causing issues:
/pr-automation --no-simplify
Ensure you have proper GitHub permissions and gh CLI is authenticated.