Agent Skill
2/7/2026

lgtm-context

Review Claude's last response in lgtm for line-by-line feedback

H
hapticdata
4GitHub Stars
1Views
npx skills add hapticdata/lgtm

SKILL.md

Namelgtm-context
DescriptionReview Claude's last response in lgtm for line-by-line feedback

name: lgtm-context description: Review Claude's last response in lgtm for line-by-line feedback allowed-tools: Bash(bun run *), Bash(bunx *), Bash(tmux *), Read

Open Claude's last response in lgtm so the user can review it with line-by-line commenting.

When to use

When the user wants to review your previous response and provide detailed feedback on specific parts.

Steps

  1. Run lgtm with the --context flag and export-on-quit. Check if ${CLAUDE_PLUGIN_ROOT}/node_modules exists to determine the run command:

    • If ${CLAUDE_PLUGIN_ROOT}/node_modules exists (local dev):
      bun run ${CLAUDE_PLUGIN_ROOT}/src/cli.ts --context --export-on-quit /tmp/lgtm-context-feedback.md
      
    • If node_modules does not exist (marketplace install):
      bunx @hapticdata/lgtm --context --export-on-quit /tmp/lgtm-context-feedback.md
      
  2. After the TUI exits, read the exported feedback file:

    Read /tmp/lgtm-context-feedback.md
    
  3. Present the user's feedback and address their comments.

Requirements

This skill requires the CLAUDE_SESSION_ID environment variable to be set, which Claude Code sets automatically.

Note: If the user has LGTM_TMUX=1 set, this will open in a tmux split. Otherwise it opens in the current terminal.

Skills Info
Original Name:lgtm-contextAuthor:hapticdata