cangjie-compile-and-build

Compile and build Cangjie projects using cjc and cjpm.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides the necessary tools and knowledge to compile and build projects written in the Cangjie programming language, handling both direct compilation and project management aspects.

Core Features & Use Cases

  • CJC Compiler: Understand and use the cjc compiler for direct file compilation, specifying output types, and managing import paths.
  • CJPM Project Manager: Manage Cangjie projects, handle dependencies, and execute build, run, and test commands.
  • Conditional Compilation: Utilize @When directives and --cfg options to control code compilation based on environment variables or build flags.
  • Use Case: You have a Cangjie project with multiple modules and need to build it for a specific operating system. Use cjpm build with appropriate conditional compilation flags to ensure the correct code paths are included.

Quick Start

Use the cangjie-compile-and-build skill to compile the file 'main.cj' and output an executable named 'app'.

Frequently Asked Questions about cangjie-compile-and-build

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

FAQPage Schema
How do I compile a Cangjie project using the cjc compiler?

To compile a Cangjie project, use the cjc compiler for direct file compilation or the cjpm project manager to handle dependencies and execute build commands for multiple modules.

How does conditional compilation work in Cangjie?

Conditional compilation in Cangjie works by utilizing @When directives and --cfg options to control which code paths are compiled based on environment variables or build flags.

What is the best way to manage dependencies in a Cangjie programming language project?

The best way to manage dependencies in a Cangjie project is using the cjpm project manager, which handles build, run, and test commands alongside project dependency resolution.

Can I build Cangjie code for a specific operating system?

Yes, you can build Cangjie code for a specific operating system by using cjpm build with appropriate conditional compilation flags to ensure correct code paths are included.

How do I specify output types when building Cangjie code?

You can specify output types when building Cangjie code by using the cjc compiler for direct file compilation, managing import paths and defining the desired build output format.