en un clic
self-review
Perform a code review before creating a PR
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Menu
Perform a code review before creating a PR
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Basé sur la classification professionnelle 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.