AGENT SKILL
代码质量门禁检查
quality-gates
当用户希望对 lazyclaude 项目运行代码质量检查(lint 检查、格式化、类型检查、测试)时使用此技能。当用户要求“运行质量门禁”、“检查代码”、“运行测试”、“lint 代码”,或在提交前验证代码质量时,使用此技能。
- License 许可
- MIT
- 最近更新
- 2026-03-22
- Stars
- ★ 42
- Forks
- 4
01 前言 Front Matter
- name
- quality-gates
- description
- This skill should be used when the user wants to run code quality checks (linting, formatting, type checking, tests) on the lazyclaude project. Use this skill when asked to "run quality gates", "check the code", "run tests", "lint the code", or verify code quality before committing.
02 资源文件 4
- 资产文件assets/README.md425 B
- 参考文档references/README.md419 B
- 脚本scripts/check.sh1.5 KB
- 脚本scripts/README.md444 B
03 SKILL.md 正文
Quality Gates
Run code quality checks for the lazyclaude project. This skill executes the same checks used in pre-commit hooks plus tests.
Quality Checks
The following checks are run in order:
| Check | Command | Purpose |
|---|---|---|
| Ruff Lint | uv run ruff check src tests --fix |
Lint code and auto-fix issues |
| Ruff Format | uv run ruff format src tests |
Format code consistently |
| Mypy | uv run mypy src |
Static type checking |
| Pytest | uv run pytest tests/ -q |
Run test suite |
Usage
To run all quality gates:
.claude/skills/quality-gates/scripts/check.sh
Or run individual checks as needed using the commands above.
Workflow
- Run the
.claude/skills/quality-gates/scripts/check.shscript from the project root - Review any failures and fix issues
- Re-run until all checks pass
- Present user with concise summary of results in markdown table format
Common Issues
- Ruff lint failures: Usually auto-fixed. If not, check the error message for manual fixes needed.
- Mypy errors: Type annotation issues. Add or fix type hints as indicated.
- Test failures: Review test output, fix failing tests or underlying code.
04 同仓库更多 Skills
开发任务跟踪管理
task-tracker
跟踪和管理开发任务。
★ 42
综合测试技能
full-skill
一个全面的测试技能。
★ 42
项目专属技能
project-skill
项目专属的技能。
★ 42
插件技能
plugin-skill
来自插件的技能。
★ 42
GitHub 市场星标数同步
update-marketplace-stars
更新 DEFAULT_SUGGESTED_MARKETPLACES 中推荐市场的 GitHub 星标(star)数。当用户要求“更新星标数”、“刷新市场星标数”或“同步星标数”时使用此技能。
★ 42