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.
npx agentmods add skills/bmob/agent-skills/bmob-database-androidnpx skills add bmob/agent-skills --skill bmob-database-androidgit clone --depth 1 https://github.com/bmob/agent-skillsWrote 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.
[](https://agentmods.dev/skills/bmob/agent-skills/bmob-database-android)<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>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.
| Model | Per session | Once 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 |
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.
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.md 的 useLibrary '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。
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.
- references/batch.md 3.2 KB
- references/manifest-and-deps.md 4.5 KB
- references/pointer-and-relation.md 2.6 KB
- references/query.md 4.6 KB
- references/snippets/develop-doc--1-2-自定义数据类型-01.txt 795 B
- references/snippets/develop-doc--1-5-1-添加一条数据-01.java 666 B
- references/snippets/develop-doc--1-5-2-更新数据-01.java 543 B
- references/snippets/develop-doc--1-5-3-删除数据-01.java 515 B
- references/snippets/develop-doc--1-5-4-查询一条数据-01.txt 582 B
- references/snippets/develop-doc--1-6-1-批量添加-01.java 1.4 KB
- references/snippets/develop-doc--1-6-2-批量更新-01.java 1.9 KB
- references/snippets/develop-doc--1-6-3-批量删除-01.java 1.6 KB
- references/snippets/develop-doc--1-6-4-批量添加-批量更新-批量删除同时操作-01.java 3.3 KB
- references/snippets/develop-doc--1-6-5-查询多条数据-01.txt 579 B
- references/snippets/develop-doc--1-6-6-同步查询数据-01.java 555 B
- references/snippets/develop-doc--11-地理位置-01.java 114 B
- references/snippets/develop-doc--14-混淆打包-01.xml 281 B
- references/snippets/develop-doc--15-域名备案和重置-01.java 165 B
- references/snippets/develop-doc--18-调试模式-01.java 44 B
- references/snippets/develop-doc--2-1-2-自定义用户类型-01.java 2.5 KB
- references/snippets/develop-doc--2-2-1-账号密码注册-01.java 640 B
- references/snippets/develop-doc--2-2-2-账号密码登录-01.java 716 B
- references/snippets/develop-doc--2-2-2-账号密码登录-02.java 564 B
- references/snippets/develop-doc--2-2-3-判断当前是否有用户登录-01.java 253 B
- references/snippets/develop-doc--2-2-4-获取当前用户以及用户属性-01.java 520 B
- references/snippets/develop-doc--2-2-5-同步本地缓存的用户信息-01.java 1.4 KB
- references/snippets/develop-doc--2-2-5-同步本地缓存的用户信息-02.java 656 B
- references/snippets/develop-doc--2-2-6-更新用户信息-01.java 649 B
- references/snippets/develop-doc--2-2-7-查询用户-01.java 522 B
- references/snippets/develop-doc--2-2-8-提供旧密码修改密码-01.java 550 B
- references/snippets/develop-doc--2-2-9-退出登录-01.java 18 B
- references/snippets/develop-doc--2-3-1-邮箱密码登录-01.java 641 B
- references/snippets/develop-doc--2-3-3-发送邮箱验证邮件-01.java 623 B
- references/snippets/develop-doc--2-3-4-邮箱重置密码-01.java 634 B
- references/snippets/develop-doc--2-4-1-手机号码和密码登录-01.java 626 B
- references/snippets/develop-doc--2-4-2-手机号码和短信验证码登录-01.java 752 B
- references/snippets/develop-doc--2-4-2-手机号码和短信验证码登录-02.java 587 B
- references/snippets/develop-doc--2-4-3-手机号码一键注册或登录-01.java 752 B
- references/snippets/develop-doc--2-4-3-手机号码一键注册或登录-02.java 510 B
- references/snippets/develop-doc--2-4-3-手机号码一键注册或登录-03.java 994 B
- references/snippets/develop-doc--2-4-4-绑定-解绑手机号码-01.txt 632 B
- references/snippets/develop-doc--2-4-4-绑定-解绑手机号码-02.txt 1.1 KB
- references/snippets/develop-doc--2-4-5-手机号码重置密码-01.java 624 B
- references/snippets/develop-doc--2-4-5-手机号码重置密码-02.java 322 B
- references/snippets/develop-doc--2-5-2-第三方平台一键注册或登录-01.java 850 B
- references/snippets/develop-doc--2-5-3-关联第三方平台-01.java 788 B
- references/snippets/develop-doc--2-5-4-解除第三方平台关联-01.java 770 B
- references/snippets/develop-doc--4-数据查询-01.java 472 B
- references/snippets/develop-doc--5-数组操作-01.java 517 B
- references/snippets/develop-doc--7-文件管理-01.xml 160 B
- references/snippets/develop-doc--android-6-0-01.txt 48 B
- references/snippets/develop-doc--android-p-网络配置-01.txt 144 B
- references/snippets/develop-doc--android-p-网络配置-02.txt 105 B
- references/snippets/develop-doc--bql缓存查询-01.java 882 B
- references/snippets/develop-doc--include用法-01.java 24 B
- references/snippets/develop-doc--include用法-02.java 27 B
- references/snippets/develop-doc--include用法-03.java 45 B
- references/snippets/develop-doc--include用法-04.java 29 B
- references/snippets/develop-doc--include用法-05.java 52 B
- references/snippets/develop-doc--上传单一文件-01.java 493 B
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.
- 4d ago First seen · 243 lines · 190 tokens per session scan A e153d49075b1
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.
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"…
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"…
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…
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…
swiftdata-persistence
Design and review SwiftData schemas, queries, migrations, isolation, CloudKit assumptions, offline behavior, and deterministic persistence tests.
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…