Skip to main content

code-checklist

Team code quality checklist - use for checking Python code quality, bugs, security issues, and best practices

来源信息

仓库
github/copilot-cli-for-beginners
最近来源活动
2026年2月19日 23:02
检测到的 SKILL.md 语言
英语
星标
2,879
分支
2,578

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
code-checklist
description
Team code quality checklist - use for checking Python code quality, bugs, security issues, and best practices
# 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 ```
在 GitHub 查看