Agent Skill
2/7/2026

autofix-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

Nameautofix-router
DescriptionAnalyzes 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 foundmissing-header
  • use of undeclared identifier 'X'undeclared-identifier
  • 'X' is not a member of 'std'namespace
  • cannot find symbol (Java) → java-import
  • incomplete type 'X' usedforward-decl
  • 'MACRO' was not declaredmacro-undefined
  • No rule to make target 'X.o'kbuild-object

2. Linkage & Dependency Errors

Use skills in linkage_dependency/ for:

  • undefined reference to 'X'symbol-dep
  • unresolved external symbol (MSVC) → symbol-dep
  • can't find crate (Rust) → rust-dep
  • visibility "//foo" is not visiblevisibility
  • multiple definition of 'X'multiple-def
  • undefined reference to vtablevtable
  • vendor variant / VNDK errors → variant-mismatch

3. API & Type Errors

Use skills in api_type/ for:

  • no matching function for callsignature-mismatch
  • too many/few argumentssignature-mismatch
  • cannot convert 'X' to 'Y'type-conversion
  • invalid conversion fromtype-conversion
  • discards qualifiers (const) → const-mismatch
  • unimplemented pure virtualoverride-missing
  • deprecated warnings → deprecated-api
  • LINUX_VERSION_CODE issues → version-guard

4. Build Configuration Errors

Use skills in build_config/ for:

  • parse error in Android.bp → blueprint-syntax
  • Undefined identifier in BUILD.gn → gn-scope
  • unknown argument: '-fX'flag-cleaner
  • Permission denied on scripts → permission
  • ninja: error: ... is dirtyninja-cache

Instructions

  1. Parse the Error: Extract the file path, line number, and error message.
  2. Match Category: Compare against the patterns above.
  3. Invoke Skill: Use the matched skill from the appropriate category directory.
  4. 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