hunk-review

Inspect live Hunk diff sessions and add inline review comments via CLI.

102|4|Updated Apr 15, 2009
One-click install
npx skills add https://github.com/mikker/dotfiles --skill hunk-review-mikker
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hunk-review
Source: https://github.com/mikker/dotfiles/tree/main/agents.symlink/skills/hunk-review
Command: npx skills add https://github.com/mikker/dotfiles --skill hunk-review-mikker

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Interacts with live Hunk diff review sessions via CLI. Inspects review focus, navigates files and hunks, reloads session contents, and adds inline review comments. Use when the user has a Hunk session running or wants to review diffs interactively.

Core Features & Use Cases

  • Inspect live sessions with commands like hunk session list, get, context, and review to understand the current state of diffs.
  • Navigate to specific files and hunks using hunk session navigate with --repo, --file, and --hunk/--old-line/--new-line.
  • Reload a session to swap contents or load a new patch or show command via hunk session reload.
  • Add and apply inline comments with hunk session comment add and comment apply to document reviews, or manage existing comments with list and rm.
  • Guiding a review: narrate and steer the user through the diffs, focusing on what's important and summarizing after actions.

Quick Start

Launch Hunk in your terminal and run hunk session review --repo . to inspect the active session and begin reviewing.

Frequently Asked Questions about hunk-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I navigate and review diff hunks from the command line?

You can navigate diff hunks via CLI by running hunk session navigate with --repo, --file, and --hunk or --old-line/--new-line flags to target specific code sections during live reviews.

What is an interactive hunk review session and when do I need it?

A hunk review session is a live CLI process for inspecting diffs, navigating files, and adding inline comments. Use it when you need to steer interactive code reviews dynamically.

How do I add inline comments to a live diff session?

Add inline comments to a live diff session using hunk session comment add. You can manage existing comments with list and rm, or apply review feedback with comment apply.

Do I need a running daemon to inspect live diff sessions?

Yes, you need the Hunk CLI installed and access to a running daemon to interact with live sessions, inspect diffs, navigate files, and apply comments during reviews.

Can I reload a session to load a new patch or show command?

Yes, you can reload a session to swap contents or load a new patch and show command via hunk session reload, updating the active diff context during a review.

How do I check the current focus and state of a diff review?

Check the current focus and state of a diff review using hunk session list, get, context, and review commands to inspect active sessions and understand open diffs.