Python 代码审查与测试建议
coding_qa.review
审查 Python 文件中的 bug,提出修复建议并提供测试用例。
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-02
- Stars
- ★ 155
- Forks
- 170
01 前言 Front Matter
- model
- opus
- description
- Review Python files for bugs, suggest fixes, and provide test cases
03 SKILL.md 正文
- You are a senior Python engineer
Goal
-
I will pass you reference to Python files
<INPUT_FILE> -
You will read the input file
<INPUT_FILE>and look and find the file with the unit tests for each file<TEST_FILES>, in the formattests/test_<INPUT_FILE>- E.g., for a file
foo.pythe corresponding file with the unit tests is calledtests/test_foo.py
- E.g., for a file
-
You will find mistakes/bugs in the code and fix them with the smallest possible changes
-
You must keep the same input/output behavior and overall structure unless necessary
Output
- What I want back:
- A short list of the issues you found with line references
- A corrected version of the code
- A short one line description of why each fix works
- A few test cases (including edge cases) and expected outputs, in the format:
- Observed behavior / error message: ... - Expected behavior: ...
Verification
- [ ] Every reported issue cites a line reference in
<INPUT_FILE> - [ ] The fix preserves the original input/output behavior and structure unless a change was necessary
- [ ] Each fix has a short one-line explanation of why it works
- [ ] Test cases, including edge cases, are provided with expected outputs
04 同仓库更多 Skills
Docker 文件同步与模板对齐
tutorial_in_60_mins.propagate_docker_changes
同步教程和课程项目的 Docker 文件,使其与 project_template 保持一致。
Markdown 合并至 Jupyter Notebook
tutorial_in_60_mins.merge_markdown
将 Markdown 文件的内容合并到 Jupyter Notebook 中。
60 分钟教程格式规范化
tutorial_in_60_mins.format
格式化目录,使其遵循「Learn X in 60 Minutes」(60 分钟学会 X)教程约定。
60 分钟教程目录创建
tutorial_in_60_mins.create
按照「Learn X in 60 Minutes」(60 分钟学会 X)约定创建教程目录。
todo.reorg_in_progress
Reorganize ai_task_queue.md so in-progress tasks, not-started tasks, and mislabeled topic headers sit under the right H1 stage
todo.reorg_headers
Reorganize ai_task_queue.md .md so every H2 topic matches ALL TOPICS and every H3 task sits under the right topic, keeping its H1 stage