Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

code-quality-fix-all

БесплатноБез исполняемых скриптовНе проверен

Fix code quality issues identified in a code quality review stored in agent_artefacts/code_quality/<topic>/. Systematically addresses issues found by the…

UKGovernmentBEISот UKGovernmentBEIS★ 763 звезды на GitHub

Об этом скилле

Code Quality Fix All

Fix code quality issues identified in a code quality review. This skill systematically addresses issues found by the code-quality-review-all skill for ANY code quality topic, with validation and testing at each step.

Expected Arguments

When invoked, this skill expects the path to a code quality topic as an argument (e.g., agent_artefacts/code_quality/private_api_imports).

If not provided, the skill will ask the user for the topic path. Within the topic path, there are several files:

  • README.md - contains description of the issue and examples of how to fix it
  • results.json - contains list of all identified issues
  • SUMMARY.md - contains summary of the identified issues

Filters and options are specified interactively after the skill starts by using the AskUserQuestion tool to present options unless specified otherwise in arguments.

  • Which issue types to target:
    • all
    • specific types
    • Fix complexity level (easy only, medium and below, or all)
  • Which evaluations to fix (all, specific ones, evaluations with small number of issues)
  • Maximum number of issues to fix in this run

Workflow

Phase 1: Understanding the Topic and Planning

  1. Read topic documentation

    • Read the README.md to understand:
      • What code quality issue this topic addresses
      • Why it matters (stability, maintainability, etc.)
      • How to detect the issue
      • How to fix the issue (fix patterns, examples)
    • Read results.json to get all identified issues
    • Identify which issues are in scope based on arguments
  2. Analyze and categorize issues

    • Analyze fix complexity based on:
      • issue_description
      • suggested_fix from results.json
      • Fix examples in README.md
    • Classify as:
      • Easy: Single-line changes, clear fix pattern in README
      • Medium: Multi-line changes, well-documented fix approach
      • Hard: No clear fix pattern, requires research or copying code
    • Group issues by evaluation and issue type
    • Generate statistics for presenting to user
  3. Ask user for filtering preferences

    • Use AskUserQuestion tool to ask:
      • Which evaluations to fix? (all / specific ones / most affected)
      • Which issue types to target? (all / specific types)
      • Fix complexity level? (easy only / easy+medium / all)
      • Max issues per run? (all / limit to specific number)
    • Apply filters based on user responses
    • Present filtered plan with:
      • Number of issues to fix
      • Breakdown by evaluation and issue type
      • Complexity distribution
      • Ask for final confirmation to proceed
  4. Validate understanding of fixes

    • For each unique issue type in scope:
      • Check if README.md documents how to fix it
      • Look for "Good Examples" and "Bad Examples" sections
      • Check "suggested_fix" field in results.json
    • If fix approach is unclear for any issue type:
      • Research the correct approach
      • Update <topic>/README.md with findings
      • Ask user for guidance if still uncertain

Phase 2: Pre-Fix Validation

For each issue to be fixed:

  1. Read and understand context

    • Read the entire file containing the issue (not just the line)
    • Understand how the problematic code is used
    • Look for related issues in the same file
    • Check for patterns that might affect the fix (e.g., multiple occurrences)
    • Identify any cascading changes needed (related imports, type hints, etc.)
  2. Validate the suggested fix

    • Review the "suggested_fix" from results.json
    • Check against fix patterns in README.md
    • Verify the fix won't break functionality
    • For complex fixes:
      • Check if dependencies/alternatives actually exist
      • Validate that replacement code follows same patterns
      • Consider edge cases
  3. Estimate change scope

    • Count how many lines will change for this fix
    • Identify if cascading changes are needed
    • Determine if multiple files need updating
    • If changes exceed 100 lines for a single issue:
      • Alert user with:
        • Issue details
        • Why the change is large
        • What will change
      • Get explicit approval before proceeding

Phase 3: Applying Fixes

  1. Apply fixes systematically
  • Create a new branch to apply fixes to, with a name like agent/<short_description_of_issue>
  • Process one evaluation at a time
  • Within each evaluation, group by issue type
  • For each fix:
    • Use Edit tool to apply the change
    • Follow the suggested_fix guidance
    • Apply fix patterns from README.md
    • Handle related issues in same file together
    • Add comments if the fix requires it (e.g., copied code attribution)
  • Track what was fixed
  1. Verify changes compile/parse

    • After fixing each file, validate:
      • File is syntactically valid (Python can parse it)
      • No obvious import errors introduced
      • Code follows repository patterns
    • If validation fails:
      • Investigate the
Полный SKILL.md на GitHub

Установить code-quality-fix-all в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл code-quality-fix-all?

Fix code quality issues identified in a code quality review stored in agent_artefacts/code_quality/<topic>/. Systematically addresses issues found by the code-quality-review-all skill for ANY code quality topic, with validation and testing at each step. Use when user asks to fix issues from a code quality review, or asks to fix issues from agent_artefacts/code_quality/<topic>.

Как установить скилл code-quality-fix-all?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл code-quality-fix-all запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить code-quality-fix-all с