Best use case
仓颉代码重构技能 (Cangjie Code Refactoring Skill) is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
## 概述
Teams using 仓颉代码重构技能 (Cangjie Code Refactoring Skill) should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/cangjie-refactor/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How 仓颉代码重构技能 (Cangjie Code Refactoring Skill) Compares
| Feature / Agent | 仓颉代码重构技能 (Cangjie Code Refactoring Skill) | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
## 概述
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
Best AI Skills for Claude
Explore the best AI skills for Claude and Claude Code across coding, research, workflow automation, documentation, and agent operations.
Cursor vs Codex for AI Workflows
Compare Cursor and Codex for AI coding workflows, repository assistance, debugging, refactoring, and reusable developer skills.
SKILL.md Source
# 仓颉代码重构技能 (Cangjie Code Refactoring Skill) ## 概述 此技能用于根据CANGJIE_CODING_GUIDELINES.md规范自动重构仓颉代码,确保代码符合仓颉编程语言的最佳实践和规范要求。 ## 功能 1. 自动检测代码中的规范问题 2. 根据指南自动修复常见问题(如字符串处理、类型转换、异常处理等) 3. 提供重构建议和报告 ## 参数 - `path` (string, required): 要重构的代码文件或目录路径 - `fix` (boolean, optional, default: true): 是否自动修复发现的问题 - `report` (boolean, optional, default: true): 是否生成重构报告 ## 示例 ```bash # 重构单个文件 skill run cangjie-refactor:refactor --path ./src/main.cj --fix true # 重构目录中的所有.cj文件 skill run cangjie-refactor:refactor --path ./src --fix true --report true ```