pierrecomputer/pierre

diffs

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.

Quelltext ansehen

Verwendung

  1. Installationsbefehl kopieren und das Quellpaket vor der Installation in der eigenen Agentenumgebung prüfen.
  2. Benötigte Werkzeuge, Zugangsdaten und Hosts im Original prüfen.
  3. Eingabe und gewünschtes Ergebnis beschreiben und die Ausgabe mit den Quellen abgleichen.
npx skills add https://github.com/pierrecomputer/pierre --skill diffs

Vor dem Start

  • Die Installation umfasst weder Modellabo noch API-Kontingent oder Dateizugriffsrechte.
  • Sterne und Installationen zeigen Aktivität, keine unabhängige Qualitäts- oder Sicherheitsprüfung.
Originales Skill-Dokument

Aus dem Quell-Repository gerendert; Überschriften, Beispiele, Code, Tabellen, Links und Bilder bleiben erhalten.

@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

bash
pnpm add @pierre/diffs

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

Select an API reference

SurfaceReference
Root components, parsing, and file extension APIsCore API
Languages, themes, highlighter state, and streamsHighlighting API
Renderers, managers, DOM helpers, comparisons, and constantsLow-level rendering API
Shared data, option, render, selection, and editor typesShared types
@pierre/diffs/reactReact API
@pierre/diffs/editEditor API
@pierre/diffs/ssrSSR API
@pierre/diffs/worker and worker scriptsWorker API

Select a recipe

TaskRecipe
Render a file or diff in ReactRender with React
Render a file or diff without ReactRender with vanilla JavaScript
Build a virtualized review surfaceUse CodeView
Edit a React surface or CodeViewEdit with React
Edit a vanilla surface or CodeViewEdit with vanilla JavaScript
Preload markup on the serverUse SSR
Highlight through a worker poolUse workers
Add line annotations and selectionAdd annotations and selection
Register a custom language or themeRegister custom highlighting

Verwandte Aufgaben

aus demselben Repository

Weitere Skills

Alle Skills