Skip to content
Skills Library
Programming · Review & audit

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".

Repository
sift-coder ↗
Licence
MIT
Last repository change
03.06.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 03.06.2026, without references to retired models or APIs.

Licence

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

Preview the changeshow before applying
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

  1. Method
  2. Output shape
  3. Rules
  4. Anti-patterns
  5. When NOT to use
  6. Subagent dispatch
  7. Value over native CC
Original SKILL.md headings · 77 lines, 300 words
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

RepositoryScoreLicence
This page · ialameh/sift-coder100MIT
windmill-labs/windmill100Apache-2.0
lodev09/react-native-true-sheet100MIT
jisuzzzz/haechi100MIT
hanamizuki/solopreneur100MIT
jongwony/epistemic-protocols95MIT
SayandipBagchi/release-notes-plugin90MIT

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".

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.