Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

modern-jetpack-compose现代喷气背包组成

Agent Skill

modern-jetpack-compose 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,147

周安装

86

GitHub Stars

81

下载量

695
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:modern-jetpack-compose(现代喷气背包组成)
来源仓库:https://github.com/anhvt52/jetpack-compose-skills
仓库路径:skills/modern-jetpack-compose
安装命令:
npx skills add https://github.com/anhvt52/jetpack-compose-skills --skill modern-jetpack-compose
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/anhvt52/jetpack-compose-skills --skill modern-jetpack-compose

简介

用于识别 Android Jetpack Compose 代码中的过时 API 和现代替代方案。

  • 适合维护和升级 Kotlin UI 代码以确保生命周期、性能和可访问性合规。
  • 通过 github 安装,需确认项目结构和构建工具链。
  • 建议结合原始 README 核验检查规则和修复建议格式。
  • 使用前请评估是否会触发代码扫描或静态分析,避免误报。

SKILL.md

Review or generate Jetpack Compose code for correctness, modern API usage, and adherence to Android best practices. Report only genuine issues — do not nitpick style unless it contradicts a clear rule.

Review / Generation Process

When reviewing existing code, follow these steps in order:

  1. Check for deprecated or outdated APIs → references/api.md
  2. Review composable structure and composition patterns → references/composables.md
  3. Validate state management and data flow → references/state.md
  4. Validate side-effect usage → references/effects.md
  5. Check recomposition stability → references/recomposition.md
  6. Validate navigation implementation → references/navigation.md
  7. Check Material 3 / Expressive design compliance → references/design.md
  8. Validate accessibility → references/accessibility.md
  9. Check performance → references/performance.md
  10. Quick Kotlin code review → references/kotlin.md
  11. Final code hygiene check → references/hygiene.md

When generating new code, load the relevant reference files for the feature being built before writing any code, so output is idiomatic from the start.

For partial reviews or targeted generation, load only the relevant reference files.

Core Instructions

  • Target Compose BOM 2024.x by default. Note where BOM 2025.x (Material Expressive) introduces new components or APIs.
  • Use Material 3. Do not use Material 2 unless the project already uses it.
  • Architecture: MVVM with unidirectional data flow (UDF). ViewModel + StateFlow for screen state. Compose UI observes state, emits events.
  • Target Kotlin with modern language features (sealed interfaces, coroutines, Flow).
  • Do not introduce third-party libraries without asking first.
  • Each composable should live in its own file for non-trivial components.
  • Organize by feature, not by technical layer (screens/home/, screens/settings/, etc.).

Output Format

Organize findings by file. For each issue:

  1. State the file and relevant line(s).
  2. Name the rule being violated.
  3. Show a brief before/after Kotlin snippet.

Skip files with no issues. End with a prioritized summary of the most impactful changes to make first.

Example output:

HomeScreen.kt

Line 14: Use collectAsStateWithLifecycle() instead of collectAsState().

// Before
val uiState by viewModel.uiState.collectAsState()

// After
val uiState by viewModel.uiState.collectAsStateWithLifecycle()

Line 42: Provide key in LazyColumn for stable item identity.

// Before
LazyColumn {
    items(books) { book ->
        BookItem(book)
    }
}

// After
LazyColumn {
    items(books, key = { it.id }) { book ->
        BookItem(book)
    }
}

Line 67: Image missing contentDescription — required for accessibility.

// Before
Image(painter = painterResource(R.drawable.cover), contentDescription = null)

// After — if decorative:
Image(painter = painterResource(R.drawable.cover), contentDescription = null) // OK if truly decorative

// After — if meaningful:
Image(
    painter = painterResource(R.drawable.cover),
    contentDescription = stringResource(R.string.book_cover_description)
)

Summary

  1. State (high): collectAsState() on line 14 does not respect lifecycle — replace with collectAsStateWithLifecycle().
  2. Performance (medium): Missing key in LazyColumn on line 42 causes unnecessary recomposition.
  3. Accessibility (medium): Image on line 67 needs a meaningful contentDescription.

References

  • references/api.md — deprecated APIs and their modern replacements.
  • references/composables.md — composable structure, naming, and composition patterns.
  • references/state.md — state management, ViewModel, StateFlow, and data flow.
  • references/effects.md — side effects: LaunchedEffect, DisposableEffect, SideEffect.
  • references/recomposition.md — recomposition stability, @Stable/@Immutable, derivedStateOf.
  • references/navigation.md — Navigation Compose, type-safe nav, nested graphs.
  • references/design.md — Material 3 / Expressive theming, adaptive layouts.
  • references/accessibility.md — TalkBack, semantics, content descriptions, touch targets.
  • references/performance.md — LazyList optimization, remember, scope of state reads.
  • references/kotlin.md — modern Kotlin patterns for Android.
  • references/hygiene.md — code hygiene, testing, lint.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.89%
按下载量换算263

Claude

29.06%
按下载量换算202

Cursor

17.31%
按下载量换算120

Gemini CLI

8.65%
按下载量换算60

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills