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.

查看源码

使用方法

  1. 复制安装命令,在自己的智能体环境安装前先检查源码包。
  2. 从原始文档核对所需工具、凭据和支持的宿主。
  3. 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/pierrecomputer/pierre --skill diffs

开始前需了解

  • 安装不包含模型订阅、API 额度或访问文件的权限。
  • 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
仓库原始内容

按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。

@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

按任务相关推荐

来自同一仓库

更多 Skills

全部 Skills