Review Repository
Evaluates the overall quality and structure of the repository and creates an improvement roadmap.
Procedure
-
Understand Directory Structure:
- Use
list_dirto obtain an overview of the project (e.g.,gwexpy,tests,docs,examples). - Use
find_by_nameto check the distribution of major file formats (.py,.ipynb,.md,.toml).
- Use
-
Verify Design and Dependencies:
- Read
README.mdto understand the project's purpose and key features. - Check
pyproject.tomlorsetup.pyto grasp dependencies and build configurations.
- Read
-
Code Quality Screening:
- Use
grep_searchto find anti-patterns or lingering items:except Exception:(Overly broad exception catching)pass(Empty blocks)TODO,FIXME,XXX- Support code for older Python versions (
sys.version_info)
- Use
view_file_outlineto check if methods in major classes have type hints and docstrings.
- Use
-
Verification of Testing and QA:
- Assess the scale and status of tests using the
run_testsskill orrun_command(pytest --collect-only). - Check CI configurations such as GitHub Actions (
.github/workflows).
- Assess the scale and status of tests using the
-
Report Generation and Task Creation:
- Create a report including the following sections:
- Overview: Project scale and current state.
- Strengths: Points of good implementation and design.
- Improvements (P1: High, P2: Med, P3: Low): Specific issues organized by priority.
- Based on the report, save a "Markdown-formatted improvement task prompt" in the
.agent/directory that is easy for the AI to understand.
- Create a report including the following sections:
微信扫一扫