pluginagentmarketplace/custom-plugin-android · Archived

data

Room ORM, SQLite, SharedPreferences, DataStore, encryption.

First seen Jan 29, 2026

Installation

$ npx skills add pluginagentmarketplace/custom-plugin-android --skill data

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from pluginagentmarketplace/custom-plugin-android.

npx skills add pluginagentmarketplace/custom-plugin-android

Browse all from pluginagentmarketplace/custom-plugin-android

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 5
License LICENSE
Default branch main
Open issues 2
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

Version2.0.0

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,104 B
  • docs SUMMARY.md 71 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 5 installs

SKILL.md

Data Persistence Skill

Quick Start

Room Entity & DAO

@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)
}

EncryptedSharedPreferences

val prefs = EncryptedSharedPreferences.create(context, "secret",
    MasterKey.Builder(context).setKeyScheme(AES256_GCM).build(),
    AES256_SIV, AES256_GCM)

prefs.edit { putString("token", value) }

DataStore

val dataStore = context.createDataStore("settings")
val preferences = dataStore.data.map { it[KEY] ?: "" }

Key Concepts

Room Advantages

  • Type-safe queries
  • Compile-time checks
  • Suspend/Flow support
  • Migration management

SharedPreferences

  • Simple key-value store
  • Use Encrypted version for sensitive data
  • Limited to small data

DataStore

  • Modern SharedPreferences
  • Coroutine-native
  • Type-safe
  • ACID transactions

Best Practices

✅ Use Room for complex data ✅ Encrypt sensitive data ✅ Implement proper migrations ✅ Handle database errors ✅ Test database operations

Resources