autofix-router
Analyzes build errors and routes to the appropriate AutoFix skill. Use this as the entry point when encountering a build failure.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Analyzes build errors and routes to the appropriate AutoFix skill. Use this as the entry point when encountering a build failure.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Comprehensive build error repair tool for C++, Rust, and Java projects using Soong, GN, Make, or CMake. Automatically fixes 30+ types of errors including headers, linking, APIs, and config.
Fixes function call errors with wrong number or type of arguments.
Fixes type mismatch errors by adding appropriate casts or conversions.
Fixes syntax errors in Android.bp files.
Removes unsupported or unknown compiler flags from build configurations.
Fixes scope and variable errors in BUILD.gn files.
| name | autofix-router |
| description | Analyzes build errors and routes to the appropriate AutoFix skill. Use this as the entry point when encountering a build failure. |
You are an expert build error analyzer. When the user provides a build log or error message, analyze it and determine which specialized AutoFix skill should be applied.
Use skills in symbol_header/ for:
fatal error: 'X.h' file not found → missing-headeruse of undeclared identifier 'X' → undeclared-identifier'X' is not a member of 'std' → namespacecannot find symbol (Java) → java-importincomplete type 'X' used → forward-decl'MACRO' was not declared → macro-undefinedNo rule to make target 'X.o' → kbuild-objectUse skills in linkage_dependency/ for:
undefined reference to 'X' → symbol-depunresolved external symbol (MSVC) → symbol-depcan't find crate (Rust) → rust-depvisibility "//foo" is not visible → visibilitymultiple definition of 'X' → multiple-defundefined reference to vtable → vtablevendor variant / VNDK errors → variant-mismatchUse skills in api_type/ for:
no matching function for call → signature-mismatchtoo many/few arguments → signature-mismatchcannot convert 'X' to 'Y' → type-conversioninvalid conversion from → type-conversiondiscards qualifiers (const) → const-mismatchunimplemented pure virtual → override-missingdeprecated warnings → deprecated-apiLINUX_VERSION_CODE issues → version-guardUse skills in build_config/ for:
parse error in Android.bp → blueprint-syntaxUndefined identifier in BUILD.gn → gn-scopeunknown argument: '-fX' → flag-cleanerPermission denied on scripts → permissionninja: error: ... is dirty → ninja-cacheInput:
src/main.cpp:42:10: fatal error: 'utils/config.h' file not found
Analysis:
fatal error: '...' file not foundmissing-headerAction: Navigate to symbol_header/missing-header/SKILL.md and follow its instructions.