원클릭으로
codecheck
// Run all three code quality checks (detekt, checkstyle, lint), read the reports, and propose fixes for any issues found.
// Run all three code quality checks (detekt, checkstyle, lint), read the reports, and propose fixes for any issues found.
Build and run the Jetpack Android app on a device or emulator. This skill should be used when the user asks to run the app, launch the app, or invokes /run-app.
Push current changes and create a draft Pull Request on GitHub. This skill should be used when the user asks to create a PR, draft PR, or invokes /draft-pr.
| name | codecheck |
| description | Run all three code quality checks (detekt, checkstyle, lint), read the reports, and propose fixes for any issues found. |
Run all three code quality checks, read the reports, and propose fixes for any issues found.
Detect the main/default branch (typically trunk or main):
git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null \
| sed 's@^refs/remotes/origin/@@'
If that fails, check if trunk or main exists and use whichever
is found. Store this as <main-branch> for later steps.
Run these Gradle tasks:
./gradlew detekt
./gradlew checkstyle
./gradlew lintWordPressRelease
Run all three in parallel to save time. Allow each to complete even if others fail.
After the checks complete, read the generated report files:
WordPress/build/reports/detekt/detekt.htmlWordPress/build/reports/checkstyle/checkstyle.htmlWordPress/build/reports/lint-results-wordpressRelease.htmlParse each report to extract the list of issues (file, line, rule, message).
Focus on issues in files that were changed on the current branch. To determine changed files:
git diff --name-only $(git merge-base <main-branch> HEAD)..HEAD
If no branch changes are detected (e.g., on trunk), report all issues found.
Output a summary table or grouped list of issues organized by tool:
For each issue include the file path, line number, rule name, and the message.
For each issue, propose a specific fix. Group fixes by file. Show the current code and what it should be changed to.
Present the proposed fixes and ask the user which ones to apply before making any changes.