بنقرة واحدة
submit
Use when submitting code, creating a PR, pushing changes, or when user says "push it" or "ship it".
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Use when submitting code, creating a PR, pushing changes, or when user says "push it" or "ship it".
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
| name | submit |
| description | Use when submitting code, creating a PR, pushing changes, or when user says "push it" or "ship it". |
Complete code-to-PR workflow. Self-review, commit, push, and open a pull request.
git fetch origin
Check if the current branch has an open PR:
gh pr view --json state --jq '.state' 2>/dev/null
main, or on a stale branch whose PR was merged/closed) → stash uncommitted changes, create a new feature branch from origin/main, pop the stash, and delete the old branch if applicable.OLD_BRANCH=$(git branch --show-current)
git stash --include-untracked # if there are uncommitted changes
git checkout -b <type>/<description> origin/main
git stash pop # if stashed
# delete old branch only if it wasn't main
[[ "$OLD_BRANCH" != "main" ]] && git branch -D "$OLD_BRANCH"
Infer <type>/<description> from the current changes.
Run project-specific quality checks as defined in CLAUDE.md (lint, format, type-check, test, build).
If no project-specific checks are defined yet, skip this step.
Iterate until all checks pass. Fix issues before proceeding.
Review all changes thoroughly:
git diff
git diff --cached
Hygiene checks — remove:
.env content)print, console.log, debugger, println!, fmt.Println, etc.).env, credentials, large binaries)Code and logic review — verify:
If issues found, fix them and re-run Step 2.
Determine if docs need updating based on the changes:
README.md — project overview changesdocs/ — architecture, conventions, specsUpdate docs when changes affect: dependencies, directory structure, commands, workflows, architecture, or CI configuration.
Skip for purely internal changes. If docs were updated, re-run Step 2.
Stage relevant changes and commit:
git add <specific-files>
git commit -m "<type>: <description>"
Rules:
git add -A or git add .feat:, fix:, docs:, refactor:, test:, chore:Push the branch:
git push -u origin HEAD
If rejected (e.g., after amend or rebase):
git push --force-with-lease -u origin HEAD
Then check if a PR already exists (reuse result from Step 1):
gh pr create --title "<type>: <description>" --body "$(cat <<'EOF'
## Summary
<brief description of what and why>
## Changes
- <change 1>
- <change 2>
## Type of Change
- [ ] Bug fix
- [ ] New feature
- [ ] Refactor
- [ ] Documentation
- [ ] CI/Build
- [ ] Other
EOF
)"
gh pr checks --watch
If CI fails:
استنادا إلى تصنيف SOC المهني