ui-component-patterns
بناء مكونات واجهة مستخدم قابلة لإعادة الاستخدام
تحتاج الفرق إلى مكونات واجهة مستخدم متسقة تظل سهلة إعادة الاستخدام والصيانة. تمنح هذه المهارة Claude وCodex وClaude Code أنماط React عملية لتصميم مكونات قابلة للتوسع.
自分のエージェントでインストール
このリクエストをエージェントにコピーしてください。正規の Skill ページとマニフェストが含まれています。
Review the Skillstore skill "ui-component-patterns" from https://skillstore.io/skills/supercent-io-ui-component-patterns.md and its manifest at https://skillstore.io/api/skills/supercent-io-ui-component-patterns/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.エージェントは引き続き計画を提示し、セキュリティポリシーで必要な確認を求める必要があります。
エージェントが読めるリソース
AI エージェント、クローラー、スクリプトがページ全体ではなく整理されたコンテキストを必要とする場合は、これらのリンクを使ってください。
テストする
「ui-component-patterns」を使用しています。 أنشئ مكون Button قابل لإعادة الاستخدام لثلاثة variants وحالة loading.
期待される結果:
API لـ props يتضمن variant وsize وdisabled وloading ومعالج الأحداث ونوع الزر الافتراضي وإرشادات إمكانية الوصول.
「ui-component-patterns」を使用しています。 أعد هيكلة بطاقة منتج تحتوي على header وimage وcontent وactions.
期待される結果:
بنية Card مركبة تحتوي على أجزاء منفصلة لـ header وbody وfooter مع إرشادات استخدام لشاشات المنتجات.
「ui-component-patterns」を使用しています。 حسّن dropdown يعرض تخطيطات عناصر مختلفة.
期待される結果:
تصميم render prop يقبل عناصر typed وعرضا مخصصا واستدعاءات اختيار وسلوكا قابلا للتوقع لحالة الفتح.
セキュリティ監査
安全All 37 static findings were adjudicated as false positives. External command hits are Markdown fences or TypeScript template literals, and URL or relative path hits are documentation links. No executable network, shell, file access, prompt injection, or data exfiltration intent was found.
リスク要因
⚙️ 外部コマンド (30)
🌐 ネットワークアクセス (5)
📁 ファイルシステムへのアクセス (2)
このレポートを共有・引用
バージョン付き評価レポート、中立的なバッジ、埋め込みカード、引用を共有できます。Skillstore は証拠を報告しますが、この Skill が安全かどうかは判断しません。
レポートリンクをコピー
https://skillstore.io/skills/supercent-io-ui-component-patterns/audits/4?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdownバッジ
[](https://skillstore.io/skills/supercent-io-ui-component-patterns?utm_source=security_passport_badge)HTMLバッジ
<a href="https://skillstore.io/skills/supercent-io-ui-component-patterns?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/supercent-io-ui-component-patterns/security.svg" alt="Skillstore security assessment" loading="lazy"></a>埋め込みカード
<iframe src="https://skillstore.io/embed/skills/supercent-io-ui-component-patterns.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学術引用 (APA · BibTeX · CFF)
APA形式の引用
supercent-io. (2026). ui-component-patterns security audit report (audit version 4) [Author version unspecified]. Skillstore. https://skillstore.io/skills/supercent-io-ui-component-patterns/audits/4BibTeX形式の引用
@techreport{supercent-io-supercent-io-ui-component-patterns-2026,
author = {supercent-io},
title = {ui-component-patterns security audit report (audit version 4)},
institution = {Skillstore},
year = {2026},
number = {4},
url = {https://skillstore.io/skills/supercent-io-ui-component-patterns/audits/4},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "ui-component-patterns security audit report (audit version 4)"
version: "unspecified"
type: report
authors:
- name: "supercent-io"
date-released: "2026-07-07"
url: "https://skillstore.io/skills/supercent-io-ui-component-patterns/audits/4"
identifiers:
- type: other
value: "skillstore:supercent-io-ui-component-patterns:audit:4"
description: "Skillstore immutable audit report identifier"
Skillstore スコア
このスコアの理由 証拠の信頼度: 高作成できるもの
إنشاء مكتبة مكونات مشتركة
تعريف أنماط Button وCard وModal وDropdown قابلة لإعادة الاستخدام مع props متسقة وتنظيم ملفات واضح.
توحيد تنفيذ نظام التصميم
تحويل design tokens وقواعد التفاعل إلى مكونات React قابلة للتوقع مع أنماط composition موثقة.
إعادة هيكلة كود واجهة المستخدم المتكرر
استخراج الشاشات المكررة إلى مكونات وhooks وأنماط compound قابلة لإعادة الاستخدام دون إخفاء السلوك المهم.
これらのプロンプトを試す
صمم API لمكون React Button قابل لإعادة الاستخدام لتطبيقي. ضمّن TypeScript props والقيم الافتراضية والvariants وملاحظات إمكانية الوصول.
راجع نمط واجهة المستخدم المتكرر هذا واقترح مكونات React قابلة لإعادة الاستخدام. اشرح props وحدود composition وهيكل الملفات.
خطط لعائلة مكونات React للبطاقات والعناوين والمتون والتذييلات. استخدم compound components وعقود TypeScript واضحة.
دقق بنية المكونات هذه من حيث تعقيد props وcomposition وإمكانية الوصول والأداء وقابلية الصيانة. أوصِ بتغييرات مرتبة حسب الأولوية.
ベストプラクティス
- ابدأ بأصغر API مستقر لـ props قبل إضافة variants أو escape hatches.
- استخدم composition لمرونة التخطيط وcustom hooks للسلوك المشترك.
- وثق الاستخدام المتوقع من خلال tests وstories وحالات إمكانية الوصول.
回避
- لا تضف الكثير من props غير المرتبطة لجعل مكون واحد يحل كل الحالات.
- لا تضع API calls أو قواعد عمل معقدة داخل مكونات عرضية.
- لا تحسن الأداء باستخدام memoization قبل قياس مشكلات التصيير الحقيقية.
よくある質問
ما أطر العمل التي تركز عليها هذه المهارة؟
هل يمكنها المساعدة في بناء نظام تصميم؟
هل تنشئ مكونات جاهزة للإنتاج؟
هل يمكنها مراجعة المكونات الحالية؟
هل تغطي إمكانية الوصول؟
هل هذا مفيد لـ Claude Code وCodex؟
開発者情報
作成者
supercent-ioライセンス
MIT
Skillstore リビジョン
r1
バージョンに関する注意
作者はバージョンを宣言していません。
リポジトリ
https://github.com/supercent-io/skills-template/tree/main/.agent-skills/ui-component-patterns/参照
36e07d5e13068e5be64447e8f20b427cf2cbd21a
メンテナンスの新しさ
2026/7/18
利用状況
16 ダウンロード · 157 閲覧
ファイル構成
📄 SKILL.md