मुख्य सामग्री पर जाएँ
Skillpedia
वेबसाइट और UI (frontend)12k · #11517

diffs

यह क्या करती है

यह AI को React या सादा JavaScript में @pierre/diffs लाइब्रेरी से हाइलाइट किए कोड, पैच और रिव्यू स्क्रीन बनाने के चरण समझाती है। यह कोड दिखाने वाले फ़ीचर बनाने वाले डेवलपर्स के लिए है।

कब इस्तेमाल करें

  • ✓जब आपके वेब ऐप को सिंटैक्स हाइलाइट के साथ कोड फ़ाइलें या बदलाव दिखाने हों।
  • ✓जब आप कोड रिव्यू स्क्रीन या मर्ज कॉन्फ़्लिक्ट व्यू बनाते हैं।
  • ✓जब आप React या सादा JavaScript में @pierre/diffs इस्तेमाल करते हैं।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/trycompai/crm/blob/release/.agents/skills/diffs/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“क्या आप मेरे React ऐप में @pierre/diffs लाइब्रेरी से कोड डिफ़ व्यूअर जोड़ सकते हैं?”

हर हफ़्ते 5 नई skills, 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
अपडेट की गई
1/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

ai-elements

12k

यह आपके एजेंट को बातचीत, संदेश, टूल डिस्प्ले और प्रॉम्प्ट इनपुट के लिए तैयार कॉम्पोनेंट से AI चैट इंटरफ़ेस बनाने में मदद करती है।

कोडिंगवेबसाइट और UI (frontend)

ai-sdk

12k

यह आपके एजेंट को Vercel AI SDK से AI फ़ीचर बनाने में मदद करती है, जिसमें टेक्स्ट जनरेशन, स्ट्रीमिंग, टूल कॉलिंग और एजेंट शामिल हैं।

AI और एजेंटएजेंट

better-accessibility

12k

यह आपके एजेंट को इंटरफ़ेस को कीबोर्ड और स्क्रीन रीडर के लिए उपयोगी बनाने में मदद करती है, जिसमें फ़ोकस, लेबल, ARIA और फ़ॉर्म शामिल हैं।

डिज़ाइनइंटरफ़ेस (UI/UX)

better-auth-best-practices

12k

यह आपके एजेंट को TypeScript ऐप में लॉगिन, सेशन, OAuth और प्लगइन के लिए Better Auth सेट करने में मदद करती है, उसके दस्तावेज़ी चरणों के अनुसार।

कोडिंगसिक्योरिटी

मिलती-जुलती skills