code-quality-review-all
Skill735 starsChanged 35 days agoMITView on GitHub
Review all evaluations in the repository against a single code quality standard. Checks ALL evals against ONE standard for periodic quality reviews. Use when user asks to review/audit/check all evaluations for a specific topic or standard. Do NOT use for reviewing a single eval (use eval-quality-workflow instead) or for test coverage (use ensure-test-coverage instead).
In this repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- build-repo-contextSkill
- check-trajectories-workflowSkill
- ci-maintenance-workflowSkill
- code-quality-fix-allSkill
- create-evalSkill
- ensure-test-coverageSkill
- eval-quality-workflowSkill
- eval-report-workflowSkill
- eval-validity-reviewSkill
- generate-asset-actionsSkill
- investigate-datasetSkill
- prepare-releaseSkill
- prepare-submission-workflowSkill
- read-eval-logsSkill
- security-audit-evalSkill
- verify-scoring-changeSkill
- write-an-adrSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. About 0 are common, 14 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
If not already provided, ask user for the topic from the CONTRIBUTING.md or BEST_PRACTICES.md that this review should be focused on.
- Distinctive: line 16
Create or read existing directory structure:
- Distinctive: line 33
Review Date: When this documentation was created/updated
- Distinctive: line 52
Verification: After identifying potential issues, verify a sample of them by reading the actual files to ensure accuracy.
- Distinctive: line 63
Reusability: Write scripts and documentation that can be rerun easily as the codebase evolves.
- Very specific: line 69
Create the directory structure: agent_artefacts/code_quality/<topic_id>/
- Distinctive: line 73
After scanning current code state, compare with existing results
- Distinctive: line 75
Keep entries for issues that still exist, preserving "fix_status" if present
- Distinctive: line 76
Add new entries for newly discovered issues
- Very specific: line 77
Use autolint to scan all evaluations: uv run inspect-evals-lint --all --select <rule>.
- Distinctive: line 79
Write topic-specific documentation to README.md
- Very specific: line 80
Write results to results.json with relative paths:
- Distinctive: line 83
Remove issues that are no longer detected in the code
- Very specific: line 84
Create a SUMMARY.md file in the topic directory with:
- Distinctive: line 90
If you created helper scripts, save them in the topic directory for future use
- Distinctive: line 97
Add new issues when detected
- Distinctive: line 98
Update existing issues if location/description changes
- Distinctive: line 101
Update evaluation status (pass/fail) based on current findings
- Distinctive: line 117
After running this workflow, you should have:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 follow the template in assets/results-template.json. It contains one entry per evaluation in <repo root>/src/inspect_evals/, with status and issue details.
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
- Systematic Approach: Review all evaluations in a consistent manner. Use scripts or automated tools where possible to ensure completeness.
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
- Verification: After identifying potential issues, verify a sample of them by reading the actual files to ensure accuracy.
Statistics: Provide summary statistics including:
- Total evaluations reviewed
- Number passing/failing
- Breakdown of issue types
- Most affected evaluations
- Prioritization: Identify which issues are most critical or affect the most evaluations to help guide remediation efforts.
- Reusability: Write scripts and documentation that can be rerun easily as the codebase evolves. Include any helper scripts in the topic directory.
- False Positives: Be aware that automated detection may produce false positives. When possible, include logic to reduce these or document known limitations.
Workflow Steps
- Create the directory structure:
agent_artefacts/code_quality/<topic_id>/ - Handle existing results.json (if re-running review):
- Read existing results.json
- Note issues that have "fix_status" field (were attempted to be fixed)
- After scanning current code state, compare with existing results
- Remove entries for issues that no longer exist (they were successfully fixed)
- Keep entries for issues that still exist, preserving "fix_status" if present
- Add new entries for newly discovered issues
- Use autolint to scan all evaluations:
uv run inspect-evals-lint --all --select <rule>. Parse its output to identify structural issues across evals. For topic-specific checks beyond autolint's scope, write targeted grep/AST scripts in the topic directory. - Organize findings by evaluation name
- Write topic-specific documentation to
README.md - Write results to
results.jsonwith relative paths:- Include all currently detected issues
- IMPORTANT: Preserve "fix_status" field for issues that still exist
- Remove issues that are no longer detected in the code
- Create a
SUMMARY.mdfile in the topic directory with:- Overview of findings
- Key statistics
- Most affected evaluations
- Recommendations for remediation
- Impact analysis
- If you created helper scripts, save them in the topic directory for future use
- Inform the user that the review is complete and where to find the results
Skill Responsibilities
This skill (code-quality-review-all) owns results.json and has full control:
- Add new issues when detected
- Update existing issues if location/description changes
- Remove issues that no longer exist in the codebase
- Preserve "fix_status" field when updating issues
- Update evaluation status (pass/fail) based on current findings
The code-quality-fix-all skill has limited control:
- Can ONLY add/update the "fix_status" field on existing issues
- Cannot remove entries from results.json
- Relies on this skill to verify fixes and remove resolved issues
This separation ensures:
- Clear ownership of results.json
- Fix skill focuses on fixing, not determining what's fixed
- Review skill has authoritative view of current code state
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 scriptsDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

