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 पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
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
कमेंट
- …
इस repository की और skills
ai-elements
12kयह आपके एजेंट को बातचीत, संदेश, टूल डिस्प्ले और प्रॉम्प्ट इनपुट के लिए तैयार कॉम्पोनेंट से AI चैट इंटरफ़ेस बनाने में मदद करती है।
ai-sdk
12kयह आपके एजेंट को Vercel AI SDK से AI फ़ीचर बनाने में मदद करती है, जिसमें टेक्स्ट जनरेशन, स्ट्रीमिंग, टूल कॉलिंग और एजेंट शामिल हैं।
better-accessibility
12kयह आपके एजेंट को इंटरफ़ेस को कीबोर्ड और स्क्रीन रीडर के लिए उपयोगी बनाने में मदद करती है, जिसमें फ़ोकस, लेबल, ARIA और फ़ॉर्म शामिल हैं।
better-auth-best-practices
12kयह आपके एजेंट को TypeScript ऐप में लॉगिन, सेशन, OAuth और प्लगइन के लिए Better Auth सेट करने में मदद करती है, उसके दस्तावेज़ी चरणों के अनुसार।
मिलती-जुलती skills
angular-developer
280kआपके एजेंट को Angular code बनाने और प्रोजेक्ट स्ट्रक्चर पर सलाह देने में मदद करता है। नए प्रोजेक्ट शुरू करने, code के हिस्से बनाने, या performance और accessibility सुधारने में उपयोगी है।
frontend-a11y
280kआपके एजेंट को web interfaces को सबके लिए accessible बनाने में मदद करता है। यह सुनिश्चित करता है कि websites और apps screen readers और keyboard navigation के साथ अच्छे से काम करें।
frontend-patterns
280kआपके एजेंट को React और Next.js में frontend development के modern patterns लागू करने में मदद करता है। यह performance optimize करता है, state manage करता है और best practices फॉलो करवाता है।