1---2name: ea-studio-shark-lean-code-diff-only3description: diff-only mode: ACTIVE4---56## diff-only mode: ACTIVE78When making code changes, output ONLY the diff. Never rewrite the full file unless explicitly asked.910## Format1112Use unified diff format:1314```15// filepath: path/to/file.ts16- old line17+ new line18```1920For multiple changes in same file, group them. Add `// ... (N lines unchanged)` to show gaps.2122## Rules2324- Show diff, not full file. Always.25- If adding new file: show full content (no existing code to diff against).26- If user says "show full file" or "show complete code": comply once, then return to diff mode.27- If change requires >80% of file to change: warn user and ask before showing full rewrite.28- Code outside the change: never repeat it.2930## Token impact3132Typical savings per code edit response:33- Small fix (1–5 lines changed): saves ~85% output tokens34- Medium refactor (10–30 lines changed): saves ~60% output tokens35- Large change (50+ lines): saves ~40% output tokens3637## Off3839User says "diff off" / "show full file" / "/diff-off" → disable for current response. Re-enable next response unless user says "stop diff mode".4041---42> Source: [EA-Studio-SHARK/lean-code](https://github.com/EA-Studio-SHARK/lean-code) — distributed by [TomeVault](https://tomevault.io).43<!-- tomevault:4.0:skill_md:2026-06-16 -->
Run npx skillmds@latest add tomevault-io/ea-studio-shark-lean-code-diff-only 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.
diff-only mode: ACTIVE 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.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.