Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

diffs

FreeNo executable scriptsNot checked

Use when an app uses @pierre/diffs to render or edit code files, diffs, patches, merge conflicts, or CodeView review surfaces, including React, vanilla…

pierrecomputerby pierrecomputer★ 6,715 GitHub stars

About this skill

@pierre/diffs

Use @pierre/diffs to render syntax-highlighted files and diffs. Use its optional editor, SSR, and worker entries for those capabilities.

For standalone HTML or token generation with @pierre/highlights, read the highlights skill.

Install

pnpm add @pierre/diffs

Install react and react-dom when the app uses the React entry.

Select an API reference

Surface Reference
Root components, parsing, and file extension APIs Core API
Languages, themes, highlighter state, and streams Highlighting API
Renderers, managers, DOM helpers, comparisons, and constants Low-level rendering API
Shared data, option, render, selection, and editor types Shared types
@pierre/diffs/react React API
@pierre/diffs/edit Editor API
@pierre/diffs/ssr SSR API
@pierre/diffs/worker and worker scripts Worker API

Select a recipe

Task Recipe
Render a file or diff in React Render with React
Render a file or diff without React Render with vanilla JavaScript
Build a virtualized review surface Use CodeView
Edit a React surface or CodeView Edit with React
Edit a vanilla surface or CodeView Edit with vanilla JavaScript
Preload markup on the server Use SSR
Highlight through a worker pool Use workers
Add line annotations and selection Add annotations and selection
Register a custom language or theme Register custom highlighting
Full SKILL.md on GitHub

Install diffs in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

references/api-core.mdreferences/api-editor.mdreferences/api-highlighting.mdreferences/api-react.mdreferences/api-rendering.mdreferences/api-ssr.mdreferences/api-types.mdreferences/api-worker.mdreferences/recipe-annotations.mdreferences/recipe-code-view.mdreferences/recipe-custom-highlighting.mdreferences/recipe-edit-react.mdreferences/recipe-edit-vanilla.mdreferences/recipe-react.mdreferences/recipe-ssr.mdreferences/recipe-vanilla.mdreferences/recipe-workers.md

FAQ

What does the diffs skill do?

Use when an app uses @pierre/diffs to render or edit code files, diffs, patches, merge conflicts, or CodeView review surfaces, including React, vanilla JavaScript, SSR, workers, annotations, selection, and custom syntax languages or themes.

How do I install the diffs skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the diffs skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare diffs with