/lotwell:lotwell-interactive-diff-reviewfrom Luke's skills
Open a deterministic, interactive side-by-side review for an explicitly targeted Git diff and persist the owner's anchored Comments to JSON. Use when the user asks to see, inspect, or comment on a product diff, selected files, or a base-to-candidate change without unrelated generated artifacts.
Ships in Luke's skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Render only the requested Git change, keep every selected file in one continuous review page, and return the owner's Comments through a local JSON artifact. The owner's message—such as “I'm done; please look”—is the completion signal.
Identify:
Ask for a missing base or candidate. Preserve explicit paths exactly. With no paths, the launcher selects changed product files and omits lockfiles, evidence, and generated goldens. Include those artifacts only when the owner explicitly targets them.
The launcher validates the repository, resolves both revisions to commits, verifies every requested path at either revision, and generates the authoritative patch with git diff --no-ext-diff. It never writes to the reviewed repository.
Use the launcher arguments below. On macOS, launch through launchctl as described immediately after the command; elsewhere, use a persistent foreground command session:
node /absolute/path/to/interactive-diff-review/scripts/review.mjs \
--repo /absolute/path/to/repository \
--base BASE_REVISION \
--candidate CANDIDATE_REVISION \
--path path/to/first-file \
--path path/to/second-file
On macOS, use the built-in supervisor directly so the review survives the tool call. Resolve Node's absolute executable path and the launcher's real path first (a symlinked launcher can silently exit). Choose a fresh UUID for each review and substitute literal paths and the same UUID into this command:
/bin/launchctl submit -l com.owner-operator.review.diff.UUID \
-o /tmp/oo-review-diff-UUID.stdout.log \
-e /tmp/oo-review-diff-UUID.stderr.log \
-- /absolute/path/to/node /real/path/to/interactive-diff-review/scripts/review.mjs LAUNCHER_ARGUMENTS
Replace LAUNCHER_ARGUMENTS with the arguments above, quoting paths with spaces. Invoke this directly, not through nohup, env, or bash -c: those wrappers force fresh confirmation in OO's permission gate. Do not change permission settings or broaden a rule to make a launch pass; the owner's existing allow rule is specific to the installed Node and launcher paths.
Read the stdout log for the printed URL and JSON: path; check stderr on failure. In a subsequent tool call, verify the URL responds and /bin/launchctl list com.owner-operator.review.diff.UUID reports a live PID before reporting success. Record the exact job label with the artifact paths. Use a separate UUID for concurrent reviews; never replace another review job. After reading the owner's Comments, stop only this job with /bin/launchctl remove com.owner-operator.review.diff.UUID; retain the review artifacts.
Omit --path for the filtered product-file default. Repeat it for every explicit file or directory. Add --output-dir /absolute/path only when the owner explicitly chose a durable or reusable location; otherwise the launcher creates a temporary review directory outside the repository. Use --no-open only when browser launch is unavailable or the owner asks not to open it.
The launcher binds to 127.0.0.1 on OS-assigned port 0, prints the assigned URL, and opens it as a dedicated browser artifact. Report the printed JSON: filesystem path to the owner exactly. Keep the supervised job (or non-macOS foreground session) alive while they review.
The page stacks all files and hunks in one scroll. The owner ranks diff width and line totals above revisions, so full revisions stay under Details, and the viewer keeps its own assets/review.css apart from lotwell-html-theme. The owner can highlight changed text on either side, add a nearby Comment, then Edit or Delete it. Every mutation atomically autosaves the minimal review schema to review.json; refreshing the page reloads it.
Internal anchors retain old/new side and structural selectors, while visible labels use file:line. Added lines and +N stay green; deleted lines and −N stay red. The page intentionally has no workflow states, Finish button, or raw-state panel.
When the owner says they are done, read the printed JSON path. Treat each entry in comments as owner feedback, including its file, line range, selected text, and Comment. A stale: true entry means the launcher could not reliably relocate that anchor; surface the uncertainty instead of silently applying it elsewhere.
After reading the artifact, remove the recorded launchctl job; outside macOS, send Ctrl-C to the foreground launcher session. Verify it stopped. Generate Markdown from the JSON only when useful; JSON remains the persistence source of truth.
To reload after the candidate changes, launch again with the new candidate and the same explicit --output-dir. Exact anchors are retained, uniquely moved anchors are relocated by their text/context selectors, and unreliable anchors are marked stale.
README.md (opens in a new tab)agents/openai.yaml (opens in a new tab)assets/review-client.js (opens in a new tab)assets/review.css (opens in a new tab)scripts/review.mjs (opens in a new tab)test/browser.test.mjs (opens in a new tab)test/cli.test.mjs (opens in a new tab)test/diff.test.mjs (opens in a new tab)test/html.test.mjs (opens in a new tab)test/server.test.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub lhotwll217/skills --plugin lotwell17 skills in this plugin
/lotwell-agent-handoffDraft or lint work sent to another agent or session. Use before delegation and when reviewing an existing handoff./lotwell-alignAlign before starting work, at a handoff, or when a correction or reframe changes the agreement./lotwell-ask-the-right-questionsFind the few questions that matter most about a problem before anyone answers it./lotwell-current-system-auditAudit the current implementation, dependency source, behavior, tests, and history before proposing work; produce an evidence-backed safe-to-build-on verdict and the smallest justified change. Use when a request may rest on stale premises, duplicate an existing mechanism, or extend an unsound local design./lotwell-html-themeLuke's house theme for generated HTML. Use whenever generating an HTML page, artifact, report, dashboard, mockup, or review UI for Luke, or when another skill produces styled HTML output./lotwell-interactive-html-reviewReview a rendered HTML page on desktop or phone. Anchor comments to text, elements, or screenshots.