AgentSkillsCN

Verify Project Health

快速构建工作流,用于验证代码风格检查、测试执行与类型安全。

SKILL.md
--- frontmatter
name: Verify Project Health
description: A quick workflow to verify linting, testing, and type safety.

🩺 Project Health Verification Skill

Context

Before any task_boundary completion or notify_user call, code must be verified.

Checklist

  1. Type Check:

    • Mentally verify: "Are all arguments typed?" "Is Any avoided?"
    • (Future) uv run mypy src
  2. Linting (Strict):

    • Command: uv run ruff check src
    • Action: Fix ALL errors. No ignore comments unless absolutely critical.
  3. Formatting:

    • Command: uv run ruff format src
  4. Testing:

    • Command: uv run pytest
    • Action: If tests fail, FIX them. Do not comment them out.

Troubleshooting Common Issues

  • Ruff/Import Errors: Check pyproject.toml configuration.
  • Version Mismatch: Run uv sync to ensure lockfile matches environment.
  • Missing Dependencies: Use uv add [lib] instead of pip install.