codeguard-init
Installation
SKILL.md
初始化项目接入 codeguard
工作流
步骤 1:检测项目语言
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/detect_lang.py" .
步骤 2:拷贝对应 linter 配置文件
| 检测到语言 | 拷贝到项目根 |
|---|---|
| Java | linters/checkstyle/p3c-javadoc-enforced.xml → checkstyle.xml |
| Java | linters/checkstyle/checkstyle-suppressions.xml → checkstyle-suppressions.xml |
| Rust | linters/clippy/strict.toml → clippy.toml |
| TypeScript | linters/eslint/recommended.cjs → eslint.config.js |
| Python | 追加 linters/ruff/pyproject-snippet.toml 的 [tool.ruff] 块到 pyproject.toml |