glimpse-changes
Skill904 starsChanged 4 months agoMITView on GitHub
Create a visual explanation of the current session diff as a single HTML page and show it in a native Glimpse window. Use when the user wants a visual walkthrough of local code changes instead of a plain text diff.
In this repository30 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .deepsec/AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- .opencode/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
- address-reviewSkill
- cli-developmentSkill
- erroreSkill
- external-electron-appsSkill
- fix-merge-conflictsSkill
- generate-specSkill
- generate-spec-v2Skill
- get-pr-reviewsSkill
- implement-specSkill
- improve-codebase-architectureSkill
- libretto-readonlySkill
- librettoSkill
- promptingSkill
- push-everythingSkill
- pushSkill
- reviewSkill
- spec-reviewSkill
- summarizeSkill
- technical-writingSkill
- turborepoSkill
- update-docsSkill
- writing-testsSkill
- libretto-readonlySkill
- librettoSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 7 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Use Glimpse to walk another developer through the code in the clearest order, not necessarily the order files appear in the diff.
- Distinctive: line 25
Start with a specific title.
- Distinctive: line 26
Add a brief summary of what changed.
- Very specific: line 28
Use prose between focused changes or diff blocks to explain intent, tradeoffs, and review risks.
- Very specific: line 30
Prefer a narrative that follows the user or developer flow: what someone sees or does, how the request/state/data moves through the system, …
- Distinctive: line 32
Write like a developer walking another developer through the change.
- Distinctive: line 126
Prefer piping markdown over stdin.
- Distinctive: line 159
Wait for the user to say they are finished.
- Very specific: line 162
Use --background only when an asynchronous workflow is useful.
- Very specific: line 174
Use changes fenced code blocks to show diffs for real files.
- Distinctive: line 195
Use one block for related files, or separate blocks with prose for a guided walkthrough:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Glimpse Changes
Render a Markdown walkthrough in a native Glimpse window with syntax-highlighted code and rich diff rendering.
Setup
npx glimpse-changes@1.9.5 --helpHow to write a useful walkthrough
Use Glimpse to walk another developer through the code in the clearest order, not necessarily the order files appear in the diff.
Aim for a short, reviewable document:
- Start with a specific title.
- Add a brief summary of what changed.
- Choose the walkthrough order that best explains the work.
- Use prose between focused
changesordiffblocks to explain intent, tradeoffs, and review risks.
Prefer a narrative that follows the user or developer flow: what someone sees or does, how the request/state/data moves through the system, then any supporting helpers, tests, docs, or cleanup. If another order is clearer, use that instead.
Write like a developer walking another developer through the change. Be direct and specific. Avoid dumping one large diff with a generic explanation. Prefer smaller, focused sections when they help the reader understand the code.
Good explanation style:
- "To keep the review focused on selected files, pass the filter through the renderer."
- "Add a fallback label so empty reviews still have a useful title."
- "The parser now keeps deleted files in the walkthrough so reviewers can see removals in context."
Template:
# <Title>
## Summary
- <User-visible or developer-visible effect>
- <Main code path changed>
- <Important review note, risk, or edge case>
## <First thing a reviewer should understand>
Explain the intent and what to look for.
```changes
path/to/relevant-file.ts:20-70
```
## <Next part of the flow>
Explain how this connects to the previous step.
```changes
path/to/another-file.ts:80-130
```
## <Supporting detail, test, or edge case>
Explain why this support code matters.
```changes
path/to/test-file.test.ts:50-100
```Example:
cat <<'EOF' | npx glimpse-changes@1.9.5 -
# Improve review flow messaging
## Summary
- make the default review flow easier for agents to follow
- document when to wait for the user versus using background mode
- keep the walkthrough focused on the interaction reviewers care about
## Open the review and wait for the user
To make review sessions easier to follow, tell agents to open Glimpse, ask the
user to inspect it, and wait until the user says they are done.
```changes
packages/glimpse-changes/skills/glimpse-changes/SKILL.md:120-145
```
EOFExample with an ad-hoc fenced diff block:
cat <<'EOF' | npx glimpse-changes@1.9.5 -
# New utility module
## Summary
- Added a helper for computing hashes
## Hash helper
```diff
+++ src/utils/hash.ts
+import { createHash } from "node:crypto";
+
+export function shortHash(input: string): string {
+ return createHash("sha256")
+ .update("example:" + input)
+ .digest("hex")
+ .slice(0, 12);
+}
```
EOFUsage
Prefer piping markdown over stdin. This avoids shell-quoting issues.
cat report.md | npx glimpse-changes@1.9.5
cat report.md | npx glimpse-changes@1.9.5 -
cat <<'EOF' | npx glimpse-changes@1.9.5 -
# Title
Content
EOFImportant: Do NOT escape backticks or dollar signs inside <<'EOF' heredocs.
The single-quoted delimiter already prevents shell expansion. Escaping backticks
will break fence detection and produce garbled output instead of rendered diffs.
You can still pass a single inline markdown argument for simple content:
npx glimpse-changes@1.9.5 "# Title\n\nContent"The CLI opens a Glimpse window and blocks until closed.
User review workflow
Glimpse can also collect review feedback from the user.
Default interactive flow:
- Render the walkthrough for the user.
- Tell the user to review it in Glimpse.
- Wait for the user to say they are finished.
- Then continue the task.
Use --background only when an asynchronous workflow is useful. In background
mode, the CLI prints a review file path. That file contains __PENDING__ until
the window is closed, then contains either the user's review text or a no-review
completion message.
npx glimpse-changes@1.9.5 --background "# Title\n\nContent"
# prints: Glimpse window opened. Read /tmp/glimpse-review-<id>.txt for user feedback.Changes blocks
Use changes fenced code blocks to show diffs for real files. List paths
relative to the working directory. The renderer resolves old and new contents
from git automatically.
Show full file diffs:
```changes
src/db/queries.ts
src/db/schema.ts
```Focus on a line range:
```changes
src/config.ts:42-50
```Use one block for related files, or separate blocks with prose for a guided walkthrough:
The query layer now batches reads before returning results:
```changes
src/db/queries.ts:30-95
```
The schema adds the index that makes those batched reads efficient:
```changes
src/db/schema.ts:12-28
```The renderer handles new files, deleted files, and modified files. If a file cannot be resolved, it shows an error inline.
Inline diffs
For ad-hoc illustrations not tied to real files, use diff fenced blocks with
literal +/-/ prefixed lines:
```diff
-removed line
+added line
context line
```You can also paste full unified diff output:
```diff
diff --git a/foo.txt b/foo.txt
--- a/foo.txt
+++ b/foo.txt
@@ -1,3 +1,3 @@
context
-old
+new
```Code blocks
Fenced code blocks with a language tag are syntax highlighted:
```js
const x = 1;
```Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

