harmonyos-stdx-dependency

Configure Cangjie stdx dependencies in HarmonyOS cjpm.toml files.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill simplifies the process of managing Cangjie's stdx extension library dependencies within HarmonyOS applications, resolving build and linking errors related to stdx modules.

Core Features & Use Cases

  • Automated stdx Acquisition: Automatically fetches and extracts necessary stdx packages.
  • cjpm.toml Configuration: Guides and automates the correct configuration of bin-dependencies.path-option in entry/cjpm.toml.
  • Error Resolution: Addresses common build/link errors like undefined reference to stdx::... by ensuring correct dependency paths.
  • Use Case: When developing a HarmonyOS application and encountering an undefined reference error for stdx::crypto, this Skill will automatically download the stdx package, extract it to the correct project location, and update your cjpm.toml to include the necessary path.

Quick Start

Use the harmonyos-stdx-dependency skill to configure stdx crypto for your HarmonyOS application.

Frequently Asked Questions about harmonyos-stdx-dependency

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

FAQPage Schema
How do I fix undefined reference to stdx errors in HarmonyOS?

To fix undefined reference to stdx errors in HarmonyOS, you must correctly configure the `bin-dependencies.path-option` in your `entry/cjpm.toml` file to point to the extracted stdx package locations. This Skill automates fetching, extracting, and updating these paths for modules like crypto, encoding, net, and actors.

How do I configure cjpm.toml for Cangjie stdx modules?

Configuring cjpm.toml for Cangjie stdx modules involves setting the `bin-dependencies.path-option` to the correct local directory paths where the stdx extension libraries are extracted. This ensures the build system successfully links required modules like crypto and net.

What are stdx extension libraries in HarmonyOS Cangjie?

stdx extension libraries in HarmonyOS Cangjie are additional modules like crypto, encoding, net, and actors that provide extended functionalities beyond the standard library for application development. They require proper package acquisition and cjpm.toml configuration to be used.

Does Cangjie stdx configuration support both aarch64 and x86_64 targets?

Yes, Cangjie stdx configuration supports both aarch64 and x86_64 targets, allowing you to specify platform-specific configurations within your `cjpm.toml` to ensure correct linking across different HarmonyOS architectures. This addresses platform-specific build requirements.

Why does my HarmonyOS build fail with stdx linking errors?

Your HarmonyOS build fails with stdx linking errors because the required stdx packages are either not downloaded or the `bin-dependencies.path-option` in `cjpm.toml` is missing or pointing to an incorrect extraction path. Automated dependency management resolves this by fetching packages and updating paths.

What is the best way to manage Cangjie stdx dependencies for HarmonyOS apps?

The best way to manage Cangjie stdx dependencies is to automate the fetching and extracting of packages, then directly update the `cjpm.toml` configuration file with the correct `bin-dependencies.path-option` settings. This prevents manual path errors and build failures.