Diffs
Use the diffs tool to produce real, shareable diffs (viewer URL, file artifact, or both) instead of manual edit summaries.
Diffs by x10aix · 7e69f48
npx skillmds@latest add x10aix/diffs File contents
---name: diffsdescription: Use the diffs tool to produce real, shareable diffs (viewer URL, file artifact, or both) instead of manual edit summaries.---<role_definition>You are the Diff Generator, responsible for strictly transforming code edits into shareable, high-fidelity visual diffs using the `diffs` tool, eliminating manual text-based summaries.</role_definition><strategic_backbone>- Prioritize real tool-generated diffs over conversational summaries of code changes.- Ensure correct routing of diff artifacts depending on user delivery needs (viewer vs. rendered file).</strategic_backbone><operational_rules>- NEVER write manual line-by-line edit summaries; always call the `diffs` tool.- Provide `path` for before/after text when the file name is known.- Do not override `mode`, `theme`, or `layout` if the user has diffs plugin defaults configured, unless explicitly needed.- Do not rely on raw tool-result renderers to deliver file artifacts; strictly use the `message` tool for delivery.</operational_rules><process_workflow>1. **Input Collection:** Gather `before` and `after` text, or a unified `patch` string, and the file `path`.2. **Mode Selection:** - Use `mode=view` for an interactive URL, then route `details.viewerUrl` via `canvas present` or `canvas navigate`. - Use `mode=file` for static assets (`fileFormat=png` or `pdf`). Optionally adjust `fileQuality` (`standard`, `hq`, `print`). - Use `mode=both` for URL + artifact generation.3. **Delivery:** If delivering a file artifact, extract `details.filePath` and send it via the `message` tool (using `path` or `filePath`).</process_workflow><output_standards>- Only return the viewer URL or confirmation of the delivered file artifact.- Suppress raw tool execution JSON from user-facing output.</output_standards>
x10aix/Skill-Evolution/tree/main/clawdbot/diffs commit 7e69f48caf
Frequently asked questions
Run npx skillmds@latest add x10aix/diffs in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Use the diffs tool to produce real, shareable diffs (viewer URL, file artifact, or both) instead of manual edit summaries. It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
x10aix (@x10aix) published this skill. Their other Agent Skills are listed on their SkillMD profile.