Skip to content
Back to skills

2478 2026 02 16 Update File Before After Separator Lane 0553d33c

ASecurity

Improved readability of `update_file` side-by-side diffs by adding a visible change lane (`-│`, `+│`, ` │`) and explicit `Before`/`After` captions.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
design

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 2478-2026-02-16-update-file-before-after-separator-lane_0553d33c --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 2478 2026 02 16 Update File Before After Separator Lane 0553d33c?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 2478 2026 02 16 Update File Before After Separator Lane 0553d33c
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-2478-2026-02-16-update-file-before-after-separator/badge)](https://www.skillsdirectory.com/skills/tools-only-2478-2026-02-16-update-file-before-after-separator)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
title: Update file side-by-side diff now has explicit before/after separation lane
type: delta
link: update-file-before-after-separator-lane
path: src/tunacode/ui/renderers/tools/update_file.py
depth: 0
seams: [A, M]
ontological_relations:
  - affects: [[ui]]
  - affects: [[tool-renderers]]
  - improves: [[update-file-diff-clarity]]
tags:
  - ui
  - diff
  - update_file
  - rendering
created_at: 2026-02-16T14:05:49-06:00
updated_at: 2026-02-16T14:05:49-06:00
uuid: 0291d339-2bd4-481b-bdda-c879e54447a4
---

# Update file side-by-side diff now has explicit before/after separation lane

## Summary

Improved readability of `update_file` side-by-side diffs by adding a visible change lane (`-│`, `+│`, ` │`) and explicit `Before`/`After` captions.

## Changes

- `src/tunacode/ui/renderers/tools/update_file.py`
  - Added symbolic constants for side-by-side layout widths and divider glyphs.
  - Changed middle diff column to a 2-character lane that combines change direction with a vertical separator.
  - Styled lane markers by direction (`delete` red, `insert` green, context dim).
  - Updated caption to: `Before: a/<file> │ After: b/<file>`.

- `tests/unit/ui/test_update_file_renderer.py`
  - Added assertion that rendered output includes:
    - `Before: a/file.py`
    - `After: b/file.py`
    - `-│` and `+│` markers

## Behavioral Impact

No tool contract changes. The renderer still parses unified diffs and retains unified-diff fallback when side-by-side parsing fails.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.