AgentSkillsCN

code-quality

在实现之后、提交之前,同步运行代码风格检查与类型检查,以验证CLI、TUI以及视觉分析工具的代码质量。

SKILL.md
--- frontmatter
name: code-quality
description: Run lint and type checks together after implementation and before commit to validate code quality for the CLI, TUI, and visual-analysis tooling.

Code Quality Check

Run ruff and ty in one command.

bash
source venv/bin/activate && \
echo "=== LINT ===" && \
ruff check eks_helm_reporter/ kubeagle/ .codex/skills/visual-analysis/tui_screenshot_capture/ && \
echo "\n=== TYPECHECK (ty) ===" && \
ty check eks_helm_reporter/ kubeagle/ .codex/skills/visual-analysis/tui_screenshot_capture/

Both checks must pass with zero errors.