Agent Skill
2/7/2026autofix-router
Analyzes build errors and routes to the appropriate AutoFix skill. Use this as the entry point when encountering a build failure.
H
hyz0906
0GitHub Stars
1Views
npx skills add hyz0906/autofix_skills
SKILL.md
| 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. |
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.
AutoFix Router
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.
Error Categories
1. Symbol & Header Errors
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-object
2. Linkage & Dependency Errors
Use 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/VNDKerrors → variant-mismatch
3. API & Type Errors
Use 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-missingdeprecatedwarnings → deprecated-apiLINUX_VERSION_CODEissues → version-guard
4. Build Configuration Errors
Use skills in build_config/ for:
parse errorin Android.bp → blueprint-syntaxUndefined identifierin BUILD.gn → gn-scopeunknown argument: '-fX'→ flag-cleanerPermission deniedon scripts → permissionninja: error: ... is dirty→ ninja-cache
Instructions
- Parse the Error: Extract the file path, line number, and error message.
- Match Category: Compare against the patterns above.
- Invoke Skill: Use the matched skill from the appropriate category directory.
- If Uncertain: If no clear match, analyze the error semantically and pick the closest fit.
Example
Input:
src/main.cpp:42:10: fatal error: 'utils/config.h' file not found
Analysis:
- Pattern:
fatal error: '...' file not found - Category: Symbol & Header
- Skill:
missing-header
Action: Navigate to symbol_header/missing-header/SKILL.md and follow its instructions.
Skills Info
Original Name:autofix-routerAuthor:hyz0906
Download