Diffity Diff
Developmentdiffity-diffDiffity Diff is an Agent Skill for development published in the nilbuild/diffity repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Open the diffity diff viewer in the browser to see your changes
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/nilbuild/diffity/blob/HEAD/packages/skills/diffity-diff/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/diffity-diff, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Diffity Diff Skill
You are opening the diffity diff viewer so the user can see their changes in the browser.
Arguments
ref(optional): Git ref to diff (e.g.main..feature,HEAD~3) or a GitHub PR URL (e.g.https://github.com/owner/repo/pull/123). Defaults to working tree changes.
Instructions
-
Check that
{{binary}}is available: runwhich {{binary}}. If not found, {{install_hint}}. -
Run
{{binary}} <ref>(or just{{binary}}if no ref) using the Bash tool withrun_in_background: true:- The CLI handles everything: if an instance is already running for this repo it reuses it and opens the browser, otherwise it starts a new server and opens the browser.
- Do NOT use
&or--quiet— let the Bash tool handle backgrounding.
-
Wait 2 seconds, then run
{{binary}} list --jsonto get the port. -
Tell the user diffity is running. Print the URL and keep it short — don't show session IDs, hashes, or other internals. Example:
Diffity is running at http://localhost:5391
When you're ready:
- Leave comments on the diff in your browser, then run {{slash}}resolve to fix them
- Or run {{slash}}review to get an AI code review