Build a selective diff staging view with Tailwind CSS: a file list sidebar with per-file changed-line counts, and a main pane rendering the unified diff with green added / red removed line backgrounds, split into hunks with a stage checkbox per hunk. Allow staging or discarding individual lines within a hunk, show staged hunks with a dimmed "staged" badge, and provide a summary bar (12 hunks, 5 staged) with stage-all and commit actions. Keep line numbers in a gutter column and make the whole view horizontally scrollable without breaking the gutter.
提示词保持英文原文——直接粘贴进 Claude、Cursor、v0 或任何 AI 编程工具即可使用。