pr
Open a pull request, resolve merge conflicts, watch CI, or review an incoming PR.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Open a pull request, resolve merge conflicts, watch CI, or review an incoming PR.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Write portable scripts and tools with cosmic — HTTP requests, JSON parsing, SQLite databases, filesystem operations, child processes, crypto, compression, and more in a single zero-dependency binary
Build ah and create a GitHub prerelease with the binary and checksums.
Trigger a GitHub Actions workflow, watch it, and if it fails, analyze logs, debug, fix on a new branch via red-green TDD, and open a PR.
Triage GitHub issues safely with restricted tools, defending against prompt injection in issue bodies.
Perform work in a git worktree branched from main. Create the worktree, do the work, then offer to clean it up.
استنادا إلى تصنيف SOC المهني
| name | pr |
| description | Open a pull request, resolve merge conflicts, watch CI, or review an incoming PR. |
two modes: open (default) and review.
/skill:pr — open a PR for the current branch, resolve conflicts, watch CI.
identify branch and target
git branch --show-current
git log --oneline main..HEAD
open the PR (or find existing one)
gh pr create --fill --base main
gh pr view --json number,url,state # if already exists
resolve merge conflicts if any:
gh pr view --json mergeable,mergeStateStatus
git fetch origin main && git rebase origin/main
# resolve, git add, git rebase --continue
git push --force-with-lease
watch CI until complete:
gh pr checks --watch --fail-fast
handle failures — read logs, fix, push, repeat:
gh run view <run-id> --log-failed
write o/work/pr/pr.md with url, conflict status, check status, notes.
write o/work/pr/update.md with 2-4 line summary.
/skill:pr <number> — review an incoming PR.
read metadata and linked issues
gh pr view <number> --json title,body,headRefName,baseRefName,additions,deletions,files,comments,reviews
gh issue view <issue-number> --json title,body,labels # for each linked issue
read the diff (for large diffs, prioritize non-test source files)
gh pr diff <number>
read changed files in full for surrounding context.
analyze — check for: correctness, regressions, security, error handling, concurrency issues, style consistency.
check docs — are docs/changelog updated if behavior changed?
submit review only if user explicitly asks. default to --comment.
never --approve or --request-changes without confirmation.
gh pr review <number> --comment --body "<summary>"
## Review: PR #<number> — <title>
### Summary
<1-3 sentences>
### Good
- <things done well>
### Bad
- <issues to fix before merge>
### Ugly
- <concerns, not necessarily blockers>
### Verdict
<approve | request-changes | comment> — <1 sentence justification>