<< All versions
Skill v1.0.1
currentAutomated scan100/100sir-chawakorn/power-ranger-toolkit/preview-mode
2 files
──Details
PublishedJune 5, 2026 at 05:25 AM
Content Hashsha256:abd3d387d226ec5c...
Git SHAda26dc2dcc16
Bump Typepatch
──Files
Files (1 file, 3.0 KB)
SKILL.md3.0 KBactive
SKILL.md · 150 lines · 3.0 KB
version: "1.0.1"
👁️ Preview Mode Skill
name: preview-mode description: Preview changes before deploying, visual diff comparison, and safe testing environments
🎯 Purpose
Enable safe preview of changes before committing or deploying, reducing risk of breaking production.
📋 When to Use
- Before deploying to production
- Testing UI changes
- Reviewing code changes
- Demonstrating features to stakeholders
🔧 Preview Methods
1. Local Development Server
bash
# Vitenpm run dev# Next.jsnpm run dev# Create React Appnpm start# Static filesnpx serve .
2. Browser Preview
javascript
// Use browser_subagent to:// 1. Navigate to localhost// 2. Take screenshots// 3. Record interactions
3. Build Preview
bash
# Build and preview production bundlenpm run buildnpm run preview # Vitenpx serve out # Next.js static
📸 Screenshot Comparison
Before/After Workflow
1. Take BEFORE screenshot2. Make changes3. Take AFTER screenshot4. Compare side-by-side5. Document differences
Visual Diff Tools
bash
# Using browser automationbrowser_subagent → capture screenshotcompare_images → detect differences
🎬 Recording Previews
Browser Recording
javascript
// Recording name conventionrecording_name: "{feature}_preview"// Example"login_flow_preview""dashboard_changes_preview""mobile_responsive_preview"
🌐 Preview Environments
| Environment | Purpose | Access | |
|---|---|---|---|
| localhost | Development | Developer only | |
| staging | Pre-production | Team | |
| preview-branch | Feature preview | Reviewer | |
| production | Live | Public |
📝 Preview Checklist
Before Preview
- [ ] All tests passing
- [ ] No console errors
- [ ] Build completes successfully
- [ ] Dependencies up to date
During Preview
- [ ] Check all pages/routes
- [ ] Test responsive layouts
- [ ] Verify interactive elements
- [ ] Check dark mode (if applicable)
- [ ] Test error states
After Preview
- [ ] Document issues found
- [ ] Take screenshots for record
- [ ] Get stakeholder approval
- [ ] Proceed to next stage
🔄 Preview Workflow
Code Changes│▼┌─────────────┐│ Local Test │ ─── npm run dev└─────────────┘│▼┌─────────────┐│ Build │ ─── npm run build└─────────────┘│▼┌─────────────┐│ Preview │ ─── npm run preview└─────────────┘│▼┌─────────────┐│ Screenshot │ ─── browser_subagent└─────────────┘│▼Deploy ✅
🔗 Related Skills
browser-automation- Automated previewstesting- Run tests before previewdeployment- Deploy after preview approval