AgentSkillsCN

code-quality

将代码风格检查与类型检查同步运行。在实现之后、提交之前,或在检查代码质量时使用。

SKILL.md
--- frontmatter
name: code-quality
description: Run lint + typecheck together. Use after implementation, before committing, or when checking code quality.
argument-hint: "[--fix]"
allowed-tools: Bash

Code Quality Check

Run ruff linter and ty type checker in one command.

Usage

code
/code-quality

Command

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

Expected Output

code
=== LINT ===
All checks passed!

=== TYPECHECK (ty) ===
Found N diagnostics

Both checks must pass with 0 errors.