跳到正文
cccskills
免费在 GitHub 公开

mobile-local-data

Use this skill when changing persisted local data, storage keys, caches, or any offline/sync behavior.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md1.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

mobile-local-data — Canonical Skill

Purpose

Constrain local persistence to the verified Preferences-only model and block invented offline architectures.

When to use

Storage keys, caches, logout cleanup, quota/expiry, or any SQLite/offline proposal (verify-first — none is implemented).

Required reading

  • skills/mobile/LOCAL_DATA.md

Relevant project locations

  • src/utils/StorageUtil.ts, src/composables/useAppStorage.ts
  • src/composables/useCache.ts, src/libs/constant.ts (keys)

Mandatory rules

  1. App persistence uses Capacitor Preferences. No app-managed SQLite/IndexedDB database or migration layer is present.
  2. clearStorage preserves locale/theme/FCM/device keys — keep that list.
  3. Any schema/key change must review existing data, upgrade path, Android/iOS parity, logout cleanup, and tests.
  4. Never claim encryption, offline-first sync, or conflict resolution — all NOT_FOUND.

Implementation workflow

  1. Inventory affected keys + readers/writers + logout path.
  2. Plan preserve-vs-migrate for existing user data.
  3. Implement with namespaced keys and cleanup.
  4. Verify per mobile-testing, incl. upgrade + logout scenarios.

Verification

Storage round-trip + preservation + logout-cleanup checks; sync claims need queue/conflict evidence.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Use this skill when adding or changing REST API calls, HTTP client config, error handling, uploads/downloads, or network behavior.

中文简介正在准备中。当前显示原文说明。

bekaku/vue-ionic-example-app62026年10月19日 更新

Use this skill when working on login, logout, session restore, tokens, route guards, or any authentication and authorization behavior.

中文简介正在准备中。当前显示原文说明。

bekaku/vue-ionic-example-app62026年10月19日 更新

Use this skill when building, syncing Capacitor, or preparing Android/iOS releases and environment configuration.

中文简介正在准备中。当前显示原文说明。

bekaku/vue-ionic-example-app62026年10月19日 更新

Use this skill when creating, modifying, or debugging Ionic Vue components, pages, forms, dialogs, or theme/safe-area UI behavior.

中文简介正在准备中。当前显示原文说明。

bekaku/vue-ionic-example-app62026年10月19日 更新

Use this skill for any Ionic Vue + Capacitor mobile work: Vue architecture, Composition API, TypeScript, state, env config, shared conventions. Required for every implementation task alongside mobile-testing.

中文简介正在准备中。当前显示原文说明。

bekaku/vue-ionic-example-app62026年10月19日 更新

Use this skill when handling inbound URLs, custom schemes, app links, universal links, or URL-bearing notification payloads.

中文简介正在准备中。当前显示原文说明。

bekaku/vue-ionic-example-app62026年10月19日 更新

查看 bekaku 的全部技能

报告此技能的问题