avalonia-layout-zafiro
यह क्या करती है
यह गाइड Avalonia ऐप्स के लिए अच्छे और आसानी से संभलने वाले यूज़र इंटरफ़ेस बनाना सिखाता है। इसमें स्मार्ट कॉम्पोनेंट्स और साझा स्टाइल्स के इस्तेमाल पर ज़ोर है, ताकि दोहराव कम हो और कोड सरल बने।
कब इस्तेमाल करें
- ✓नया Avalonia प्रोजेक्ट शुरू करते समय, जब आप अच्छा ढाँचा चाहते हों।
- ✓जब आपको ऐप की विज़ुअल स्टाइल्स को व्यवस्थित या बेहतर करना हो।
- ✓जब किसी स्क्रीन का लेआउट व्यवस्थित करने में दिक्कत आ रही हो।
Skill का लिंक
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/avalonia-layout-zafiro/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मैं अपने Avalonia ऐप की विज़ुअल स्टाइल्स को कैसे व्यवस्थित करूँ ताकि उन्हें आसानी से दोबारा इस्तेमाल किया जा सके?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
AI Avalonia में लेआउट व्यवस्थित करने के निर्देश पढ़ता है, और खास तौर पर तैयार कॉम्पोनेंट्स और साझा स्टाइल्स पर ध्यान देता है। यह कोड के दोहराव से बचता है और बताता है कि स्क्रीन को सबसे अच्छे तरीके से कैसे ढाला जाए।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Avalonia Layout with Zafiro.Avalonia
Master modern, clean, and maintainable Avalonia UI layouts. Focus on semantic containers, shared styles, and minimal XAML.
🎯 Selective Reading Rule
Read ONLY files relevant to the layout challenge!
📑 Content Map
| File | Description | When to Read |
|---|---|---|
themes.md |
Theme organization and shared styles | Setting up or refining app themes |
containers.md |
Semantic containers (HeaderedContainer, EdgePanel, Card) |
Structuring views and layouts |
icons.md |
Icon usage with IconExtension and IconOptions |
Adding and customizing icons |
behaviors.md |
Xaml.Interaction.Behaviors and avoiding Converters |
Implementing complex interactions |
components.md |
Generic components and avoiding nesting | Creating reusable UI elements |
🔗 Related Project (Exemplary Implementation)
For a real-world example, refer to the Angor project:
/mnt/fast/Repos/angor/src/Angor/Avalonia/Angor.Avalonia.sln
✅ Checklist for Clean Layouts
- Used semantic containers? (e.g.,
HeaderedContainerinstead ofBorderwith manual header) - Avoided redundant properties? Use shared styles in
axamlfiles. - Minimized nesting? Flatten layouts using
EdgePanelor generic components. - Icons via extension? Use
{Icon fa-name}andIconOptionsfor styling. - Behaviors over code-behind? Use
Interaction.Behaviorsfor UI-logic. - Avoided Converters? Prefer ViewModel properties or Behaviors unless necessary.
❌ Anti-Patterns
DON'T:
- Use hardcoded colors or sizes (literals) in views.
- Create deep nesting of
GridandStackPanel. - Repeat visual properties across multiple elements (use Styles).
- Use
IValueConverterfor simple logic that belongs in the ViewModel.
DO:
- Use
DynamicResourcefor colors and brushes. - Extract repeated layouts into generic components.
- Leverage
Zafiro.Avaloniaspecific panels likeEdgePanelfor common UI patterns.
When to Use
This skill is applicable to execute the workflow or actions described in the overview.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
अक्सर पूछे जाने वाले सवाल
'semantic containers' क्या हैं?
ये UI के ऐसे बिल्डिंग ब्लॉक्स हैं जिनका काम पहले से साफ़ होता है, जैसे हेडर या साइड पैनल। इससे आपको सामान्य एलिमेंट्स लेकर उन्हें हाथ से सेट नहीं करना पड़ता।
'redundant properties' से क्यों बचना चाहिए?
एक ही विज़ुअल सेटिंग (रंग, आकार) को कई जगह दोहराने से कोड बड़ा और उसे बदलना मुश्किल हो जाता है। साझा स्टाइल्स इस समस्या का हल हैं।
'anti-patterns' क्या हैं?
ये आम तरीके हैं जो सुनने में ठीक लगते हैं, लेकिन आगे चलकर दिक्कतें पैदा करते हैं, जैसे रखरखाव में परेशानी या परफ़ॉर्मेंस की समस्या। यह गाइड दिखाता है कि किन चीज़ों से बचना है।
जानकारी
लेखक का मूल विवरण
Guidelines for modern Avalonia UI layout using Zafiro.Avalonia, emphasizing shared styles, generic components, and avoiding XAML redundancy.
लोकप्रियता
- GitHub स्टार
- 48k
- रैंकिंग में स्थान
- #3846
- लाइसेंस
- MIT
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
00-andruia-consultant
48kआपके एजेंट को AI प्रोजेक्ट शुरू करने या उन्हें बेहतर बनाने में मदद करता है। यह code का विश्लेषण करता है, tools सुझाता है और स्पेनिश भाषा में action plan बनाता है।
007
48kआपका एजेंट security audit और threat modeling करता है। यह प्रोजेक्ट को हमलों और कमजोरियों से बचाने में काम आता है।
10-andruia-skill-smith
48kआपके एजेंट को AI tools बनाने या उन्हें बेहतर करने में मदद करता है। यह तय करता है कि tools कैसे काम करेंगे, documentation लिखता है और structure की जांच करता है।
20-andruia-niche-intelligence
48kआपका एजेंट किसी खास industry का summary बनाता है। भरोसेमंद स्रोतों की मदद से यह प्रोजेक्ट का संदर्भ, नियम, इस्तेमाल के तरीके और जोखिम समझने में मदद करता है।
मिलती-जुलती skills
canvas
394kयह आपके एजेंट को जुड़े Mac पैनल पर होस्टेड विज़ुअल विजेट दिखाने, पैनल छिपाने या उसे दूसरे पेज पर ले जाने देती है।
control-ui
394kयह आपके एजेंट को OpenClaw Control UI को व्यवस्थित करने और उसमें आने वाली दिक्कतें सुलझाने में मदद करती है, जिसमें सेशन, डैशबोर्ड और जुड़े Gateway शामिल हैं।
diagram-maker
394kयह आपके एजेंट को प्रक्रियाओं, सिस्टम आर्किटेक्चर और व्हाइटबोर्ड स्केच के लिए SVG, HTML या संपादन योग्य Excalidraw फ़ाइलों में साफ़ डायग्राम बनाने में मदद करती है।