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 skills add bmob/agent-skills --skill bmob-database-restfulgit 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-restful)<a href="https://agentmods.dev/skills/bmob/agent-skills/bmob-database-restful"><img src="https://agentmods.dev/badge/skills/bmob/agent-skills/bmob-database-restful/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/bmob/agent-skills/bmob-database-restful"><img src="https://agentmods.dev/badge/skills/bmob/agent-skills/bmob-database-restful.svg" alt="Reviewed on agentmods" width="80" 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.00274 | $0.03889 |
| Opus 5 | $0.00137 | $0.01945 |
| Sonnet 5 | $0.00055 | $0.00778 |
| Haiku 4.5 | $0.00027 | $0.00389 |
Grade A, and why
bmob-database-restful scanned grade A with 1 finding 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 9d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
description: "Use when interacting with Bmob backend cloud over plain HTTP / curl from ANY language that lacks a Bmob SDK — Python (requests/httpx), Go (net/http), PHP (Guzzle), C# (HttpClient), Rust (reqwest), Ruby, Jav How it starts
The opening of the file, as written. The whole thing — 300 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Bmob Database — REST API
Bmob REST API 是 跨语言、跨平台 的通用接入方式:任何能发 HTTP 请求的环境都能用,不依赖任何 SDK。典型用法包括 Python/Go/PHP/C#/Rust/Ruby/Java 后端、数据迁移脚本、Bash one-liner、Deno Edge Functions、Serverless 函数等。
核心原则
1. URL 形态固定: 所有接口在 https://api.codenow.cn/1/(Bmob 控制台 → 应用 → 设置 → 配置 中显示的 API 域名,一般为 api.codenow.cn)。版本号 /1/ 必须保留。
示例:https://api.codenow.cn/1/classes/Token — 对 Token 表做 CRUD 时路径即 /1/classes/Token。
POST /1/classes/<TableName> # 新增
GET /1/classes/<TableName>/<objectId> # 查单条
GET /1/classes/<TableName> # 查列表 / 条件查询
PUT /1/classes/<TableName>/<objectId> # 更新
DELETE /1/classes/<TableName>/<objectId> # 删除
POST /1/batch # 批量(≤ 50 条)
GET /1/cloudQuery # BQL 查询
POST /1/users # 注册
POST /1/login # 登录
POST /2/files/<fileName> # 上传文件
GET /1/timestamp # 服务器时间
完整快速参考见 references/url-cheatsheet.md。
2. 两种鉴权方式,均可用(与 hydrogen-js-sdk 3.0+ 的两种 Bmob.initialize 对应):
- 简易授权 — Application ID + REST API Key(REST 原生方式;JS SDK 方式 B 即走此通道):Header
X-Bmob-Application-Id+X-Bmob-REST-API-Key。适合服务端、内网脚本、与 SDK 方式 B 共用同一套 Key 的项目。详见 shared/auth-headers.md。 - 加密授权 — Secret Key + API 安全码签名(JS SDK 方式 A 走此通道;也可手写 REST):6 个头部 + MD5 签名。适合浏览器 / 小程序直接调 REST、且不想在 Header 里暴露 REST API Key 的场景。详见 shared/md5-sign-algo.md。
2.x 文档曾暗示前端「禁止」Application ID + REST API Key;当前两种鉴权在全端均可正常使用。公开 bundle 中 REST API Key 仍可被抓包,故公开端仍推荐优先 SDK 方式 A 或加密授权,而非硬性禁止方式 B。
3. POST/PUT 必须 Content-Type: application/json,body 用 JSON。Bmob REST 不支持 form-urlencoded。
4. GET 的 query 必须 URL encode:where / order / limit / skip / include / keys / count 都通过 query string 传,含 { / : 等字符必须 encode。
5. 默认查询返回 10 条,最大 1000。需要更多用 skip + limit 分页或 count=1。
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/data-types.md 3.0 KB
- references/files.md 2.6 KB
- references/lang-snippets/csharp.md 3.8 KB
- references/lang-snippets/go.md 3.2 KB
- references/lang-snippets/php.md 2.4 KB
- references/lang-snippets/python.md 3.3 KB
- references/query-where-syntax.md 3.8 KB
- references/snippets/develop-doc--acl-的格式-01.json 110 B
- references/snippets/develop-doc--bql-查询-01.sh 243 B runs code
- references/snippets/develop-doc--bql-查询-02.sh 305 B runs code
- references/snippets/develop-doc--email-重置-01.json 33 B
- references/snippets/develop-doc--email-重置-02.json 19 B
- references/snippets/develop-doc--email-重置-03.sh 256 B runs code
- references/snippets/develop-doc--使用手机号码一键注册或登陆-01.json 124 B
- references/snippets/develop-doc--使用手机号码一键注册或登陆-02.json 261 B
- references/snippets/develop-doc--使用手机号码一键注册或登陆-03.sh 275 B runs code
- references/snippets/develop-doc--使用手机号码一键注册或登陆-04.json 263 B
- references/snippets/develop-doc--使用短信验证码进行密码重置-01.json 35 B
- references/snippets/develop-doc--使用短信验证码进行密码重置-02.json 19 B
- references/snippets/develop-doc--使用短信验证码进行密码重置-03.sh 255 B runs code
- references/snippets/develop-doc--使用索引和对象-key-修改数组中的对象-01.json 96 B
- references/snippets/develop-doc--使用索引和对象-key-修改数组中的对象-02.json 42 B
- references/snippets/develop-doc--使用索引和对象-key-修改数组中的对象-03.sh 261 B runs code
- references/snippets/develop-doc--修改-pointer-01.sh 402 B runs code
- references/snippets/develop-doc--修改对象的某个值-01.json 78 B
- references/snippets/develop-doc--修改对象的某个值-02.sh 257 B runs code
- references/snippets/develop-doc--分组计算总和-01.sh 244 B runs code
- references/snippets/develop-doc--分组计算总和-02.json 150 B
- references/snippets/develop-doc--分组计算总和并只返回满足条件的部分值-01.sh 279 B runs code
- references/snippets/develop-doc--分组计算总和并只返回满足条件的部分值-02.json 76 B
- references/snippets/develop-doc--分组计算总和并返回每个分组的记录数-01.sh 260 B runs code
- references/snippets/develop-doc--分组计算总和并返回每个分组的记录数-02.json 192 B
- references/snippets/develop-doc--分页查询-01.sh 243 B runs code
- references/snippets/develop-doc--创建地理位置对象-01.json 129 B
- references/snippets/develop-doc--创建地理位置对象-02.sh 339 B runs code
- references/snippets/develop-doc--创建角色-01.sh 334 B runs code
- references/snippets/develop-doc--创建角色-02.sh 866 B runs code
- references/snippets/develop-doc--创建角色-03.txt 70 B
- references/snippets/develop-doc--删除-pointer-01.sh 251 B runs code
- references/snippets/develop-doc--删除-relation-01.json 390 B
- references/snippets/develop-doc--删除-relation-02.sh 498 B runs code
- references/snippets/develop-doc--删除字段的值-01.json 74 B
- references/snippets/develop-doc--删除字段的值-02.json 42 B
- references/snippets/develop-doc--删除字段的值-03.sh 260 B runs code
- references/snippets/develop-doc--删除数据-01.json 19 B
- references/snippets/develop-doc--删除数据-02.sh 177 B runs code
- references/snippets/develop-doc--删除数组数据-01.json 75 B
- references/snippets/develop-doc--删除数组数据-02.json 42 B
- references/snippets/develop-doc--删除数组数据-03.sh 286 B runs code
- references/snippets/develop-doc--删除文件-01.json 19 B
- references/snippets/develop-doc--删除文件-02.sh 210 B runs code
- references/snippets/develop-doc--删除用户-01.txt 149 B
- references/snippets/develop-doc--删除用户-02.json 19 B
- references/snippets/develop-doc--删除用户-03.sh 226 B runs code
- references/snippets/develop-doc--删除角色-01.sh 224 B runs code
- references/snippets/develop-doc--加密授权方式-01.sh 387 B runs code
- references/snippets/develop-doc--原子计算器-01.json 60 B
- references/snippets/develop-doc--原子计算器-02.sh 269 B runs code
- references/snippets/develop-doc--响应格式-01.json 61 B
- references/snippets/develop-doc--复合查询-01.sh 252 B runs code
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.
- 9d ago First seen · 300 lines · 274 tokens per session scan A eaace38c9c66
bmob-database-restful is a skill published in the GitHub repository bmob/agent-skills (3 stars, last pushed 2d ago), licensed MIT. It adds 274 tokens to every session and 3,889 once invoked, about $0.0014 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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…
butterbase
AI-native, open-source backend-as-a-service with a built-in Model Context Protocol server. Postgres, auth, storage, functions, AI gateway.
supabase-node
Express/Hono with Supabase and Drizzle ORM.
nodejs-backend
Node.js backend patterns with Express/Fastify, repositories.
django-patterns
Django architecture patterns, REST API design with DRF, ORM best practices, caching, signals, middleware, and production-grade Django apps.