Cangjie Lang
Cangjie programming language code generation and analysis expert. Use this when users need to write or analyze Cangjie code.
Install
npx skills add ystyle/cangjie-lang-skill --skill cangjie-langgit clone --depth 1 https://github.com/ystyle/cangjie-lang-skill.git /tmp/cangjie-lang-skill
mkdir -p ~/.claude/skills
cp -r /tmp/cangjie-lang-skill/. ~/.claude/skills/cangjie-langPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# 仓颉语言代码生成与分析工作手册
---
## 目录
- [第1章:语言基础定义](#第1章语言基础定义)
- [第2章:核心语法规则](#第2章核心语法规则)
- [2.1 变量声明](#21-变量声明)
- [2.2 基础类型](#22-基础类型)
- [2.3 表达式与控制流](#23-表达式与控制流)
- [2.4 函数](#24-函数)
- [2.5 枚举类型](#25-枚举类型)
- [2.6 模式匹配](#26-模式匹配)
- [2.7 Option类型](#27-option类型)
- [2.8 class类型](#28-class类型)
- [2.9 单元测试](#29-单元测试)
- [2.10 错误处理](#210-错误处理)
- [2.11 速查手册](#211-速查手册)
- [第3章:任务处理流程](#第3章任务处理流程)
- [3.1 代码生成流程](#31-代码生成流程)
- [3.2 代码分析流程](#32-代码分析流程)
- [第4章:19个⚠️易错点检查清单](#第4章19个易错点检查清单)
- [第5章:示例与模板参考](#第5章示例与模板参考)
- [第6章:质量控制标准](#第6章质量控制标准)
- [第7章:MCP文档集成](#第7章mcp文档集成)
---
## 第1章:语言基础定义
### 1.1 文件与后缀
- **文件后缀**:`.cj`
- **语言简称**:`cj`(Cangjie)
- **入口函数**:`main()`
### 1.2 注释
```cj
// 单行注释
/*
* 多行注释
*/
/**
* 文档注释
*/
```
### 1.3 代码块结构
```cj
main() {
// 代码主体
let a: Int64 = 20
var b: Int64 = 12
println("${a}${b}")
}
```
---
## 第2章:核心语法规则
### 2.1 变量声明
#### 语法格式
```cj
修饰符 变量名: 变量类型 = 初始值
```
#### 可变性修饰符
- `let` - **不可变变量**(只能赋值一次,初始化后不可修改)
- `var` - **可变变量**(可以被多次赋值)
⚠️ **易错点1**:`let` 不支持变量遮蔽(shadowing),不能在同一作用域内重新定义同名变量。
#### 可见性修饰符
| 修饰符 | 范围 | 默认值 |
|--------|------|--------|
| `private` | class定义内可见 | ❌ |
| `public` | 模块内外均可见 | ❌ |
| `protected` | 当前模块及当前类的子类可见 | ❌ |
| `internal` | 仅当前包及子包内可见 | ✅ **默认** |
#### 静态性修饰符
- `static` - 影响成员变量的存储和引用方式
#### 示例代码
```cj
main() {
let a: Int64 = 20 // 不可变变量
var b: Int64 = 12 // 可变变量
b = 23 // 可以修改var变量
println("${a}${b}")
}
```Details
- Skill name
cangjie-lang- Repository
- ystyle/cangjie-lang-skill
- Repo updated
- 23 February 2026
FAQ
What does the Cangjie Lang skill do?
Cangjie programming language code generation and analysis expert. Use this when users need to write or analyze Cangjie code.
How do I install the Cangjie Lang skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add ystyle/cangjie-lang-skill --skill cangjie-lang. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Cangjie Lang popular?
It lives in ystyle/cangjie-lang-skill, which has 11 GitHub stars and 1 forks.
Related skills
Sim
8chrisjacksonn/interview-sim
Run a timed coding assessment simulation in the terminal. Use for OA practice, GCA or ICA mocks, mock interviews, pairing rounds, take-homes, and pasted job postings.
302ai API Integration
11302ai/302AI-API-Integration-Skill
ALWAYS use this skill when user needs ANY API functionality (AI models, image generation, video, audio, text processing, etc.). Automatically search 302.AI's 1400+ APIs and generate integration code. Use proactively whenever APIs or AI capabilities are mentioned.
Symphony
11broomva/symphony
Rust orchestration engine for coding agents. Polls issue trackers (Linear, GitHub), creates isolated per-issue workspaces, and runs coding agent sessions with lifecycle hooks, retry/backoff, concurrency control, and a live HTTP dashboard. Includes control metalayer (CONTROL.md / setpoints) for grounded development workflows.
Grok Bot Gateway
10dimpurr/grok-bot-gateway
An official-webhook-only gateway to all your Grok Bots. Use this when a coding agent or script needs to list a Grok Bot team, read a Bot's transcript or message a Bot, or when a Grok Bot user wants to host that gateway; it detects which side you're on and guides you. Callers (Claude Code, Codex, scripts) use the grokgw client; hosts create the gateway Bot, its webhook routine and a host config. Getting results back is optional and goes over a return path you choose (none by default).
Cover Xiaohongshu
12chaoshouli/cover-xiaohongshu
Codex 中的小红书封面设计与图片生成进化 Skill。唤醒词:小红书封面生成、小红书封面拆解。读取文章或结构化入参,通过目标提取、多路构图尝试、Judge 改进器和记忆更新,生成小红书封面提示词,或在 Codex 中调用图片生成能力产出小红书封面图;也可拆解样图排版方法,丰富可复用排版库以提升后续生成多样性。支持 prompt_mode、image_mode、production_mode,支持10种构图风格、真人出镜、多参考图:图1固定为人脸,图2起为UI截图、产品图等素材。关键词:小红书封面、小红书封面生成、小红书封面拆解、小红书封面设计、封面生成、提示词生成、封面优化、排版库。
B3sty Skill
10b3sty191/b3sty-skill
b3sty rules for implementing, reviewing, debugging, refactoring, or optimizing RedM/FiveM Lua resources. Use for FXServer manifests, client/server Lua, natives/entities, native invocation from docs (hashes, InvokeNative, marshalling, RDR3 structs), events/callbacks/exports/NUI, NUI/browser-UI bridge (SendNUIMessage, RegisterNUICallback, SetNuiFocus), NUI XSS/player-string rendering, OneSync/entity networking (net IDs, ownership, routing buckets, broadcasts), built-in client events (weaponDamageEvent, explosionEvent), anti-cheat/event-security hardening (give-item/give-money dupe prevention, Re
Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.