用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/jleechanorg/claude-commands --skill pr-automation-workflows命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | pr-automation-workflows |
| description | Reference the distinct PR automation cron workflows and their scopes. |
CRITICAL: There are FOUR distinct workflows, each running on separate cron schedules. They are NOT conditional branches - they are separate execution modes.
Cron: Every hour (0 * * * *)
Command: jleechanorg-pr-monitor --max-prs 10
What it does:
<!-- codex-automation-commit:SHA -->Scope: ALL open, non-draft PRs in the organization
Cron: Every 30 minutes (*/30 * * * *)
Command: jleechanorg-pr-monitor --comment-validation --max-prs 10
What it does:
@coderabbit-ai @greptileai @bugbot @copilot - asks bots to review<!-- comment-validation-request:SHA -->Scope: ALL open, non-draft PRs in the organization
Cron: Every 30 minutes (*/30 * * * *)
Command: jleechanorg-pr-monitor --fixpr --max-prs 10 --cli-agent gemini,cursor
What it does:
Scope: PRs with merge conflicts OR failing CI checks
Cron: Commented out
Command: jleechanorg-pr-monitor --fix-comment --cli-agent gemini,cursor --max-prs 3
What it does:
Scope: PRs with unaddressed review comments
Cron: Every hour at :15 (15 * * * *)
Command: jleechanorg-pr-monitor --codex-update
What: Runs Codex automation tasks (browser-based)
Cron: Every hour at :30 (30 * * * *)
Command: jleechanorg-pr-monitor --codex-api --codex-apply-and-push
What: Runs Codex automation via API (not browser)
| Workflow | Posts Comments? | Branch Filter? | Target PRs |
|---|---|---|---|
| Comment-only | Yes (Codex support) | NO - ALL PRs | All non-draft |
| Comment-validation | Yes (bot review) | NO - ALL PRs | All non-draft |
| Fixpr | No (fixes issues) | NO | PRs with conflicts/failing checks |
| Fix-comment | No (addresses comments) | NO | PRs with review comments |
❌ WRONG: "Comment-only mode should only post on Codex branches" ✅ RIGHT: "Comment-only mode posts on ALL non-draft PRs"
❌ WRONG: "Comment-validation is for non-Codex branches only" ✅ RIGHT: "Comment-validation is a separate cron job that runs on ALL non-draft PRs"
❌ WRONG: "Use branch name to decide which comment type to post" ✅ RIGHT: "The cron job determines the comment type (--comment-validation flag)"
The monitoring cycle code path (line 4003 in jleechanorg_pr_monitor.py):
if comment_validation:
# Post comment validation request (asks AI bots to review)
comment_result = self.post_comment_validation_request(repo_full_name, pr_number, pr)
else:
# Post codex instruction comment (asks Codex to code)
comment_result = self.post_codex_instruction_simple(repo_full_name, pr_number, pr)
The flag determines the comment type, NOT the branch name.
When automation (Codex) or the /copilot tool fixes PR comments, require URL tracking artifacts:
responses.json entries should include html_url for each processed comment.[codex-automation-commit] for automation system tasks.[copilot-commit] for /copilot tool executions.FIXEDCONSIDERED (ACKNOWLEDGED/DEFERRED/NOT_DONE)responses.json is missing URLs, backfill from comments.json by matching comment IDs in a type-safe way ((.id|tostring) == $id).This keeps both fix-comment/codex automation and manual /copilot workflows auditable and consistent with expectations.