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.
mdr add bmob/agent-skills/bmob-database-swift@v0.2.1Pins 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
mdr add bmob/agent-skills/bmob-database-swift@sha256:fcc6699799e0b293The 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.
[](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.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v0.2.1 latest | 2026-10-21 | ada2fcc | 11,480 B | A | view · diff |
| v0.2.0 | 2026-10-21 | f7adc4f | 11,409 B | A | view · diff |
| v0.1.0 | 2026-10-21 | b9e30f6 | 11,453 B | A | view · diff |
| v0.1.0 | 2026-09-07 | 3ccaddc | 10,047 B | A | view · diff |
| v0.1.0 | 2026-06-29 | 71e1a6e | 9,754 B | A | view · diff |
| v0.1.0 | 2026-06-24 | d888606 | 8,731 B | A | view |
Audit of the latest version
- 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
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.