bmob-database-ios

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

Instructions for using Bmob's iOS software library from Objective-C, Swift, SwiftUI, or UIKit apps. Bmob is a cloud NoSQL database service, and the guide covers connecting an iOS app to it.

In plain words
What is it for?
Use it to install BmobSDK, configure it in an iOS app, initialize the service, and perform database operations with Bmob objects and queries.
Why use it?
It explains the setup details that can otherwise prevent the library from being found or initialized correctly, including Swift's bridging header and the correct Xcode workspace.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to install BmobSDK, configure it in an iOS app, initialize the service, and perform database operations with Bmob objects and queries.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bmob/agent-skills/bmob-database-ios
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.

Any agent
npx skills add bmob/agent-skills --skill bmob-database-ios
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-ios

README.md
[![agentmods](https://agentmods.dev/badge/skills/bmob/agent-skills/bmob-database-ios.svg)](https://agentmods.dev/skills/bmob/agent-skills/bmob-database-ios)
Your own site
<a href="https://agentmods.dev/skills/bmob/agent-skills/bmob-database-ios"><img src="https://agentmods.dev/badge/skills/bmob/agent-skills/bmob-database-ios.svg" alt="Measured on agentmods" height="20"></a>
Per session 218 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,786 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00218 $0.02786
Opus 5 $0.00109 $0.01393
Sonnet 5 $0.00044 $0.00557
Haiku 4.5 $0.00022 $0.00279

Measured 7d ago against content hash 71df51c0c681, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

bmob-database-ios 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 7d 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-ios/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 — iOS Native SDK

iOS SDK 名为 BmobSDK,是 Objective-C 编写的 framework,Swift 项目通过 Bridging Header 桥接使用。SDK 数据模型以 BmobObject 为核心,不需要为每个表写子类(与 Android 不同)。

核心原则

1. 安装 SDK — 强推 CocoaPods

# Podfile
target "你的项目名称" do
  platform :ios, "15.6"
  use_frameworks!
  pod 'BmobSDK'
end
pod install

装完后只打开 .xcworkspace,不要再打开 .xcodeproj,否则找不到 Pod 引入的库。

也可手动导入 BmobSDK.xcframework,并链接以下系统库(详见 references/install.md)。

2. Swift 必须桥接: 新建任意 .m 文件让 Xcode 弹"Create Bridging Header",然后在生成的 项目名-Bridging-Header.h 加:

#import <BmobSDK/Bmob.h>

3. 初始化(OC)AppDelegate.m

- (BOOL)application:(UIApplication *)application
  didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // release 上线时启用备案域名,必须在 registerWithAppKey 之前
    // [Bmob resetDomain:@"https://你的备案域名"];
    [Bmob registerWithAppKey:@"你的Application ID"];
    return YES;
}

3. 初始化(Swift / SwiftUI)AppApp.swift

@main
struct MyApp: App {
    init() {
        Bmob.register(withAppKey: "你的Application ID")
    }
    var body: some Scene { WindowGroup { ContentView() } }
}

4. 域名重置(上线必做): 工信部要求正式上线必须用备案域名:

Bmob.resetDomain("https://sdk.yourapp.com")    // 必须在 register 前
Bmob.register(withAppKey: "...")

OC 端用 [Bmob resetDomain:@"https://sdk.yourapp.com"];

5. 不要硬编码 Master Key 到 App bundle。客户端只用 Application ID(必要时配 Secret Key + 加密授权)。

安全清单

  • release 关闭调试输出:测试期 [Bmob setDebug:YES],上架前删掉。
  • App Transport Security(ATS):如果备案域名是 HTTP(不推荐),需要在 Info.plistNSAppTransportSecurity → NSAllowsArbitraryLoads = YES,但 App Store 审核可能拒;尽量用 HTTPS。
  • 写入的表必须配 ACL:否则任意用户可改任意行。
  • Bridging Header 不要 commit 真实 AppKey:用配置文件 / xcconfig / environment 注入。
  • release 前替换备案域名:参见上面"4. 域名重置"。

常见问题

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

反模式

shared/anti-patterns.md。本端重点:勿 commit 真实 AppKey;ATS 尽量 HTTPS。

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. 7d ago First seen · 243 lines · 218 tokens per session scan A 71df51c0c681

Subscribe to this mod's changes

bmob-database-ios is a skill published in the GitHub repository bmob/agent-skills (3 stars, last pushed 4d ago), licensed MIT. It adds 218 tokens to every session and 2,786 once invoked, about $0.0011 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-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

core-data

Build, review, or improve Core Data persistence in apps that have not adopted SwiftData. Use when working with NSManagedObject subclasses, NSFetchedResultsController for list-driven UI, NSBatchInsertRequest / NSBatchDeleteRequest / NSBatchUpdateRequest for bulk operations, NSPersistentHistoryChangeRequest for…

dpearson2699/swift-ios-skills · 130 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

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