بنقرة واحدة
submit-pr
Automated PR submission - runs pre-checks, creates PR, and starts review
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Automated PR submission - runs pre-checks, creates PR, and starts review
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Process autonomous task queue from do-work/ folder
Enter plan mode for complex tasks (pour energy into the plan for 1-shot implementation)
Initiate autonomous PR review process with Codex agent
Run comprehensive repo assessment with Codex (every 3 PRs)
Comprehensive security audit covering 10 threat categories
Install all automation for a new repo (git hooks + GitHub Actions)
| name | submit-pr |
| description | Automated PR submission - runs pre-checks, creates PR, and starts review |
Created: 2026-02-09-00-00 Last Updated: 2026-02-16-00-00
This command automates the entire PR submission process:
/submit-pr
Automatically runs quality checks:
/techdebt # Find and fix technical debt
/pre-pr-check # Comprehensive checklist
Checks include:
If any checks fail, process stops here.
IMPORTANT: Document what was checked and fixed:
## Pre-Review Checks Completed
### /techdebt Results
- Silenced lint errors: [found X, fixed X]
- Dead code: [found X, removed X]
- Code duplication: [found X, refactored X]
- Other issues: [list]
### /pre-pr-check Results
✅ All tests passing
✅ Documentation updated with timestamps
✅ Coach agent reviewed
✅ No critical issues
### Summary for Codex
This PR has been pre-screened with /techdebt and /pre-pr-check.
All technical debt addressed, tests passing, documentation current.
Save this to include with Codex review (Step 4).
Automatically creates PR with:
# Get current branch
BRANCH=$(git branch --show-current)
# Auto-generate PR title from branch name
TITLE=$(echo "$BRANCH" | sed 's/-/ /g' | sed 's/^./\u&/')
# Create PR with template
gh pr create \
--title "$TITLE" \
--body "$(cat <<EOF
## Summary
[Auto-generated - Codex will fill this in]
## Changes
$(git log main..HEAD --oneline)
## Testing
- [x] All tests passing
- [x] Coach agent reviewed
- [x] Documentation updated
## Documentation Updates
**Last Updated:** $(date +"%Y-%m-%d-%H-%M")
## Checklist
- [x] Pre-PR checks completed
- [x] Code tested
- [x] Docs updated with timestamps
- [x] Ready for Codex review
EOF
)"
PR_NUMBER=$(gh pr list --head "$BRANCH" --json number --jq '.[0].number')
# If your account is a bot (like `user-bot`, `user_bot`, or `user[bot]`),
# this maps to the human reviewer for review notification.
# If your bot account name is custom, either:
# - Pass explicit mapping:
# --reviewer "<your-human-name>"
# and optional --actor "<your-bot-name>"
# - Or set CROSSCHECK_BOT_HUMAN_REVIEWER/CROSSCHECK_BOT_ACTOR env vars.
bash scripts/request-pr-reviewer.sh --pr "$PR_NUMBER"
Follow the /pr-review skill for the review process. Include the pre-review results from Step 1.5 in the Codex prompt so the reviewer knows what was already checked.
The review loop (Codex feedback → assess → fix → re-review) is defined in /pr-review Steps 2-7. Do NOT merge unless Codex explicitly approves and specifies the merge destination.
After merge, the post-merge git hook automatically:
$(git rev-parse --git-common-dir)/hooks-pr-counter)# Just pull main -- the post-merge hook handles counter tracking
git checkout main && git pull
# If the hook says "Assessment waterfall due", run:
/repo-assessment
/bug-review
/security-review
# Return to roadmap
Developer finishes feature
↓
/submit-pr
↓
Pre-checks run automatically
↓
PR created automatically
↓
Codex review prompt provided
↓
[User runs Codex in new terminal]
↓
Codex ↔ Claude review loop
↓
Merge when approved
↓
PR counter auto-increments (post-merge hook)
↓
Assessment reminder if needed
↓
Return to roadmap
If pre-checks fail:
If PR creation fails:
If Codex review stalls:
Users can customize PR template by creating:
.codex/pr-template.md
This will be used instead of default template.