这是什么
Google 官方的分步流程,把 Android XML 视图迁移到 Jetpack Compose,从依赖配置到清理旧代码。
Provides a structured workflow for migrating an Android XML View to Jetpack Compose. This skill details the step-by-step process, from planning and dependency setup, to theming and layout migration, validation and XML cleanup. Use this skill when you need to migrate an XML View to Jetpack Compose in an Android project. It solves the problem of converting the UI of a legacy XML View into modern, declarative Compose components while maintaining interoperability.
实测结果
该 Skill 尚未实测,目前只完成了下面的静态体检。 申请实测
静态体检
检查器 1.0.0,提交 6daa53e:16 项通过、0 项警告、0 项失败、5 项提示。结果最近一次变化于 2026-10-29。
| 检查项 | 结果 | 详情 |
|---|---|---|
frontmatter.unknownKeys文档未定义的 frontmatter 字段(仅提示)。 | 提示 | none |
files.inventorySkill 目录中的文件数与总大小(仅提示)。 | 提示 | 8 files, 54432 bytes |
scripts.present附带的、Agent 可能执行的脚本(仅提示)。 | 提示 | no scripts |
scripts.network会访问网络的脚本(仅提示)。 | 提示 | no network calls found |
pinned.drift钉定版本之后上游是否改动了该 Skill(仅提示)。 | 提示 | unchanged since the pinned commit |
skillmd.presentSkill 根目录存在 SKILL.md。 | 通过 | SKILL.md found |
frontmatter.parseSKILL.md 以可解析的 YAML frontmatter 开头。 | 通过 | frontmatter parsed |
frontmatter.namename 存在,不超过 64 个字符,只含小写字母、数字和连字符。 | 通过 | valid name |
frontmatter.nameMatchesDirname 与 SKILL.md 所在目录名一致。 | 通过 | name matches its directory |
frontmatter.descriptiondescription 存在且不超过 1024 个字符;少于 50 个字符给出警告。 | 通过 | 464 characters |
frontmatter.descriptionTriggerdescription 说明了何时使用(如 "use when…"、"当用户…")。 | 通过 | states when to use the skill |
frontmatter.descriptionVoicedescription 使用第三人称,且不含 XML 标签。 | 通过 | third person, no XML |
body.tokensApproxSKILL.md 正文的近似 token 数;超过 5000 给出警告。 | 通过 | within budget |
body.linesSKILL.md 正文行数;超过 500 行给出警告。 | 通过 | 103 lines |
refs.brokenLinksSKILL.md 中的相对链接指向存在的文件。 | 通过 | all relative links resolve |
files.binary没有打包可执行文件或压缩包(.exe、.zip、.jar 等)。 | 通过 | no executables or archives |
scripts.destructive含 rm -rf、sudo、chmod 777 等破坏性命令的脚本。 | 通过 | none found |
secrets.scan没有疑似私钥或 API token 的字符串。 | 通过 | none found |
instructions.risk没有要求覆盖先前指令、外传密钥或绕过安全控制的指令。 | 通过 | none found |
license.detected在 frontmatter、Skill 目录或仓库中声明了许可证。 | 通过 | declared in frontmatter |
repo.activitySkill 路径在检查前 365 天内有更新,且仓库未归档。 | 通过 | last changed 33 days before the check |
这份报告的局限
- 结果只对应该 Skill 的一个提交版本,之后的版本可能表现不同。
- 静态体检只读取文件,不能说明 Skill 能否在任务上带来帮助。
- 发布前未征求作者意见,欢迎指正。 报告错误
常见问题
- SkillFlux 的数据如何评价 XML 视图迁移到 Compose?
- 截至 2026-10-29,SkillFlux 对XML 视图迁移到 Compose(提交 6daa53e)的 21 项静态体检结果为 16 项通过、0 项警告、0 项失败、5 项仅作提示;该 Skill 尚未进行实测对照。
- XML 视图迁移到 Compose 做过实测吗?
- 还没有,目前只做了静态体检。可以在提交页通过邮件申请实测。
- XML 视图迁移到 Compose 使用什么许可证?
- 在提交 6daa53e 中检测到的许可证是 Apache-2.0,以仓库中的原文为准。
如何引用
SkillFlux(2026-10-29)。《XML 视图迁移到 Compose 体检报告》,提交 6daa53e,检查器 1.0.0。https://skillflux.app/skills/android-skills-migrate-xml-views-to-jetpack-compose/
BibTeX
@misc{skillflux_android_skills_migrate_xml_views_to_jetpack_compose_20261029,
author = {{SkillFlux}},
title = {Migrate XML views to Compose health check (commit 6daa53e)},
year = {2026},
month = {10},
howpublished = {\url{https://skillflux.app/skills/android-skills-migrate-xml-views-to-jetpack-compose/}},
note = {Methodology v1. Data: https://skillflux.app/data/skills/android-skills-migrate-xml-views-to-jetpack-compose.json. Accessed 2026-10-29.},
}