仓颉代码重构技能 (Cangjie Code Refactoring Skill)

## 概述

11 stars

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

$curl -o ~/.claude/skills/cangjie-refactor/SKILL.md --create-dirs "https://raw.githubusercontent.com/openbuildxyz/ai-web3-growth-journey/main/projects/2026-02-08/agentskills-runtime/skills/cangjie-refactor/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/cangjie-refactor/SKILL.md inside your project
  3. 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 SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/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

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
```

Related Skills

We are still matching the closest adjacent skills for this page. In the meantime, continue through the full directory.