بنقرة واحدة
create-pr
Create pull requests with conventional commits, proper formatting, and branch workflow
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Create pull requests with conventional commits, proper formatting, and branch workflow
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Step 2 — Architecture and domain design, one feature at a time
Step 1 — discover requirements through stakeholder interviews and write Gherkin acceptance criteria
Generate and update architecture diagrams, living glossary, and system overview from existing project docs
Enforce code quality using ruff, pytest coverage, and static type checking
Flow protocol — design and operate state machine workflows with FLOW.md + WORK.md
Create releases with hybrid major.minor.calver versioning and optional custom release naming
| name | create-pr |
| description | Create pull requests with conventional commits, proper formatting, and branch workflow |
| version | 1.0 |
| author | system-architect |
| audience | system-architect |
| workflow | git-management |
Load this skill after the system-architect approves the feature (Step 4 APPROVED) and the PO has accepted it (Step 5). Use it to create and merge the feature pull request.
feature/<feature-stem> # new feature
fix/<issue-description> # bug fix
refactor/<scope> # refactoring
docs/<scope> # documentation
chore/<scope> # tooling, deps, CI
<type>(<scope>): <description>
Types: feat, fix, test, refactor, chore, docs, perf, ci
Examples:
git commit -m "feat(auth): implement JWT token generation"
git commit -m "test(auth): add failing tests for token expiry"
git commit -m "fix(physics): correct ball velocity sign after wall bounce"
git commit -m "refactor(game-loop): extract timing logic to dedicated class"
git commit -m "chore(deps): add python-dotenv dependency"
# Push branch
git push -u origin feature/<feature-stem>
# Create PR
gh pr create \
--title "feat(<scope>): <description>" \
--body "$(cat <<'EOF'
## Summary
- <What this PR does in 1-3 bullet points>
## Acceptance Criteria
- [x] `@id:<hex>`: <description>
- [x] `@id:<hex>`: <description>
## Testing
- All tests pass: `task test`
- Linting clean: `task lint`
- Type checking clean: `task static-check`
- Application runs: `timeout 10s task run` (exit 124 = hung = fix it)
## Reviewer Notes
<Any context the system-architect needs>
EOF
)"
git rebase main)task lint exits 0task static-check exits 0task test exits 0, coverage passestimeout 10s task run exits with code ≠ 124@id acceptance criteriaUse --no-ff merge to preserve feature boundary in history. This makes the feature revertible as a single unit:
gh pr merge <number> --merge --delete-branch
After merge:
git checkout main
git pull origin main
Why not squash: Squash merge erases the individual commit history of the feature. With --no-ff, the merge commit groups all feature commits together while preserving each commit's message and authorship.