cangjie-toolchains

Document Cangjie toolchain usage for compiling, debugging, testing, formatting, linting, and profiling.

4|1|Updated Mar 29, 2026
One-click install
npx skills add https://github.com/JunjieChen0/NJUST --skill cangjie-toolchains
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cangjie-toolchains
Source: https://github.com/JunjieChen0/NJUST/tree/main/.njust-ai/skills/cangjie-toolchains
Command: npx skills add https://github.com/JunjieChen0/NJUST --skill cangjie-toolchains

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill consolidates the Cangjie toolchains (cjc, cjdb, cjcov, cjfmt, cjlint, cjprof) into a single, accessible reference, speeding up onboarding and ensuring consistent usage.

Core Features & Use Cases

  • Cjc: compiler for .cj sources, with guidance on compiling, linking, and packaging.
  • CJDB: debugger usage for breakpoints, stepping, and variable inspection.
  • CJCOV: coverage tooling for generating code coverage reports and integration with tests.
  • CJFMT: formatter standards and configuration guidance for consistent code style.
  • CJLINT: static analysis rules and integration tips for code quality.
  • CJPROF: performance analysis workflows including CPU profiling and heap analysis.
  • Use Case: A new team member can follow this guide to compile, debug, and profile a sample program using the toolkit.

Quick Start

Open this Skill's root SKILL.md to navigate to each tool's detailed guide and start with the cjc guide to compile a sample program.

Frequently Asked Questions about cangjie-toolchains

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

FAQPage Schema
How do I compile and link Cangjie programs using the cjc compiler?

To compile and link Cangjie programs, use the cjc compiler for .cj sources. It provides detailed guidance on compiling, linking, and packaging your code into executable or library outputs.

What is the best way to debug Cangjie code and inspect variables?

The best way to debug Cangjie code is using the cjdb debugger. It supports setting breakpoints, stepping through execution, and inspecting variables to identify and resolve logic errors.

How do I generate code coverage reports for Cangjie projects?

You can generate code coverage reports for Cangjie projects using the cjcov tool. It integrates with your testing workflow to measure and output coverage metrics for your codebase.

Can I enforce consistent code style and static analysis rules in Cangjie?

Yes, you can enforce consistent code style and static analysis in Cangjie. The cjfmt formatter standardizes code layout, while cjlint applies static analysis rules to maintain code quality.

How do I perform CPU and heap profiling for Cangjie applications?

To perform CPU and heap profiling for Cangjie applications, use the cjprof tool. It enables performance analysis workflows to identify bottlenecks and optimize memory usage.