bmob-database-android

bmob-database-android is a skill for Claude Code, Codex from bmob/agent-skills. It costs 190 tokens per session (2,981 once invoked), scanned A, original, MIT.

An Android development guide for using Bmob, a hosted NoSQL database service, from native Java or Kotlin apps. It covers the SDK, data models, queries, users, files, relations, and asynchronous callbacks.

In plain words
What is it for?
Use it to add Bmob to an Android project, define database objects, create, read, update, or delete records, query data, manage users and files, and handle results and errors.
Why use it?
It provides the setup and coding rules needed to connect an Android app safely and map classes to Bmob tables. This avoids common mistakes with initialization, permissions, model fields, and server-managed values.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/bmob/agent-skills/bmob-database-android
Any agent
npx skills add bmob/agent-skills --skill bmob-database-android
Clone the repo
git clone --depth 1 https://github.com/bmob/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bmob-database-android

README.md
[![agentmods](https://agentmods.dev/badge/skills/bmob/agent-skills/bmob-database-android.svg)](https://agentmods.dev/skills/bmob/agent-skills/bmob-database-android)
Your own site
<a href="https://agentmods.dev/skills/bmob/agent-skills/bmob-database-android"><img src="https://agentmods.dev/badge/skills/bmob/agent-skills/bmob-database-android.svg" alt="Measured on agentmods" height="20"></a>
Per session 190 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,981 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00190 $0.02981
Opus 5 $0.00095 $0.01491
Sonnet 5 $0.00038 $0.00596
Haiku 4.5 $0.00019 $0.00298

Measured 4d ago against content hash e153d49075b1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

bmob-database-android scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/bmob-database-android/SKILL.md · 243 lines

How it starts

The opening of the file, as written. The whole thing — 243 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Bmob Database — Android Native SDK

Bmob 为 Android 原生提供 Java/Kotlin SDK,发布在 Maven 仓库 io.github.bmob:android-sdk。模型层用 继承 BmobObject 的方式(一个 JavaBean 子类 = 一张表),CRUD 通过 SDK 提供的 Listener 回调返回。

核心原则

1. SDK 引入: app/build.gradle 添加:

dependencies {
    implementation 'io.github.bmob:android-sdk:4.2.1'
    implementation 'io.reactivex.rxjava3:rxjava:3.1.9'
    implementation 'io.reactivex.rxjava3:rxandroid:3.0.2'
    implementation 'com.squareup.okhttp3:okhttp:4.8.1'
    implementation 'com.squareup.okio:okio:2.2.2'
    implementation 'com.google.code.gson:gson:2.8.5'
}

2. Application 子类初始化: 一次性、必须在任何 Bmob 调用之前。

public class BmobApp extends Application {
    @Override public void onCreate() {
        super.onCreate();
        Bmob.initialize(this, "你的Application ID");
    }
}

AndroidManifest.xml 里指定 android:name=".BmobApp"

3. 必备权限与 ContentProvider: 详见 references/manifest-and-deps.md(INTERNET / ACCESS_NETWORK_STATE / READ_PHONE_STATE / <provider> 等)。

4. JavaBean 继承 BmobObject 表名 = 类名,字段名 = 成员变量名。不要手动写 objectId / createdAt / updatedAt / ACL,BmobObject 已经提供 getter。

5. Number 字段必须用封装类Integer / Long / Double 等),不要用原生 int / long / double,否则保存时无法区分默认值。

6. Android 6.0+ 网络兼容:见 references/manifest-and-deps.mduseLibrary 'org.apache.http.legacy'network_security_config.xml

安全清单

  • 不要在 APK 中泄漏 Master Key。客户端只用 Application ID(必要时配 Secret Key + 加密授权)。
  • release 包关闭调试模式Bmob.setIsDebug(true) 仅 debug 构建打开。
  • 混淆配置必须保留 SDK 类:见 references/manifest-and-deps.md 的 ProGuard 段。
  • 写操作的表必须配 ACL:否则任意用户可改任意行。
  • release 上线前替换为备案域名Bmob.resetDomain("http://你的SDK域名/8/") 必须在 Bmob.initialize 之前
  • Number 类型用包装类:避免 0 与"未设置"无法区分。

常见问题

跨平台 Q&A:shared/faq.md

反模式

shared/anti-patterns.md。本端重点:success 回调内未捕获异常 → 假 9015;勿用原生 int 存 Number。

Read the full file on GitHub · 243 lines

Files

What ships with it

60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 243 lines · 190 tokens per session scan A e153d49075b1

Subscribe to this mod's changes

bmob-database-android is a skill published in the GitHub repository bmob/agent-skills (3 stars, last pushed 1mo ago), licensed MIT. It adds 190 tokens to every session and 2,981 once invoked, about $0.0010 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

sf-schema

Scaffold custom objects, fields, validation rules, permission sets, and other schema metadata as SFDX source XML. Use when asked to create objects, custom fields, permission sets, validation rules, or generate metadata XML. Activate on mentions of "custom object", "custom field", "permission set", "validation rule"…

Clientell-Ai/salesforce-skills · 86 tokens

sf-data

Handle Salesforce data operations including data migration, sandbox seeding, bulk data loading, data export, and data cleanup. Use when asked about data migration, sandbox seeding, bulk data loading, CSV import/export, or moving data between orgs. Activate on mentions of "data migration", "sandbox seed", "bulk load"…

Clientell-Ai/salesforce-skills · 87 tokens

sf-soql

Build and optimize SOQL queries including relationship queries, aggregate functions, polymorphic TYPEOF, and selective filters. Use when asked to write queries, debug slow queries, optimize existing SOQL, or enforce query security. Activate on mentions of "SOQL", "query", "SELECT", "WHERE", "aggregate", "relationship…

Clientell-Ai/salesforce-skills · 78 tokens

swiftdata

Implement, review, or improve data persistence using SwiftData. Use when defining @Model classes with @Attribute, @Relationship, @Transient, #Unique, or #Index; when querying with @Query, #Predicate, FetchDescriptor, or SortDescriptor; when configuring ModelContainer and ModelContext for SwiftUI or background work…

dpearson2699/swift-ios-skills · 106 tokens

swiftdata-persistence

Design and review SwiftData schemas, queries, migrations, isolation, CloudKit assumptions, offline behavior, and deterministic persistence tests.

memi-design/design-skills · 30 tokens

data-persistence

Wire up SwiftData models, queries, and cross-screen state after screens are built with placeholder content. Use this skill when screens look right but have no real data, when you need to define your data models, or when you need to ensure state updates propagate across the app. Typically done as a single focused…

troyjthomas/ios-agent-skills · 76 tokens