用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/pluginagentmarketplace/custom-plugin-android --skill data命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
MVVM pattern, Clean Architecture, Repository pattern, dependency injection, SOLID principles.
Retrofit, OkHttp, REST APIs, JSON serialization, network security.
Android core components lifecycle, Activities, Fragments, Services, Intent system.
基于 SOC 职业分类
正在显示 SKILL.md
| name | data |
| description | Room ORM, SQLite, SharedPreferences, DataStore, encryption. |
| version | 2.0.0 |
| sasmp_version | 1.3.0 |
| bonded_agent | 04-data-management |
| bond_type | PRIMARY_BOND |
| atomic | true |
| single_responsibility | Data persistence & storage |
| parameters | {"storage_type":{"type":"string","enum":["room","datastore","preferences","encrypted"],"required":false},"operation":{"type":"string","enum":["create","read","update","delete","migrate"],"required":false}} |
| retry | {"max_attempts":2,"backoff":"exponential","on_failure":"suggest_transaction_rollback"} |
| logging | {"level":"info","include":["query","storage_type","security_level"]} |
@Entity
data class User(@PrimaryKey val id: Int, val name: String)
@Dao
interface UserDao {
@Query("SELECT * FROM User")
suspend fun getAllUsers(): List<User>
@Insert
suspend fun insert(user: User)
}
val prefs = EncryptedSharedPreferences.create(context, "secret",
MasterKey.Builder(context).setKeyScheme(AES256_GCM).build(),
AES256_SIV, AES256_GCM)
prefs.edit { putString("token", value) }
val dataStore = context.createDataStore("settings")
val preferences = dataStore.data.map { it[KEY] ?: "" }
✅ Use Room for complex data ✅ Encrypt sensitive data ✅ Implement proper migrations ✅ Handle database errors ✅ Test database operations