bmob-database-swift SKILL.md skillA

bmob-database-swift from bmob/agent-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add bmob/agent-skills/bmob-database-swift@v0.2.1

Pins v0.2.1 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
bmob/agent-skills
Path
skills/bmob-database-swift/SKILL.md
Versions recorded
6
Latest version
v0.2.1, committed Oct 21, 2026
First version recorded
Jun 24, 2026
Size
11,480 bytes
Repository stars
4
License
MIT

Use when implementing Bmob NoSQL database CRUD or realtime data listening with the pure Swift BmobSwiftSDK for iOS 15+ / macOS 12+ using Swift Package Manager or CocoaPods, import BmobSDK, async/await, Bmob.initialize(appKey:), BmobObject, BmobQuery, BmobUser, BmobFile, BmobPointer, BmobRelation, BmobGeoPoint, BmobACL, CloudFunction, BmobEvent, BmobActionType, resetIODomain, 实时数据监听. NOT for legacy Objective-C BmobSDK / Bridging Header projects (use bmob-database-ios), JavaScript / WeChat Mini…

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Bmob Database — Pure Swift SDK

纯 Swift SDK `BmobSwiftSDK` 面向 iOS 15+ / macOS 12+,使用 Swift Package Manager 或 CocoaPods 安装,API 以 `async/await`、`Bmob.initialize(appKey:)`、`BmobObject`、`BmobQuery` 为核心。

如果项目使用旧版 Objective-C `BmobSDK`、`BmobSDK.xcframework`、Bridging Header 或 `saveInBackgroundWithResultBlock`,改读 [`bmob-database-ios`](../bmob-database-ios/SKILL.md)。

## 核心原则

1. **先确认 SDK 形态**:纯 Swift SDK 的包名是 `BmobSwiftSDK`,导入模块通常是 `import BmobSDK`;旧 iOS SDK 是 Objective-C framework + Bridging Header。
2. **最低环境**:Xcode 15.0+、Swift 5.9+、iOS 15.0+、macOS 12.0+。
3. **初始化是异步的**:启动早期 `try await Bmob.initialize(appKey:)`;业务请求前必要时检查 `await Bmob.isReady`。
4. **数据表默认用 `BmobObject(className:)`**:字段通过下标读写,更新 / 删除必须带 `objectId`。
5. **查询用链式 `BmobQuery`**:`whereKey`、`order`、`limit`、`skip`、`includeKey` 都返回 query,最后 `try await find()` / `get(objectId:)`。
6. **区分 API 与监听域名**:API 域名用 `Bmob.resetDomain(...)`,在 `initialize` 前设置;实时监听域名用 `try await Bmob.resetIODomain(...)`,可在初始化前后设置,连接前等待设置完成。

## 安全清单

- [ ] 示例只放 `"YOUR_APP_KEY"` / `"your-application-id"`,不要 commit 真实 AppKey。
- [ ] 客户端不要携带 Master Key;需要管理能力时改走服务端、REST 管理脚本或 MCP。
- [ ] 写入业务表时设置 ACL(如 `BmobACL`),避免默认权限导致任意用户读写。
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add bmob/agent-skills/bmob-database-swift@sha256:fcc6699799e0b293

The line at the top of this page pins the label v0.2.1, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_wf6ruwfjwqglwln3.svg)](https://markdownregistry.com/a/art_wf6ruwfjwqglwln3)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 6 versions of this file, between Jun 24, 2026 and Oct 21, 2026, about one every 24 days.

versioncommittedcommitsizeaudit
v0.2.1 latest2026-10-21 ada2fcc 11,480 BA view · diff
v0.2.02026-10-21 f7adc4f 11,409 BA view · diff
v0.1.02026-10-21 b9e30f6 11,453 BA view · diff
v0.1.02026-09-07 3ccaddc 10,047 BA view · diff
v0.1.02026-06-29 71e1a6e 9,754 BA view · diff
v0.1.02026-06-24 d888606 8,731 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (11480 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

bmob/agent-skills · 4 stars · license MIT · pushed 2026-10-21 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_wf6ruwfjwqglwln3
GET https://markdownregistry.com/api/v1/resolve?ref=bmob/agent-skills/bmob-database-swift
GET https://markdownregistry.com/api/v1/blob/fcc6699799e0b29345e2502f008beb4292eb0565185a7a4458e3807de7417a1d

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from bmob/agent-skills

bmob-cloud-function-development SKILL.md skill
bmob/agent-skills · skills/bmob-cloud-function-development/SKILL.md · Write, upload, verify, and sync Bmob server-side cloud functions using the Bmob MCP server when available. Use when the…
v0.4.0 · audit A · 4 stars
bmob-database-android SKILL.md skill
bmob/agent-skills · skills/bmob-database-android/SKILL.md · Use when implementing Bmob NoSQL database CRUD in an Android Native project (Java or Kotlin). Triggers…
v0.1.0 · audit A · 4 stars
bmob-database-flutter SKILL.md skill
bmob/agent-skills · skills/bmob-database-flutter/SKILL.md · Use when implementing Bmob NoSQL database CRUD in a Flutter / Dart project with the official bmob_plugin package…
v0.1.0 · audit A · 4 stars
bmob-database-ios SKILL.md skill
bmob/agent-skills · skills/bmob-database-ios/SKILL.md · Use when implementing Bmob NoSQL database CRUD in an iOS native project — both Objective-C and Swift / SwiftUI / UIKit…
v0.1.0 · audit A · 4 stars
bmob-database-javascript SKILL.md skill
bmob/agent-skills · skills/bmob-database-javascript/SKILL.md · Use when implementing Bmob NoSQL database CRUD with the cross-platform hydrogen-js-sdk (3.0+ supports both Secret Key +…
v0.1.0 · audit A · 4 stars
bmob-database-restful SKILL.md skill
bmob/agent-skills · skills/bmob-database-restful/SKILL.md · Use when interacting with Bmob backend cloud over plain HTTP / curl from ANY language that lacks a Bmob SDK — Python…
v0.1.0 · audit A · 4 stars
bmob-error-codes SKILL.md skill
bmob/agent-skills · skills/bmob-error-codes/SKILL.md · Use when the user sees a Bmob error response with a numeric code (e.g. 9015, 101, 105, 206, 211, 9013, 10017, 10076)…
v0.1.0 · audit A · 4 stars
bmob-mcp SKILL.md skill
bmob/agent-skills · skills/bmob-mcp/SKILL.md · Use when the user has the Bmob MCP server configured (http://mcp.bmobapp.com/mcp) and wants to perform LIVE operations…
v0.3.0 · audit A · 4 stars
bmob SKILL.md skill
bmob/agent-skills · skills/bmob/SKILL.md · Use whenever the user mentions Bmob backend cloud (Bmob, BmobApp, bmobapp.com, Bmob 后端云) for ANY task: design data…
v0.1.0 · audit A · 4 stars

Every file in bmob/agent-skills

Browse by kind, by grade A, or by owner.