Chuyển đến nội dung
Skillpedia
Giao diện (UI/UX)48k · #3847

avalonia-viewmodels-zafiro

Skill này làm gì

Công cụ này giúp tổ chức và tạo các phần của ứng dụng desktop (gọi là ViewModel và Wizard) theo các mẫu được khuyến nghị. Nó đơn giản hóa việc xây dựng quy trình nhiều bước và điều hướng trong ứng dụng.

Khi nào nên dùng

  • ✓Khi bạn xây dựng một ứng dụng đồ họa mới.
  • ✓Khi bạn cần một quy trình nhiều bước, chẳng hạn trình cài đặt.
  • ✓Khi bạn muốn tổ chức mã ứng dụng tốt hơn.

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/avalonia-viewmodels-zafiro/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/avalonia-viewmodels-zafiro/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Làm thế nào để tạo trình hướng dẫn cài đặt cho ứng dụng của tôi theo các mẫu được khuyến nghị?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Nó dùng các thư viện như ReactiveUI và Zafiro để định nghĩa cách dữ liệu và hành động của người dùng kết nối với giao diện. Điều này cho phép các lệnh thông minh hơn và quy trình từng bước có tổ chức.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Avalonia ViewModels with Zafiro

This skill provides a set of best practices and patterns for creating ViewModels, Wizards, and managing navigation in Avalonia applications, leveraging the power of ReactiveUI and the Zafiro toolkit.

Core Principles

  1. Functional-Reactive Approach: Use ReactiveUI (ReactiveObject, WhenAnyValue, etc.) to handle state and logic.
  2. Enhanced Commands: Utilize IEnhancedCommand for better command management, including progress reporting and name/text attributes.
  3. Wizard Pattern: Implement complex flows using SlimWizard and WizardBuilder for a declarative and maintainable approach.
  4. Automatic Section Discovery: Use the [Section] attribute to register and discover UI sections automatically.
  5. Clean Composition: map ViewModels to Views using DataTypeViewLocator and manage dependencies in the CompositionRoot.

Guides

Example Reference

For real-world implementations, refer to the Angor project:

  • CreateProjectFlowV2.cs: Excellent example of complex Wizard building.
  • HomeViewModel.cs: Simple section ViewModel using functional-reactive commands.

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.
Câu hỏi thường gặp

ViewModel là gì?

Đó là một đoạn mã quản lý dữ liệu và logic cho một màn hình hoặc thành phần giao diện.

Wizard là gì?

Đó là chuỗi màn hình hoặc các bước hướng dẫn người dùng qua một quy trình, chẳng hạn cài đặt phần mềm.

ReactiveUI là gì?

Đó là thư viện giúp tạo giao diện người dùng phản hồi nhanh hơn và dễ quản lý hơn, theo phong cách lập trình phản ứng.

Chi tiết

Mô tả gốc của tác giả

Optimal ViewModel and Wizard creation patterns for Avalonia using Zafiro and ReactiveUI.

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#3847
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự