Loading...
Loading...
Intelligent Retrieval Assistant for Cangjie Language Documentation. Supports 4 search modes (Direct Search, PageIndex Intelligent Retrieval, Hybrid Mode, Exploratory Learning). It is used when users need to: (1) Query Cangjie syntax (variable declaration, function definition, generics, etc.), (2) Look up standard library APIs (String, Array, HashMap, etc.), (3) Learn about Cangjie features or get started with the language, (4) Conduct any documentation queries related to Cangjie/cangjie/cj. It uses four MCP tools: cangjie_docs_overview, cangjie_list_docs, cangjie_search, and cangjie_get_doc for intelligent retrieval.
npx skill4agent add ystyle/cangjie-docs-mcp cangjie-docs-navigator1. Call cangjie_search(query)
2. Check result relevance:
- relevance > 0.8 → Return directly
- relevance < 0.5 → Degrade to PageIndex1. Intent analysis → Determine category: manual/libs/tools/ohos
2. cangjie_docs_overview(category) → Obtain directory tree
3. cangjie_list_docs(subcategory) → List documents
4. cangjie_get_doc(doc_id) → Retrieve content| Category | Content | Trigger Keywords |
|---|---|---|
| manual | Basic syntax, type system, generics | variable, function, type, generics |
| libs | std/core, std/io, std/math | String, Array, file, network |
| tools | cjpm, compiler | compile, package, build |
| ohos | OpenHarmony | HarmonyOS |
Priority: API name → Mode 1 | Functional description → Mode 2 | Open-ended question → Mode 4 | Others → Mode 3
Failure degradation: Mode 1 fails → Mode 2 → Mode 4📚 **Retrieval Mode**: PageIndex Intelligent Retrieval
🔍 **Path**: libs > std/core > String
📄 **Found**: struct String
**Content Summary**: [Core content of the document]
🔗 **Actions**: View full document | Return to parent