Demo video
Regenerates the retrospect plugin demo GIF and updates README.md automatically. Use when the user types "/demo-video", "update the demo", "regenerate the demo video", "the demo is outdated", "take new screenshots", or "refresh the GIF". Always invoke this skill when asked to update or create the demo asset for the retrospect plugin.From its SKILL.md
npx -y skills add barnuri/retrospect-skill --skill demo-videoAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
11.4 KB, as published. Nobody here has run it
/demo-video — Regenerate the Demo GIF
Captures screenshots of every tab in the retrospect UI, assembles them into a GIF, and updates assets/demo.gif + the <!-- demo-gif --> block in README.md.
Prerequisites
ffmpegor ImageMagickconvertfor GIF assembly (check withwhich ffmpegandwhich convert)- Playwright MCP connected (the screenshots are taken through it)
- The retrospect plugin must be built:
bun run buildin the plugin root
Steps
Step 1 — Stop any running UI server
lsof -ti :3456 | xargs kill -9 2>/dev/null; echo "port clear"
Step 2 — Seed the fixture data
Write realistic .retrospect/ fixture files so every tab shows meaningful content. Use the fixtures defined below in the Fixture Data section. Create .retrospect/ if it doesn't exist.
Step 3 — Start the UI server
cd <plugin-root>
bun dist/ui-server.js &
sleep 2 # allow server to bind
Verify it responds: curl -s http://localhost:3456/api/overview | head -1
If the server doesn't respond in 5 seconds, check for build errors with bun run build.
Step 4 — Capture screenshots with Playwright
Resize the browser to 1280×800 before taking any screenshots.
Navigate to http://localhost:3456 and take one screenshot per tab. Use the sidebar nav buttons to switch tabs — click the button text, not an index. Save each screenshot to assets/screenshots/:
| Tab | Filename |
|---|---|
| Overview | assets/screenshots/01-overview.png |
| Learnings | assets/screenshots/02-learnings.png |
| Reflections | assets/screenshots/03-reflections.png |
| Evolution | assets/screenshots/04-evolution.png |
| Session | assets/screenshots/05-session.png |
| Applied | assets/screenshots/06-applied.png |
Wait 800ms after each tab click before capturing — the data polls on a short interval.
Step 5 — Anonymize private paths in screenshots
The UI sidebar shows the project directory path from process.cwd(), which will contain the real machine path (e.g. /Users/alice/work/my-project). Replace that row with just the project basename before assembling the GIF, so no machine-specific paths leak into published assets.
The sidebar path row is always at pixel coordinates x=8–200, y=135–151 in 1280×800 screenshots. The script covers it with the background color and redraws just the basename.
python3 << 'PYEOF'
import os
from PIL import Image, ImageDraw, ImageFont
ASSETS = 'assets/screenshots'
BG = (22, 27, 34) # UI dark background
FG = (97, 106, 115) # sidebar muted-text color
FONT = '/System/Library/Fonts/SFNS.ttf' # macOS SF; falls back on other systems
FONT_SZ = 11
X1, Y1, X2, Y2 = 8, 135, 200, 151 # sidebar path row bounds
label = os.path.basename(os.getcwd())
def load_font():
try: return ImageFont.truetype(FONT, FONT_SZ)
except: return ImageFont.load_default()
font = load_font()
for fname in sorted(os.listdir(ASSETS)):
if not fname.endswith('.png'): continue
fpath = os.path.join(ASSETS, fname)
img = Image.open(fpath).convert('RGB')
draw = ImageDraw.Draw(img)
draw.rectangle([X1-1, Y1-2, X2+2, Y2+2], fill=BG)
draw.text((X1, Y1), label, font=font, fill=FG)
img.save(fpath)
print(f' anonymized {fname}')
PYEOF
If pillow is not installed: pip3 install pillow
Step 6 — Assemble the GIF
Preferred: ffmpeg
ffmpeg -y -framerate 0.5 \
-pattern_type glob -i 'assets/screenshots/*.png' \
-vf "scale=1280:-1:flags=lanczos,fps=0.5" \
assets/demo.gif
Fallback: ImageMagick convert
convert -delay 200 -loop 0 \
assets/screenshots/01-overview.png \
assets/screenshots/02-learnings.png \
assets/screenshots/03-reflections.png \
assets/screenshots/04-evolution.png \
assets/screenshots/05-session.png \
assets/screenshots/06-applied.png \
assets/demo.gif
If neither is available, skip GIF assembly and tell the user — the screenshots in assets/screenshots/ are still useful as a static preview.
Step 7 — Update README.md
The README has a marker block:
<!-- demo-gif -->

<!-- /demo-gif -->
If the GIF was generated successfully, confirm the assets/demo.gif reference is still in place. If the file path changed, update the <img> tag between the markers.
Step 8 — Stop the server
lsof -ti :3456 | xargs kill -9 2>/dev/null; echo "done"
Fixture Data
Write these files to .retrospect/ in the current working directory (the repo where Claude is running — not the plugin directory itself). When running the demo inside the plugin repo, the plugin root is also the working directory.
memory-session.json
[
{
"id": "s1",
"timestamp": "2026-05-15T10:30:00Z",
"type": "trigger_phrase",
"content": "User said: 'you always forget to run tests before committing'",
"tags": ["session", "trigger"],
"confidence": 0.85,
"source": "before-command hook"
},
{
"id": "s2",
"timestamp": "2026-05-15T10:45:00Z",
"type": "file_edit",
"content": "Edited src/index.ts 4 times in this session",
"tags": ["session", "edit-frequency"],
"confidence": 0.7,
"source": "after-edit hook"
}
]
memory-user.json
[
{
"id": "u1",
"timestamp": "2026-05-14T09:00:00Z",
"type": "preference",
"content": "Always use guard clauses for early returns — avoid deep nesting",
"tags": ["style", "readability"],
"confidence": 0.92,
"source": "retrospect session 2026-05-14"
},
{
"id": "u2",
"timestamp": "2026-05-13T15:22:00Z",
"type": "preference",
"content": "Prefer explicit error messages over generic ones — include the offending value",
"tags": ["error-handling"],
"confidence": 0.88,
"source": "retrospect session 2026-05-13"
}
]
memory-repo.json
[
{
"id": "r1",
"timestamp": "2026-05-15T08:00:00Z",
"type": "convention",
"content": "Use .venv virtualenv — system Python (Homebrew) blocks pip install in this project",
"tags": ["python", "env"],
"confidence": 0.95,
"source": "retrospect --apply 2026-05-15"
},
{
"id": "r2",
"timestamp": "2026-05-12T11:00:00Z",
"type": "convention",
"content": "All API calls must include retry logic with exponential backoff",
"tags": ["api", "reliability"],
"confidence": 0.87,
"source": "retrospect session 2026-05-12"
}
]
memory-failure.json
[
{
"id": "f1",
"timestamp": "2026-05-14T14:00:00Z",
"type": "anti-pattern",
"content": "Generated async controller functions missing await on client method calls — template interpolation drops the annotation",
"tags": ["typescript", "async", "codegen"],
"confidence": 0.88,
"source": "retrospect --deep 2026-05-14"
},
{
"id": "f2",
"timestamp": "2026-05-11T16:30:00Z",
"type": "failure-pattern",
"content": "Forgot to handle the case where the API returns 429 — no retry header parsing",
"tags": ["api", "rate-limiting"],
"confidence": 0.82,
"source": "retrospect session 2026-05-11"
}
]
memory-meta.json
[
{
"id": "m1",
"timestamp": "2026-05-14T10:00:00Z",
"type": "workflow-pattern",
"content": "State machine nodes should catch exceptions internally and signal failure through state — not propagate exceptions to callers",
"tags": ["architecture", "state-machine", "error-handling"],
"confidence": 0.91,
"source": "retrospect --learn agents/ 2026-05-14"
}
]
memory-evolution.json
[
{
"id": "e1",
"timestamp": "2026-05-15T09:00:00Z",
"type": "evolution",
"content": "Added CLAUDE.md rule: 'use .venv virtualenv' — promoted from repo memory after 3 sessions",
"tags": ["evolution", "CLAUDE.md"],
"confidence": 0.95,
"source": "retrospect --apply"
}
]
reflections.json
[
{
"id": "refl-1",
"timestamp": "2026-05-14T14:30:00Z",
"task": "Generate TypeScript controller from OpenAPI spec",
"failure": "Async functions missing await — 3 occurrences across controller files",
"correction": "Check template interpolations for dropped await annotations before writing output",
"rootCause": "Template literal interpolation silently drops async annotations on method calls",
"pattern": "async/await in code generation templates",
"proposedRule": "Generated controller functions that call async client methods must always await the result",
"confidence": 0.88,
"generalityScope": "repo",
"recurrenceCount": 3
}
]
session-summary.json
{
"generatedAt": "2026-05-15T11:00:00Z",
"repository": "retrospect-skill",
"triggerPhrases": 1,
"fileEdits": 7,
"toolErrors": 0,
"totalEvents": 8,
"lastEventAt": "2026-05-15T10:55:00Z"
}
events.log (newline-delimited JSON)
{"type":"file_edit","file":"mcp/memory-engine.ts","timestamp":"2026-05-15T10:20:00Z"}
{"type":"file_edit","file":"ui/src/components/Learnings.tsx","timestamp":"2026-05-15T10:25:00Z"}
{"type":"trigger_phrase_detected","trigger_phrases":["you always forget"],"prompt_snippet":"you always forget to run tests","timestamp":"2026-05-15T10:30:00Z"}
{"type":"file_edit","file":"skills/retrospect/SKILL.md","timestamp":"2026-05-15T10:40:00Z"}
{"type":"file_edit","file":"hooks/after-edit.ts","timestamp":"2026-05-15T10:42:00Z"}
{"type":"file_edit","file":"README.md","timestamp":"2026-05-15T10:50:00Z"}
applied.json
[
{
"id": "ap1",
"timestamp": "2026-05-15T09:05:00Z",
"type": "file_patch",
"target": "CLAUDE.md",
"summary": "Added: 'Use .venv virtualenv — system Python blocks pip install'",
"confidence": 0.95,
"content": "## Environment\n- Always use `.venv/bin/python`. The system Python (Homebrew) blocks `pip install`."
},
{
"id": "ap2",
"timestamp": "2026-05-14T14:35:00Z",
"type": "memory_write",
"target": "failure",
"summary": "Stored: async/await missing in generated controller templates",
"confidence": 0.88,
"content": "Generated async controller functions missing await on client method calls — template interpolation drops the annotation"
},
{
"id": "ap3",
"timestamp": "2026-05-13T16:00:00Z",
"type": "file_patch",
"target": "skills/check-alerts/SKILL.md",
"summary": "Expanded trigger description to cover paraphrase queries",
"confidence": 0.86,
"content": "Added trigger phrases: 'check for alerts', 'active warnings', 'safety status', 'any alerts in <city>'"
}
]