/cldiff:resolve [all | <file-path> | <comment-id>]from cldiff
Read review comments from .cldiff/comments.jsonl and resolve them by implementing the requested changes.
Ships in cldiff. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are resolving inline review comments left in a TUI diff viewer. Comments are anchored to a specific file and line number.
.cldiff/comments.jsonl in the repo root. This is a JSONL file (one JSON object per line)."status": "created".Based on $ARGUMENTS:
"status": "created" comments.src/cli.tsx): Only process comments matching that file.For each unresolved comment in scope:
line number (show ~5 lines of surrounding context).Group comments by file so related changes are visible together.
For each comment, assess whether it's actionable:
Actionable — The comment clearly describes a code change (refactor, fix, rename, add, remove, etc.). Proceed to implement.
Unclear / Needs Info — The comment is ambiguous, a question, or too vague to act on (e.g. "hey", "test", "k", single characters). Flag these back to the user:
Too Complex — The comment requests a large change that touches many files or requires architectural decisions. Flag these back:
For each actionable comment:
bun run typecheck to validate.If a change breaks typecheck, fix it before moving on.
After successfully implementing a comment:
.cldiff/comments.jsonl (re-read to avoid stale data). Parse each line as a separate JSON object."status": "resolved" for each comment that was implemented..cldiff/comments.jsonl (one JSON object per line, newline-terminated).Do NOT mark unclear/skipped comments as resolved.
Print a final report:
.cldiff/comments.jsonl before writing to avoid overwriting concurrent changes from the TUI.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub max-taylor/cldiff --plugin cldiff