Logo Harmonyos Dev

Harmonyos Dev

Cộng đồng
CoreyLyn
harmonyos-dev

Develop, debug, refactor, or design native HarmonyOS applications with ArkTS, ArkUI, Stage model, and HarmonyOS Kits. Use for HarmonyOS feature implementation, UI and state-management work, device adaptation, permissions, networking, persistence, API migration, build failures, and architecture decisions. Inspect an existing project before choosing APIs, derive its SDK and device constraints from repository configuration, and verify version-sensitive guidance against current official Huawei documentation. Use harmonyos-review instead when the primary request is a code audit.

Tổng quan

Nhà phát hànhCoreyLyn
Kho mãharmonyos-skills
Tên kỹ năngharmonyos-dev
Sao
32
Bản fork
2
Tệp đi kèm
7
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 7 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được CoreyLyn công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Harmonyos Dev trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/CoreyLyn/harmonyos-skills/tree/main/skills/harmonyos-dev
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/CoreyLyn/harmonyos-skills.git /tmp/harmonyos-skills
mkdir -p .claude/skills
cp -r /tmp/harmonyos-skills/skills/harmonyos-dev .claude/skills/harmonyos-dev
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Harmonyos Dev trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Harmonyos Dev ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Harmonyos Dev không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

HarmonyOS Development

Implement HarmonyOS work from repository evidence and current official documentation. Prefer a small verified change over a broad speculative rewrite.

Workflow

1. Establish project context

For an existing repository, inspect before asking questions:

  • Read repository instructions and the files relevant to the request.
  • Locate build-profile.json5, oh-package.json5, module.json5, app.json5, and module-level configuration.
  • Derive the compile/compatible/target SDK, Stage or FA model, device types, state-management generation, Kits, permissions, and build commands.
  • Search for nearby implementations and preserve established architecture unless the task requires changing it.

For a greenfield request, ask only for decisions that materially affect the result: target devices, minimum compatible API, application or atomic service, and required system capabilities. Do not invent a default API version or device type.

2. Verify version-sensitive facts

Use this source order:

  1. The repository's SDK configuration, generated types, compiler diagnostics, and installed SDK.
  2. Current Huawei API reference for signatures, availability, permissions, SysCaps, errors, and deprecation.
  3. Current Huawei development guides, release notes, best practices, and official samples.
  4. Local reference files in this skill as navigation and review checklists.

Treat local references as snapshots, not authority. Recheck any API name, signature, decorator constraint, permission, availability level, or lifecycle behavior before relying on it. If official material is unavailable, say what remains unverified and avoid presenting inference as fact.

When external research is needed, use an available documentation or browsing tool and restrict technical claims to official Huawei sources. Do not require a particular tool such as Context7.

3. Design the smallest coherent change

  • State the compatibility and device assumptions that affect the implementation.
  • Keep V1 and V2 state-management patterns consistent within a component boundary unless performing an explicit migration.
  • Check API-level, device, SysCap, permission, and application-form constraints before selecting a Kit API.
  • Plan ownership and cleanup for subscriptions, timers, network handles, ResultSet objects, files, controllers, and other resources.
  • Preserve error semantics. Handle BusinessError and rejected promises where the API contract requires it; do not silently swallow failures.
  • Prefer resources and adaptive layouts over hard-coded strings, colors, sizes, and single-device assumptions.

Load only the relevant reference:

4. Implement in repository style

  • Edit the existing seam rather than creating a parallel abstraction without evidence.
  • Keep ArkTS types explicit and compatible with the project's compiler rules.
  • Reuse project logging, error, dependency-injection, navigation, resource, and test conventions.
  • For API migrations, separate mechanical compatibility edits from behavior changes.
  • Do not change unrelated code or generated artifacts.

5. Verify

Run the narrowest relevant checks first, then broader checks when available:

  • Compile or build the affected module.
  • Run related unit, integration, UI, or Hvigor tests.
  • Inspect diagnostics for API compatibility and ArkTS constraints.
  • For UI work, verify the affected device classes, orientations, themes, font scaling, and empty/error/loading states that are in scope.
  • For lifecycle work, exercise creation, background/foreground, navigation away, and teardown paths where practical.

If a required environment, SDK, device, account, or service is unavailable, report the exact unverified boundary. Never describe an unrun check as passed.

Source and response policy

Cite official Huawei documentation for material version-sensitive claims or when the user asks for sources. Put citations next to the supported claim. Do not add decorative quotations or claim that local examples are official requirements.

For implementation tasks, finish with:

  • What changed and where.
  • Compatibility assumptions.
  • Verification run and its result.
  • Remaining unverified items or risks.

For explanation-only requests, answer directly; do not mutate the repository unless asked.

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Harmonyos Dev làm được gì?

Develop, debug, refactor, or design native HarmonyOS applications with ArkTS, ArkUI, Stage model, and HarmonyOS Kits. Use for HarmonyOS feature implementation, UI and state-management work, device adaptation, permissions, networking, persistence, API migration, build failures, and architecture decisions. Inspect an existing project before choosing APIs, derive its SDK and device constraints from repository configuration, and verify version-sensitive guidance against current official Huawei documentation. Use harmonyos-review instead when the primary request is a code audit.

Vì sao nên dùng Harmonyos Dev trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Harmonyos Dev là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Harmonyos Dev trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/CoreyLyn/harmonyos-skills/tree/main/skills/harmonyos-dev. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Harmonyos Dev?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Harmonyos Dev với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Harmonyos Dev với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Harmonyos Dev có miễn phí không?

Có. Kỹ năng này được CoreyLyn phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇