원클릭으로
self-review
Perform a code review before creating a PR
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Perform a code review before creating a PR
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | self-review |
| description | Perform a code review before creating a PR |
Perform a code review for the current stash-plugins branch. Your job is to ensure code quality, identify potential bugs or improvements, and find gaps in test coverage.
git diff main...HEAD --stat
git diff main...HEAD
Review the diff to understand the scope and intent of the changes before running automated checks.
Based on which files changed, invoke the corresponding skills to have their guidelines in context during review. Check the diff stat and invoke all that apply:
| Files changed | Skill to invoke |
|---|---|
plugins/*/tag-manager.js or other frontend JS | web-design-guidelines |
plugins/*/*.py (Python backend) | python-fastapi |
plugins/*/tests/*.py (pytest) | None (follow existing patterns) |
Plugin manifests (*.yml) | stash-plugin-dev |
| GraphQL queries (in JS or Python) | graphql-patterns |
Invoke these skills using the Skill tool before proceeding to the code quality review. You don't need to invoke every skill — only those relevant to the diff.
Review the diff against these guidelines (supplemented by the skills invoked above):
escapeHtml() for all user-facing dynamic strings (XSS prevention).tm-* CSS class patterns for consistencytm-modal-backdrop > tm-modal structurestashapp-tools library patterns for Stash API accessvar(--bs-*)) not hardcoded colors (Stash uses Bootstrap)console.log statements (use console.debug for intentional logging)Run each JS test file and fix any failures:
for f in plugins/tagManager/tests/test_*.js; do
echo "--- Running $f ---"
node "$f"
echo
done
Expected: All tests pass
For Python tests (if changed):
cd plugins/tagManager && python -m pytest tests/ -v
Expected: All tests pass
Blocking (must fix before PR):
Should fix (fix now or create follow-up issue):
escapeHtml() on dynamic contentNote for later (document but don't block):
After all blocking issues are fixed, create a GitHub PR using superpowers:finishing-a-development-branch.