preview
/preview
Use when the user wants diff-before-apply discipline — show what would change, get approval, then apply. Risk-area enforcement. "Preview the change", "show before applying".
- Author
- ialameh ↗
- Repository
- sift-coder ↗
- Licence
- MIT
- Last repository change
- 03.06.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 03.06.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Use when the user wants diff-before-apply discipline — show what would change, get approval, then apply. Risk-area enforcement. "Preview the change", "show before applying".
Triggers from the description
Original author description
Use when the user wants diff-before-apply discipline — show what would change, get approval, then apply. Risk-area enforcement. "Preview the change", "show before applying".
How it works
- Method
- Output shape
- Rules
- Anti-patterns
- When NOT to use
- Subagent dispatch
- Value over native CC
SKILL.md preview
---
name: preview
description: Use when the user wants diff-before-apply discipline — show what would change, get approval, then apply. Risk-area enforcement. "Preview the change", "show before applying".
---
# preview
Diff-before-apply. AI proposes, user approves, AI applies. Distinct from `/pair` (which is per-step) — preview is per-change.
## Method
1. **Generate the change.** Plan the edits but **do not apply**.
2. **Diff.** Render the proposed diff in unified format. For multi-file changes, group by file.
3. **Surface risk axes** for the user:
- Files touched
- LOC delta
- Tests affected
- Public API changes
- Migration concerns
4. **Three options:** Accept, Edit, Reject.
5. **Apply** on accept. **Adjust** on edit (user types deltas; AI integrates). **Drop** on reject.
6. **Verify** post-apply: tests, lint, typecheck.
## Output shape
```
Proposed change: <one-line goal>
Diff:
--- src/foo.ts
+++ src/foo.ts
@@ -10,5 +10,8 @@
function foo(x: string) {
- return x.length;
+ if (!x) return 0;
+ return x.length;
}
--- tests/foo.test.ts
+++ tests/foo.test.ts
@@ ...
Risk:
Files: 2
LOC: +5 -1
Tests: 2 added
Public API: <none>
Migration: <none>
[accept | edit | reject]
```
## Rules
- **Don't apply silently.** Even on small changes, show diff first.
- **Risk axes mandatory.** Surface what could go wrong.
- **Edit mode is collaborative.** User types changes; AI integrates without re-proposing wholesale.
- **Verify post-apply.** Tests must stay green.
## Anti-patterns
- "Looks good?" without showing the diff
- Applying then asking "OK?" (defeats the point)
- Hiding risk axes
- Ignoring user's edits and re-proposing your own version
## When NOT to use
- Trivial change (one comment) — overkill
- User explicitly said "go" — they don't want preview
- High-trust autonomous mode — `/autonomous` (different discipline)
## Subagent dispatch
- None — preview is direct
- Optional: `Plan` if change is complex enough to need design first
## Value over native CC
CC defaults to applying when capable. Preview enforces the propose-before-apply contract. The discipline IS the value.
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · ialameh/sift-coder | 100 | MIT |
| windmill-labs/windmill | 100 | Apache-2.0 |
| lodev09/react-native-true-sheet | 100 | MIT |
| jisuzzzz/haechi | 100 | MIT |
| hanamizuki/solopreneur | 100 | MIT |
| jongwony/epistemic-protocols | 95 | MIT |
| SayandipBagchi/release-notes-plugin | 90 | MIT |
Database snapshot: 13.11.2026 · package version 37441d6356de (SHA-256 digest of the entire package)
Downloads in the last 30 days: 2 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100deployment
Ship a change to a real environment safely — decide what actually needs deploying, preview before applying, stop for explicit approval, order dependent steps correctly, verify after, and know how to roll back. Use for deployments, releases, infrastructure changes, database… - 100preview-manual-test
Discover, wait for, sign in, create specific user data, and assert a PR preview deploy. Use on medium or high risk PRs, after pushing a ready-for-review PR, or when the user asks to test the preview URL. - 95shipwright-preview
Start local dev server and show browser preview URL. Available after first build split.\nTRIGGER when: user wants to see the app, preview changes, check the UI, open the browser, show me the app, start the dev server, or view the running application.\nDO NOT TRIGGER when: user… - 86plan
Design an implementation plan before writing code — where the change lands, what it will touch, what could break, and the steps in order. Use when asked to plan a feature, scope a change, or figure out how to approach an edit before making it. To assess a change that already… - 100openspec-apply-change
Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through tasks. Also use when the user says "openspec apply", "opsx apply", or "openspec implement". - 100openspec-apply-change
Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through tasks. Also use when the user says "openspec apply", "opsx apply", or "openspec implement".