cangjie-cjc

Compile Cangjie .cj files and manage build processes with cjc.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps users understand and effectively utilize the Cangjie compiler (cjc) for various compilation tasks, from basic file compilation to advanced options like package management, linking, debugging, and cross-compilation.

Core Features & Use Cases

  • Compilation Options: Covers essential flags for output control, package/module management, linking libraries, and debugging.
  • Advanced Features: Includes usage for testing, macro compilation, conditional compilation, optimization, and cross-compilation.
  • Use Case: When you need to compile a Cangjie project that involves multiple modules, dynamic libraries, and specific optimization flags, this Skill provides the necessary cjc command structure.

Quick Start

Compile the file 'hello.cj' and specify the output file name as 'hello'.

Frequently Asked Questions about cangjie-cjc

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

FAQPage Schema
How do I compile a Cangjie file and specify the output name using cjc?

To compile a Cangjie file, use the Cangjie compiler (cjc) by passing the .cj file as an argument and applying the output flag to define the resulting executable name.

What Cangjie compiler options are available for managing packages and modules?

The Cangjie compiler provides specific flags for package and module management, allowing you to organize complex builds and handle dependencies across multiple .cj source files effectively.

How does cjc handle conditional compilation and macro usage?

Conditional compilation in cjc allows including or excluding code based on specific flags, while macro compilation flags enable generating and processing code during the Cangjie build process.

Can I use cjc for cross-compilation and setting optimization levels?

Yes, the Cangjie compiler supports setting optimization levels to tune performance and allows targeting different platforms through cross-compilation arguments for diverse deployment environments.

What flags are needed to link dynamic libraries and enable debugging in Cangjie?

Cangjie compiler library linking flags connect external dependencies, while debugging flags inject symbols into the compiled output, enabling step-by-step troubleshooting during development.