cangjie-basic-programming-concepts

Explain Cangjie language syntax, variables, expressions, and function definitions.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a comprehensive guide to the foundational elements of the Cangjie programming language, helping developers understand its syntax, structure, and core constructs.

Core Features & Use Cases

  • Syntax and Keywords: Details on identifiers, reserved keywords, and their usage.
  • Program Structure: Explains top-level scope, variable declarations (let, var, const), and scope rules.
  • Expressions: Covers if, while, do-while, and for-in expressions, including control flow statements like break and continue.
  • Data Types: Differentiates between value types and reference types, with specific notes on Array behavior.
  • Function Basics: Introduces the fundamental syntax for defining functions.
  • Use Case: A new developer learning Cangjie can refer to this Skill to quickly grasp concepts like variable mutability, control flow logic, and function definition.

Quick Start

Explain the rules for declaring variables in Cangjie.

Frequently Asked Questions about cangjie-basic-programming-concepts

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

FAQPage Schema
How do I declare variables in Cangjie?

Cangjie variables are declared using `let` for immutable values, `var` for mutable values, and `const` for compile-time constants. This Skill details the specific scope rules and program structure requirements for these variable declarations.

What control flow expressions does Cangjie support?

Cangjie supports `if`, `while`, `do-while`, and `for-in` expressions for control flow. The Skill explains how to implement these expressions and use control statements like `break` and `continue` to manage loop execution.

How do value types and reference types differ in Cangjie?

Cangjie differentiates between value types and reference types during variable assignment and memory allocation. The Skill outlines these distinctions, including specific behavioral notes for `Array` operations and data manipulation.

What is the basic syntax for defining functions in Cangjie?

Cangjie function definitions require specific syntax for parameters and return types within the program structure. The Skill introduces the fundamental function definition rules and syntax required for Cangjie language development.

Can I use break and continue statements in Cangjie loops?

Cangjie allows `break` and `continue` statements within `while`, `do-while`, and `for-in` loop expressions. The Skill explains how these control flow statements alter standard loop execution behavior.