首页/ AI 技能 / @skilllib/skill-2117939930272416416
Skill站外收录 @skilllib/skill-2117939930272416416

code-quality-review-all

对代码仓库中所有评估文件进行统一质量审查,依据指定标准检测问题并生成结构化报告,包含详细的问题定位、修复建议及统计摘要,支持通过自动化工具复现分析结果,适用于系统性代码治理与持续改进。

0.0 (0) 15 次安装 原作者 编程导航
收录于 2026-01-22
研究 AI 技能

Skills.MD

# Review All Evaluations Review all evaluations in the repository against a single code quality standard or topic. This workflow is useful for systematic code quality improvements and ensuring consistency across all evaluations. ## Workflow ### Setup If not already provided, ask user for the topic from the CONTRIBUTING.md or BEST_PRACTICES.md that this review should be focused on. If not provided, come up with a short topic identifier in a file-safe format (e.g., `pytest_marks`, `import_patterns`, `test_coverage`). Create or read existing directory structure: - `<repo root>/agent_artefacts/code_quality/<topic_id>/` - Directory for this review topic - `<repo root>/agent_artefacts/code_quality/<topic_id>/README.md` - Documentation for this specific topic - `<repo root>/agent_artefacts/code_quality/<topic_id>/results.json` - Results of the review - `<repo root>/agent_artefacts/code_quality/<topic_id>/SUMMARY.md` - Summary of the review ### README.md Structure The `README.md` file should contain topic-specific information: - **Topic Description**: What this review checks for and why it matters - **Requirements**: Specific requirements from CONTRIBUTING.md or BEST_PRACTICES.md - **Detection Strategy**: How to identify issues (patterns to look for, tools to use) - **Commands**: Specific commands useful for this topic (grep patterns, pytest commands, etc.) - **Good Examples**: Code snippets showing correct implementation - **Bad Examples**: Code snippets showing common mistakes and how to fix them - **Review Date**: When this documentation was created/updated ### results.json Structure The `results.json` file should contain a list of all evaluations in `<repo root>/src/inspect_evals` directory and the status of each evaluation: ```json { "eval_name": { "as_of_date": "YYYY-MM-DD (date the code was last evaluated)", "status": "pass" | "fail" | "error", "issues": [ { "issue_type": "issue type within the topic if applicable", "issue_location": "relative/path/from/repo/root/file.py:line_number", "issue_description": "clear description of the issue", "suggested_fix": "short description of how to fix it" } ] } } ``` **Important**: The `issue_location` field should use paths relative to the repository root with forward slashes (e.g., `tests/foo/test_foo.py:42` or `src/inspect_evals/foo/bar.py:15`, not `C:\Users\...\test_foo.py:42` or `tests\foo\test_foo.py:42`). ### General Guidelines for All Topics 1. **Systematic Approach**: Review all evaluations in a consistent manner. Use scripts or automated tools where possible to ensure completeness. 2. **Clear Issue Reporting**: Each issue should include: - The specific file and line number where the issue occurs - A clear description of what's wrong - A concrete suggestion for how to fix it - The issue type for categorization 3. **Verification**: After identifying potential issues, verify a sample of them by reading the actual files to ensure accuracy. 4. **Statistics**: Provide summary statistics including: - Total evaluations reviewed - Number passing/failing - Breakdown of issue types - Most affected evaluations 5. **Prioritization**: Identify which issues are most critical or affect the most evaluations to help guide remediation efforts. 6. **Reusability**: Write scripts and documentation that can be rerun easily as the codebase evolves. Include any helper scripts in the topic directory. 7. **False Positives**: Be aware that automated detection may produce false positives. When possible, include logic to reduce these or document known limitations. ### Workflow Steps 1. Create the directory structure: `agent_artefacts/code_quality/<topic_id>/` 2. Create or use automated tools to scan all evaluations in `src/inspect_evals/` 3. Organize findings by evaluation name 4. Write topic-specific documentation to `README.md` 5. Write results to `results.json` with relative paths 6. Create a `SUMMARY.md` file in the topic directory with: - Overview of findings - Key statistics - Most affected evaluations - Recommendations for remediation - Impact analysis 7. If you created helper scripts, save them in the topic directory for future use 8. Inform the user that the review is complete and where to find the results ## Expected Output After running this workflow, you should have: ``` agent_artefacts/code_quality/<topic_id>/ ├── README.md # Topic-specific documentation ├── results.json # Detailed results for all evaluations ├── SUMMARY.md # Executive summary └── <helper_scripts> # Optional: automated checker scripts ```

评论 0

还没有评论,来抢沙发。