用途:该技能面向 Android 项目,用于导航和分析项目结构、模块与依赖,帮助开发者快速定位文件并理解代码关系。适用场景包括探索项目结构、查找相关文件、分析模块依赖、理解包组织以及定位特定代码模式。
主要能力:提供标准 Android 项目结构参考,按层给出文件命名模式,例如 Manager 对应 biz/manage//Manager.kt、Service 对应 biz/service//Service.kt、Repository 对应 biz/repo//Repository.kt、ViewModel 对应 ui/viewmodel/*ViewModel.kt、Screen 对应 ui/launcher//Route.kt、Component 对应 ui/component/**/.kt、Test 对应 test/**/*Test.kt。还给出常用搜索命令,如 find . -name "*ViewModel.kt" -type f、grep -r "@Composable.fun.Route" --include=".kt"、grep -rn "class GameManager" --include=".kt" 等。
架构导航:描述 MVVM 层流 UI (Route) → ViewModel → Manager/UseCase → Repository → DataSource,并列出关键文件类型与命名约定,如入口 LauncherActivity.kt、App.kt,DI 设置 AppModule.kt、*Module.kt,导航 NavRoutes.kt、AppNavHost.kt,状态机 *Phase.kt、State.kt,会话 CurrentSession.kt。
依赖分析:提供 ./gradlew dependencies、./gradlew :app:dependencies --configuration implementation 等命令,以及检查版本冲突的方式。
使用方式:通过搜索类名、跟踪 import 从 UI 到 ViewModel 到 Manager、将 Impl.kt 替换为 ImplTest.kt 查找测试、在 AppModule.kt 中检查 DI 注册。
限制:资料未提供该技能的安装方式、收费信息、平台支持范围或实际效果验证,相关事实暂未提供。