원클릭으로
sp-address-sonar-issues
Fetch, analyze, and resolve SonarQube quality gate failures, code smells, bugs, and coverage gaps.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Fetch, analyze, and resolve SonarQube quality gate failures, code smells, bugs, and coverage gaps.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Address and resolve existing review comments on a GitHub pull request.
Turn an idea, problem description, or bug report into a well-formed GitHub issue and create it on GitHub once approved.
Study the feasibility and viability of a proposed feature or architectural change.
Request follow-up work on a specific issue (e.g. bug fixes, additional requirements, visual regression, or debugging) in a new or existing conversation without prior context.
Use for any question about a codebase, its architecture, file relationships, or project content — especially when graphify-out/ exists, where the question should be treated as a graphify query first. Turns any input (code, docs, papers, images, videos) into a persistent knowledge graph with god nodes, community detection, and query/path/explain tools.
Plan a GitHub issue by investigating context and creating a detailed implementation plan. Present it to the user, and post it to the issue as a comment upon approval. No code changes.
| name | sp-address-sonar-issues |
| description | Fetch, analyze, and resolve SonarQube quality gate failures, code smells, bugs, and coverage gaps. |
| mode | agent |
| tools | ["codebase","sonarqube","terminalLastCommand"] |
| arguments | [{"name":"project_key","description":"The SonarQube project key to inspect (defaults to 'split-trip').","required":false},{"name":"component_path","description":"Optional relative file or directory path to scope the query.","required":false},{"name":"issue_key","description":"Optional specific SonarQube issue key to retrieve and resolve.","required":false}] |
Identify, analyze, and resolve SonarQube code quality issues (bugs, code smells, vulnerabilities) or coverage gaps:
Query the target SonarQube instance to check project health and identify current issues or coverage gaps:
split-trip if $PROJECT_KEY is not provided.sonarqube MCP server tool get_project_quality_gate_status using $PROJECT_KEY to evaluate the overall health and determine which specific quality gate conditions are failing.sonarqube MCP server tool search_sonar_issues_in_projects to locate outstanding bugs, vulnerabilities, or code smells. Filter by project key, and optionally issueStatuses=["OPEN"] and/or component paths.sonarqube MCP server tool search_files_by_coverage to find files with low test coverage. Sort ascending to find the worst-covered files first.Before starting implementation, retrieve precise failure details:
sonarqube MCP server tool show_rule using the rule key of the identified issue to understand the pattern violated and how it should be resolved.get_file_coverage_details with the file key to retrieve line-by-line coverage metrics, showing precisely which lines are uncovered or partially covered.Before and after making edits to any code files, run wc -l to check their line count:
wc -l <path/to/file.kt>
Implement code modifications and unit tests, adhering strictly to all project architecture constraints:
createdAt = System.currentTimeMillis()) locally in the Repository or UseCase.test/ directory.assert(). ALWAYS use JUnit assertions (e.g., Assert.assertTrue(...), Assert.assertEquals(...)).CoroutineDispatcher (using StandardTestDispatcher()) into classes that launch background coroutines to ensure deterministic test execution.Ensure all local verification checks pass successfully:
make check
This verifies compilation, runs Konsist architecture tests, detekt, ktlint formatting checks, and all unit tests.make coverage
Once the fixes are verified and the pull request is created:
change_sonar_issue_status tool to update the status of the resolved issues in SonarQube to accept or falsepositive if applicable.