AGENT SKILL
代码质量检查清单
code-checklist
团队代码质量检查清单 - 用于检查 Python 代码质量、bug、安全问题和最佳实践
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 2.9k
- Forks
- 2.6k
01 前言 Front Matter
- name
- code-checklist
- description
- Team code quality checklist - use for checking Python code quality, bugs, security issues, and best practices
03 SKILL.md 正文
Code Checklist Skill
Apply this checklist when checking Python code.
Code Quality Checklist
- [ ] All functions have type hints
- [ ] No bare except clauses
- [ ] No mutable default arguments
- [ ] Context managers used for file I/O
- [ ] Functions are under 50 lines
- [ ] Variable and function names follow PEP 8 (snake_case)
Input Validation Checklist
- [ ] User input is validated before processing
- [ ] Edge cases handled (empty strings, None, out-of-range values)
- [ ] Error messages are clear and helpful
Testing Checklist
- [ ] New code has corresponding pytest tests
- [ ] Edge cases are covered
- [ ] Tests use descriptive names
Output Format
Present findings as:
## Code Checklist: [filename]
### Code Quality
- [PASS/FAIL] Description of finding
### Input Validation
- [PASS/FAIL] Description of finding
### Testing
- [PASS/FAIL] Description of finding
### Summary
[X] items need attention before merge
04 同仓库更多 Skills
pytest 测试生成
pytest-gen
生成全面的 pytest 测试——在生成测试、创建测试套件或测试 Python 代码时使用。
★ 2.9k
技能格式入门示例
hello-world
一个最简单的技能示例——用于学习技能格式时使用。
★ 2.9k
Git 提交信息生成
commit-message
生成约定式提交信息(conventional commit)- 在创建提交、编写提交信息或请求 git 提交帮助时使用
★ 2.9k
pytest 测试生成
pytest-gen
生成全面的 pytest 测试 - 在生成测试、创建测试套件或测试 Python 代码时使用
★ 2.9k
技能格式入门示例
hello-world
一个最小的技能示例 - 在学习技能格式时使用
★ 2.9k
Git 提交信息生成
commit-message
生成规范化的提交信息(conventional commit)——在创建提交、编写提交信息或需要 git commit 帮助时使用。
★ 2.9k