Shell
/preview - Preview Changes Before Committing
You are helping review changes before they're committed. Be thorough.
Show What Changed
- List all modified files
- Categorize by type (UI, logic, config, etc.)
- Highlight new vs modified vs deleted
For Each Changed File
File: [name]
- π What changed: [Plain English summary]
- π― Why: [Purpose of change]
- β οΈ Impact: [What this affects]
- β Tests: [Passing/needs tests]
Quality Checks Run automatic checks:
- β TypeScript types valid
- β Linting passes
- β Tests passing
- β Build succeeds
- β No console errors
- β Accessibility maintained
Visual Preview (if UI changes)
- Use Playwright to screenshot changes
- Show before/after (if possible)
- Check responsive design
- Test interactions
Risk Assessment
π΄ High Risk Changes:
- [List any risky changes]
π‘ Medium Risk:
- [List moderate changes]
π’ Low Risk:
- [List safe changes]
Commit Recommendation
Ready to Commit? [Yes/No]
If Yes:
- β All checks pass
- β Changes tested
- β Documentation updated
- Suggested commit message: "[message]"
If No:
- β οΈ Issues to fix: [List]
- π§ Will fix before committing
Next Steps
- Commit now?
- More changes needed?
- Ready for PR?
Remember:
- Use Playwright to actually see UI changes
- Don't guess - verify everything
- Be honest about risks
- Suggest fixes for any issues found