Compare

From syedsaif666/LGTM · View interactive version

Compare is an AI agent skill from the GitHub repository syedsaif666/LGTM. Open two files side by side in VSCodium diff view. Use when comparing original vs modified, before vs after, or any two files.

How to use this skill

Skill file

Open a diff view in VSCodium comparing two files.

Steps

  1. Resolve paths. If two file paths are provided as arguments, use them. If a general description is provided (e.g. "cat", "original home.json vs humanized"), search the codebase to find the correct file paths. Use Glob to find matches.
  1. Validate both files exist. Use Bash ls to confirm both files are real. If either file does not exist, tell the user which file was not found and suggest alternatives from the same directory.
  1. Open diff. Run:
"/c/Program Files/VSCodium/bin/codium" --diff "<file1>" "<file2>"
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.