Skip to content
Back to skills

Preview Mode

ASecurity

--- name: preview-mode description: Preview changes before deploying, visual diff comparison, and safe testing environments ---

  • 33 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added February 10, 2026
developmentjavascriptjavabashreactnextjstesting

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add lovedragonball/power-ranger-toolkit --skill preview-mode --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Preview Mode?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Preview Mode
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/lovedragonball-preview-mode/badge)](https://www.skillsdirectory.com/skills/lovedragonball-preview-mode)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# πŸ‘οΈ 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
# Vite
npm run dev

# Next.js
npm run dev

# Create React App
npm start

# Static files
npx 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 bundle
npm run build
npm run preview  # Vite
npx serve out    # Next.js static
```

## πŸ“Έ Screenshot Comparison

### Before/After Workflow
```
1. Take BEFORE screenshot
2. Make changes
3. Take AFTER screenshot
4. Compare side-by-side
5. Document differences
```

### Visual Diff Tools
```bash
# Using browser automation
browser_subagent β†’ capture screenshot
compare_images β†’ detect differences
```

## 🎬 Recording Previews

### Browser Recording
```javascript
// Recording name convention
recording_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 previews
- `testing` - Run tests before preview
- `deployment` - Deploy after preview approval

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…