home / skills / codyswanngt / lisa / sonarqube-fix
This skill fixes SonarQube quality gate issues by running checks, applying fixes, and committing changes to git.
npx playbooks add skill codyswanngt/lisa --skill sonarqube-fixReview the files below or copy the command above to add this skill to your agents.
---
name: sonarqube-fix
description: This skill should be used when fixing SonarQube quality gate failures. It runs the sonarqube:check skill to identify failures, fixes the identified issues, and then commits the changes using the git:commit skill.
---
1. Run /sonarqube-check
2. Fix the SonarQube quality gate failures identified in step 1
3. Run /git-commit
This skill automates the workflow for resolving SonarQube quality gate failures in a TypeScript codebase. It first runs an inspection to identify failing checks, applies fixes to address the issues, and then commits the changes to the repository. The goal is fast, repeatable remediation that keeps code quality gates green with minimal manual effort.
The skill executes a SonarQube check to collect the list of quality gate failures and relevant issue locations. It applies targeted fixes for the identified problems (linting, type issues, minor refactors, or configuration updates) and stages the modified files. Finally, it uses the git commit step to persist the fixes with a clear commit message describing the remediation.
Will this skill fix every SonarQube issue automatically?
No. It focuses on safe, automatable fixes. Complex design issues or defects requiring code changes beyond simple refactors should be handled manually.
What happens to the commit history?
The skill creates a commit with the applied fixes and a descriptive message. You can configure branching and review policies to control how that commit is merged.