chinaweal-claude-code/skills/load-codestyle/README.md

65 lines
1.4 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# load-codestyle
加载指定语言的代码风格参考文件。
## 目录结构
```
load-codestyle/
├── SKILL.md # Skill 定义文件
├── README.md # 本文件
├── style/ # 代码风格文件目录
│ ├── java/
│ │ └── java-code-style.md
│ ├── python/
│ │ └── python-code-style.md
│ └── ... # 可按需添加更多语言
└── memory/ # 记忆文件目录(自动生成)
└── codestyle-{language}.md
```
## 使用方式
### 触发命令
- `/load-codestyle`
- `/load-codestyle java`
- "加载代码风格"
- "加载 Java 代码风格"
### 加载文件的路径
代码风格文件应放在:
```
~/.claude/skills/load-codestyle/style/{language}/*.md
```
例如 Java 语言:
```
~/.claude/skills/load-codestyle/style/java/*.md
```
## 添加新的语言风格
1.`style/` 目录下创建对应语言的文件夹
2. 添加 `.md` 格式的风格文件
3. 可以添加多个文件,会全部加载
示例:
```
style/
├── java/
│ ├── naming-conventions.md
│ ├── spring-boot-guidelines.md
│ └── database-standards.md
├── python/
│ └── python-code-style.md
└── go/
└── go-code-style.md
```
## 已支持的语言
- Java示例文件已添加
- 可按需扩展其他语言