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-flutternpx skills add bmob/agent-skills --skill bmob-database-fluttergit 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-flutter)<a href="https://agentmods.dev/skills/bmob/agent-skills/bmob-database-flutter"><img src="https://agentmods.dev/badge/skills/bmob/agent-skills/bmob-database-flutter.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.1 | $0.00185 | $0.02528 |
| Opus 5 | $0.00093 | $0.01264 |
| Sonnet 5 | $0.00037 | $0.00506 |
| Haiku 4.5 | $0.00018 | $0.00253 |
Grade A, and why
bmob-database-flutter 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 5d 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 — 242 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Bmob Database — Flutter / Dart SDK
官方 Flutter 插件 bmob_plugin(源码 bmob-flutter-sdk/data_plugin)。数据模型 继承 BmobObject + JSON 序列化(与 Android 类似),查询用泛型 BmobQuery<T>,异步返回 Future + .then / .catchError。
完整 API 以 BmobDocs Flutter 文档 为准;agent 可直接 WebFetch metadata.docs_raw。
核心原则
1. 安装与引用
flutter pub add bmob_plugin
import 'package:bmob_plugin/bmob_plugin.dart';
2. 初始化 — 控制台 → 设置 → 应用密钥 → Secret Key、API 安全码;不要在客户端填 masterKey(第三个可选参数仅服务端场景)。
// main() 或 App 启动最早处
Bmob.initialize(secretKey, apiSafe);
// 不推荐:Bmob.initialize(secretKey, apiSafe, masterKey);
3. 上线换备案域名 — resetDomain 必须在 initialize 之前(开发期内置测试域名有请求次数限制):
Bmob.resetDomain("http://api.yourdomain.com");
Bmob.initialize(secretKey, apiSafe);
4. 自定义表模型 — 每张业务表一个 Dart 类 extends BmobObject,并实现 fromJson / toJson(见 references/model-and-init.md)。表名默认与类名一致(如 Blog → 表 Blog)。
5. 错误处理 — 统一用 BmobError.convert(e) 取 code / error:
}).catchError((e) {
final err = BmobError.convert(e);
print('${err.code}: ${err.error}');
});
6. 保留字段 — objectId、createdAt、updatedAt、ACL 由 SDK / 服务端维护;业务代码在更新 / 删除时必须设置 objectId。
安全清单
- 客户端不要传 Master Key 给
Bmob.initialize第三参数。 - Secret Key / API 安全码 用
--dart-define、.env+flutter_dotenv或 CI 注入,不要 commit 进 git。 - release 前
resetDomain为备案域名,且顺序在initialize之前。 - 写入的表必须配 ACL(
blog.setAcl(bmobAcl)),否则任意用户可改任意行。 - Android 文件上传 / 下载 需先适配存储权限(见官方文档「文件操作」)。
- 实时监听
RealTimeDataManager回调里data.data是Map,不要直接当Blog用。
常见问题
跨平台 Q&A:shared/faq.md(含 Flutter 路由说明)。
反模式
见 shared/anti-patterns.md。本端重点:客户端勿传 masterKey;实时回调勿直接把 Map 当 model。
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/model-and-init.md 1.7 KB
- references/pointer-and-relation.md 1.7 KB
- references/query.md 1.6 KB
- references/snippets/flutter-index--与查询-01.txt 739 B
- references/snippets/flutter-index--个数查询-01.txt 269 B
- references/snippets/flutter-index--位置操作-01.txt 477 B
- references/snippets/flutter-index--关联操作-01.txt 504 B
- references/snippets/flutter-index--关联操作-02.txt 388 B
- references/snippets/flutter-index--关联操作-03.txt 446 B
- references/snippets/flutter-index--关联操作-04.txt 625 B
- references/snippets/flutter-index--分页-01.txt 758 B
- references/snippets/flutter-index--初始化-01.txt 48 B
- references/snippets/flutter-index--增删改查一条数据-01.txt 565 B
- references/snippets/flutter-index--增删改查一条数据-02.txt 549 B
- references/snippets/flutter-index--增删改查一条数据-03.txt 522 B
- references/snippets/flutter-index--增删改查一条数据-04.txt 466 B
- references/snippets/flutter-index--增删改查一条数据-05.txt 500 B
- references/snippets/flutter-index--安装-01.sh 27 B runs code
- references/snippets/flutter-index--引用-01.txt 46 B
- references/snippets/flutter-index--或查询-01.txt 736 B
- references/snippets/flutter-index--排序-01.txt 555 B
- references/snippets/flutter-index--数据监听-01.txt 1.1 KB
- references/snippets/flutter-index--数据访问权限操作-01.txt 482 B
- references/snippets/flutter-index--数据访问权限操作-02.txt 510 B
- references/snippets/flutter-index--数据访问权限操作-03.txt 501 B
- references/snippets/flutter-index--文件操作-01.txt 716 B
- references/snippets/flutter-index--文件操作-02.txt 370 B
- references/snippets/flutter-index--文件操作-03.txt 489 B
- references/snippets/flutter-index--文件操作-04.txt 324 B
- references/snippets/flutter-index--时间操作-01.txt 438 B
- references/snippets/flutter-index--时间操作-02.txt 272 B
- references/snippets/flutter-index--查询多条数据-01.txt 542 B
- references/snippets/flutter-index--查询多条数据-02.txt 548 B
- references/snippets/flutter-index--查询多条数据-03.txt 518 B
- references/snippets/flutter-index--查询多条数据-04.txt 538 B
- references/snippets/flutter-index--查询多条数据-05.txt 522 B
- references/snippets/flutter-index--查询多条数据-06.txt 542 B
- references/snippets/flutter-index--查询用户-01.txt 209 B
- references/snippets/flutter-index--查询用户-02.txt 346 B
- references/snippets/flutter-index--查询设备-01.txt 247 B
- references/snippets/flutter-index--查询设备-02.txt 481 B
- references/snippets/flutter-index--源码-01.txt 64 B
- references/snippets/flutter-index--源码-02.txt 62 B
- references/snippets/flutter-index--用户操作-01.txt 392 B
- references/snippets/flutter-index--用户操作-02.txt 344 B
- references/snippets/flutter-index--用户操作-03.txt 378 B
- references/snippets/flutter-index--用户操作-04.txt 426 B
- references/snippets/flutter-index--用户操作-05.txt 378 B
- references/snippets/flutter-index--用户操作-06.txt 342 B
- references/snippets/flutter-index--用户操作-07.txt 372 B
- references/snippets/flutter-index--短信操作-01.txt 378 B
- references/snippets/flutter-index--短信操作-02.txt 383 B
- references/snippets/flutter-index--统计查询-01.txt 676 B
- references/snippets/flutter-index--统计查询-02.txt 699 B
- references/snippets/flutter-index--统计查询-03.txt 636 B
- references/snippets/flutter-index--统计查询-04.txt 650 B
- references/snippets/flutter-index--统计查询-05.txt 642 B
- references/snippets/flutter-index--统计查询-06.txt 642 B
- references/snippets/flutter-index--统计查询-07.txt 714 B
- references/snippets/flutter-index--自定义数据类型-01.txt 37 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.
- 5d ago First seen · 242 lines · 185 tokens per session scan A 0bbf159379ad
bmob-database-flutter is a skill published in the GitHub repository bmob/agent-skills (3 stars, last pushed 2d ago), licensed MIT. It adds 185 tokens to every session and 2,528 once invoked, about $0.0009 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-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…
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…
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"…
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.