harmonyos-l1-query

Retrieve HarmonyOS code snippets and concepts via hybrid RAG search.

2|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/zhenzhizhi12/NexusAgent --skill harmonyos-l1-query
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: harmonyos-l1-query
Source: https://github.com/zhenzhizhi12/NexusAgent/tree/main/.opencode/skills/harmonyos-l1-query
Command: npx skills add https://github.com/zhenzhizhi12/NexusAgent --skill harmonyos-l1-query

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires langchain-chroma, langchain-openai, langchain-community, jieba, python-dotenv, and includes scripts (resource) components.

What problem does it solve?

This Skill provides a fast and precise way to retrieve commonly used code snippets and concepts for HarmonyOS application development, leveraging RAG for efficient knowledge retrieval.

Core Features & Use Cases

  • RAG-based Code Snippet Retrieval: Utilizes a hybrid search (vector + BM25) to find relevant code examples and definitions.
  • On-Demand API Key Configuration: Supports optional API key usage for enhanced search capabilities, with a free fallback to local document search.
  • Use Case: When developing a HarmonyOS app and needing a quick example of how to implement a List component, this Skill can instantly provide the most relevant code snippets and explanations.

Quick Start

Use the harmonyos-l1-query skill to search for the 'Button' component in HarmonyOS.

Frequently Asked Questions about harmonyos-l1-query

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I quickly find HarmonyOS code snippets for ArkUI components?

To find HarmonyOS code snippets, perform an L1 RAG query using hybrid search to retrieve relevant ArkUI component examples and definitions. It combines vector and BM25 search to provide precise code snippets for application development.

Do I need an OpenAI API key to use RAG for HarmonyOS development queries?

An OpenAI API key is not required for RAG queries, as the system supports an automatic fallback to local document search. Configuring the optional API key enhances semantic search capabilities for retrieving concepts.

How does the hybrid search retrieve HarmonyOS concepts and code examples?

The hybrid search retrieves HarmonyOS concepts by combining BM25 keyword matching with vector search. This mechanism ensures precise retrieval of code snippets and definitions from the knowledge base.

What Python packages are required for HarmonyOS code snippet retrieval?

HarmonyOS code snippet retrieval requires specific Python packages including langchain-chroma, langchain-openai, langchain-community, jieba, and python-dotenv to run the RAG query scripts.

Can I use this RAG approach to find implementation examples for a specific List component?

Yes, you can use this RAG approach to instantly provide relevant code snippets and explanations for a specific List component. It retrieves practical implementation examples for HarmonyOS app development.

What are the limitations of using local document search without an API key?

Without an API key, the limitation is a fallback to local document search, which may lack the enhanced semantic understanding of vector search. This affects the precision of retrieving complex HarmonyOS concepts.