cangjie-basic-concepts

Explain Cangjie syntax, variable declarations, and control flow concepts.

1|1|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/SunriseSummer/CangjieDocument --skill cangjie-basic-concepts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cangjie-basic-concepts
Source: https://github.com/SunriseSummer/CangjieDocument/tree/main/.github/skills/cangjie-basic-concepts
Command: npx skills add https://github.com/SunriseSummer/CangjieDocument --skill cangjie-basic-concepts

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a comprehensive understanding of the fundamental concepts and rules of the Cangjie programming language, enabling developers to write correct and efficient code.

Core Features & Use Cases

  • Syntax and Structure: Learn about keywords, identifiers, and program structure.
  • Variable Management: Understand variable declaration (let, var, const), types, and scope.
  • Control Flow: Grasp expressions, conditional statements (if), loops (while, for-in), and control keywords (break, continue).
  • Use Case: When encountering a new Cangjie codebase, use this Skill to quickly understand variable declarations, function definitions, and control flow logic.

Quick Start

Explain the difference between let and var in Cangjie.

Frequently Asked Questions about cangjie-basic-concepts

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

FAQPage Schema
How do I declare variables in Cangjie using let, var, and const?

Cangjie variable declarations use `let` for immutable values, `var` for mutable variables, and `const` for compile-time constants. This Skill explains their distinct semantics, value versus reference type behaviors, and scope rules to help you write correct code.

What are the basic control flow expressions and loops in Cangjie?

Cangjie control flow includes conditional `if` statements, `while` loops, `for-in` iteration, and control keywords like `break` and `continue`. This Skill details how these expressions evaluate and manage execution logic within your program structure.

How does Cangjie handle value types and reference types?

Cangjie differentiates value types and reference types primarily through variable declarations and memory behavior. This Skill clarifies how `let` and `var` interact with these types, ensuring you understand semantic rules for data copying versus reference passing.

How do I define basic functions in Cangjie programming?

Defining basic functions in Cangjie involves understanding program structure, identifiers, and keyword usage. This Skill explains the core rules for function definitions, enabling you to establish reusable code blocks and structure your applications correctly.

What is the difference between let and var in Cangjie?

The difference between `let` and `var` in Cangjie is mutability: `let` declares an immutable binding that cannot be reassigned, while `var` allows variable reassignment. This Skill outlines these rules to help you manage variable state safely.

What are the core keywords and identifiers in Cangjie syntax?

Cangjie syntax relies on reserved keywords and identifiers to define program structure and logic. This Skill explains these foundational concepts, allowing new developers to quickly parse codebases and understand naming conventions and scope boundaries.