用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/thejaustin/ShizukuPlus --skill lint-repair命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | lint-repair |
| description | Automates running Android Lint and repairing errors/warnings in the codebase. |
| license | Complete terms in LICENSE |
| metadata | {"author":"Google LLC","keywords":["lint","static analysis","detekt","code smells"]} |
This skill automates the execution, parsing, and remediation of Android Lint warnings with minimal context bloat.
Execute Lint: Run the Gradle lint task.
./gradlew :manager:lintRelease
Note: Do not read the massive console output. Rely on the generated XML report.
Parse XML Report Efficiently:
The Android lint report can be massive. Instead of reading the whole XML into context, use an inline Python script or xmllint/grep pipeline to extract ONLY the severity="Error" or severity="Fatal" issues.
python3 -c '
import xml.etree.ElementTree as ET
tree = ET.parse("manager/build/reports/lint-results-release.xml")
for issue in tree.getroot().findall("issue"):
if issue.get("severity") in ["Error", "Fatal"]:
loc = issue.find("location")
print(f"{loc.get(\"file\")}:{loc.get(\"line\")} - {issue.get(\"message\")}")
'
Contextualize and Fix:
Read only the specific lines mentioned in the python output using the view_file tool (specifying exact StartLine and EndLine padding).
Use multi_replace_file_content to fix the warnings without loading the entire class.
基于 SOC 职业分类