Back to list
hyz0906

autofix-visibility

by hyz0906

0🍴 0📅 Jan 19, 2026

SKILL.md


name: autofix-visibility description: Fixes Soong visibility restriction errors by updating module visibility lists.

Visibility Skill

Fixes Android Soong build errors related to module visibility restrictions.

Detection Patterns

  • module "X" is not visible to "//path/to:Y"
  • visibility "//foo" is not visible from "//bar"

Strategy

  1. Identify Source/Target: Parse which module needs visibility to which.
  2. Update Visibility: Add the requesting module's path to the target's visibility list.

Instructions

Step 1: Parse the Error

Extract:

  • Target module: The module being requested (has restricted visibility)
  • Requesting module: The module trying to use the target

Step 2: Locate Target's Android.bp

Find the Android.bp file that defines the target module.

Step 3: Update Visibility

Before:

cc_library {
    name: "libprivate",
    visibility: ["//system/core"],
}

After:

cc_library {
    name: "libprivate",
    visibility: [
        "//system/core",
        "//vendor/my_app",  // ADD the requesting module's path
    ],
}

Visibility Patterns

  • ["//visibility:public"] - Visible to all
  • ["//visibility:private"] - Only same package
  • ["//path/to/package"] - Specific package
  • ["//path/to/package:__subpackages__"] - Package and subpackages

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon