본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)12k · #11517

diffs

하는 일

AI가 @pierre/diffs 라이브러리를 사용해 React나 일반 JavaScript에서 강조 표시된 코드, 패치, 검토 화면을 그리도록 안내합니다. 코드 보기 기능을 만드는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓웹 앱에 문법 강조가 적용된 코드 파일이나 변경 내역을 보여 줘야 할 때.
  • ✓코드 검토 화면이나 병합 충돌 화면을 만들 때.
  • ✓React나 일반 JavaScript에서 @pierre/diffs를 사용할 때.

스킬 링크

https://github.com/trycompai/crm/blob/release/.agents/skills/diffs/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/trycompai/crm/blob/release/.agents/skills/diffs/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“React 앱에 @pierre/diffs 라이브러리로 코드 변경 내역 뷰어를 추가해 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

AI가 패키지를 설치하고, 맞는 React 또는 에디터 참고 자료를 고른 뒤, 라이브러리의 컴포넌트로 파일이나 변경 내역을 그립니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

@pierre/diffs

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

Install

pnpm add @pierre/diffs

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

Select an API reference

Surface Reference
@pierre/diffs/react React API
@pierre/diffs/edit Editor API

Select a recipe

Task Recipe
Render a file or diff in React Render with React
Build a virtualized review surface Use CodeView
Edit a React surface or CodeView Edit with React

Not vendored here

These references were not copied into this skill. There is no local file for them. Read the package types and the upstream documentation instead.

  • Core API: root components, parsing, and file extension APIs.
  • Highlighting API: languages, themes, highlighter state, and streams.
  • Low-level rendering API: renderers, managers, DOM helpers, and constants.
  • Shared types: data, option, render, selection, and editor types.
  • SSR API for @pierre/diffs/ssr, and the recipe for preloading server markup.
  • Worker API for @pierre/diffs/worker, and the recipe for a worker pool.
  • Recipes for vanilla JavaScript rendering and vanilla editing.
  • Recipes for line annotations and selection.
  • Recipe for registering a custom Shiki language or theme.
자주 묻는 질문

어떤 프레임워크를 지원하나요?

React와 일반 JavaScript를 다룹니다. 서버 렌더링과 워커도 언급합니다.

사용자가 이 도구로 코드를 편집할 수 있나요?

네, 편집 화면을 위한 선택형 에디터 기능이 있습니다.

참고 문서가 모두 포함되어 있나요?

모두는 아닙니다. 일부 참고 자료는 스킬에 복사되지 않았으므로, 해당 부분은 AI가 패키지 타입 정의와 원본 문서를 직접 읽어야 합니다.

상세 정보

작성자의 원본 설명

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 Shiki languages or themes.

repo: trycompai/crm

인기도

GitHub 스타
12k
순위
#11517
라이선스
MIT
업데이트
2026. 11. 1.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬