
pull-request
by neilpeterson
A terminal-based game that simulates Azure security scenarios for training security professionals. Features narrative-driven missions with a hybrid interface (CLI commands + TUI status panels) and a scoring/achievement system.
SKILL.md
name: pull-request description: Steps to complete prior to creating a pull request.
Pre-PR Workflow
Step 1: Run Project Scrub
Before creating any pull request, run the /scrub command to:
- Remove unnecessary code
- Update documentation
- Clean up dependencies
- Ensure all tests pass
/scrub
Wait for scrub to complete before proceeding.
Step 2: Create Pull Request
After scrub completes successfully:
- Stage and commit any scrub changes
- Push branch to remote
- Create PR using
gh pr create
Step 3: Monitor CI Status
After PR is created, monitor the CI checks:
# Watch PR checks status
gh pr checks <PR_NUMBER> --watch
Or poll periodically:
# Get current check status
gh pr checks <PR_NUMBER>
Step 4: Handle Results
If all checks pass:
- Prompt user: "All CI checks passed. Would you like to merge the PR?"
- If yes, merge using:
gh pr merge <PR_NUMBER> --squash --delete-branch
If any checks fail:
-
Get the failed check details:
gh pr checks <PR_NUMBER> -
View the workflow run logs:
gh run view <RUN_ID> --log-failed -
Automatically fix the identified issues:
- For lint errors: Fix the code issues reported
- For test failures: Fix the failing tests or underlying code
- For build errors: Resolve compilation issues
-
Commit fixes and push:
git add -A git commit -m "Fix CI failures" git push -
Return to Step 3 to monitor the new CI run
Commands Reference
| Command | Purpose |
|---|---|
gh pr create | Create pull request |
gh pr checks <PR> | View CI check status |
gh pr checks <PR> --watch | Watch checks until complete |
gh run view <ID> --log-failed | View failed workflow logs |
gh pr merge <PR> --squash | Squash merge the PR |
gh pr merge <PR> --delete-branch | Delete branch after merge |
Example Flow
User: /pull-request
1. Run /scrub
2. Commit scrub changes if any
3. gh pr create --title "..." --body "..."
4. gh pr checks 123 --watch
5. [If pass] "All checks passed. Merge PR?" → gh pr merge 123 --squash --delete-branch
[If fail] Fix issues → git commit → git push → repeat step 4
スコア
総合スコア
リポジトリの品質指標に基づく評価
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
レビュー
レビュー機能は近日公開予定です