avalonia-zafiro-development – skill Thiết kế & UI cho agent AI
Kỹ năng bắt buộc, quy ước và quy tắc hành vi khi phát triển Avalonia UI với bộ công cụ Zafiro.
Cài skill avalonia-zafiro-development bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/avalonia-zafiro-development-b5888.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /avalonia-zafiro-development – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/avalonia-zafiro-development-b5888.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $avalonia-zafiro-development – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/avalonia-zafiro-development-b5888.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /avalonia-zafiro-development – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/avalonia-zafiro-development-b5888.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /avalonia-zafiro-development – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Avalonia Zafiro Development
This skill defines the mandatory conventions and behavioral rules for developing cross-platform applications with Avalonia UI and the Zafiro toolkit. These rules prioritize maintainability, correctness, and a functional-reactive approach.
Core Pillars
1. Functional-Reactive MVVM: Pure MVVM logic using DynamicData and ReactiveUI.
2. Safety & Predictability: Explicit error handling with Result types and avoidance of exceptions for flow control.
3. Cross-Platform Excellence: Strictly Avalonia-independent ViewModels and composition-over-inheritance.
4. Zafiro First: Leverage existing Zafiro abstractions and helpers to avoid redundancy.
Guides
- [Core Technical Skills & Architecture](core-technical-skills.md): Fundamental skills and architectural principles.
- [Naming & Coding Standards](naming-standards.md): Rules for naming, fields, and error handling.
- [Avalonia, Zafiro & Reactive Rules](avalonia-reactive-rules.md): Specific guidelines for UI, Zafiro integration, and DynamicData pipelines.
- [Zafiro Shortcuts](zafiro-shortcuts.md): Concise mappings for common Rx/Zafiro operations.
- [Common Patterns](patterns.md): Advanced patterns like
RefreshableCollectionand Validation.
Compatibility and validation
These are project/toolkit conventions, not universal .NET rules; follow the actual repository’s requirements and pinned Zafiro/ReactiveUI/DynamicData APIs. Verify shortcut semantics (especially null/empty/whitespace distinctions) instead of assuming table equivalence. Validate the collection’s intended empty/all-valid behavior: filtering valid items then testing non-empty does not prove every item is valid. Preserve cancellation, UI-thread scheduling and disposal ownership when adapting reactive examples.
Procedure Before Writing Code
1. Search First: Search the codebase for similar implementations or existing Zafiro helpers.
2. Reusable Extensions: If a helper is missing, propose a new reusable extension method instead of inlining complex logic.
3. Reactive Pipelines: Ensure DynamicData operators are used instead of plain Rx where applicable.
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.
Skill liên quan
- offers – Khi người dùng muốn thiết kế, xây dựng hoặc cải thiện một offer — thứ họ thực sự bán —…
- interaction-design – Thiết kế và triển khai microinteraction, motion design, hiệu ứng chuyển cảnh và các mẫu…
- commercial-policy – Dùng khi thiết kế hoặc chỉnh sửa chính sách thương mại của công ty — các quy tắc tham…
- hunt-nextjs – Săn lỗ hổng đặc thù Next.js: thực thi hàm tùy ý qua Server Actions, vượt qua xác thực…
- gitnexus-explorer – Chạy giao diện web tương tác để khám phá đồ thị tri thức của codebase.
- kpi-dashboard-design – Thiết kế dashboard KPI hiệu quả với lựa chọn chỉ số, thực hành trực quan hóa tốt nhất và…
- confluence-expert – Chuyên gia Atlassian Confluence để tạo và quản lý space, knowledge base và tài liệu. Cấu…
- coo-advisor – Lãnh đạo vận hành cho công ty đang mở rộng. Thiết kế quy trình, thực thi OKR, nhịp vận…