bmob-database-restful

bmob-database-restful is a skill for Claude Code, Codex from bmob/agent-skills. It costs 274 tokens per session (3,889 once invoked), scanned A, original, MIT.

A guide to using Bmob’s database through HTTP requests instead of a language-specific software package. Bmob is a cloud database service, and HTTP lets programs in languages such as Python, Go, PHP, or Bash access it.

In plain words
What is it for?
Use it to create, find, update, or delete records; register and log in users; upload files; run queries; or migrate Bmob data from back-end code and scripts.
Why use it?
It gives one integration method for languages or scripts without a Bmob SDK. It also documents the request paths, authentication options, and operations for storing and retrieving data.

Skill for Claude CodeCodex

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

Good fit Use it to create, find, update, or delete records; register and log in users; upload files; run queries; or migrate Bmob data from back-end code and scripts.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/bmob/agent-skills/bmob-database-restful/github.svg)](https://agentmods.dev/skills/bmob/agent-skills/bmob-database-restful)
Your own site
<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.

agentmods 80×15 button for bmob-database-restful

Your own site · 80×15
<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>
Per session 274 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,889 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00274 $0.03889
Opus 5 $0.00137 $0.01945
Sonnet 5 $0.00055 $0.00778
Haiku 4.5 $0.00027 $0.00389

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

Security

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.

The scan reads SKILL.md. This mod also ships 26 executable files (references/snippets/develop-doc--bql-查询-01.sh, references/snippets/develop-doc--bql-查询-02.sh, references/snippets/develop-doc--email-重置-03.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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
skills/bmob-database-restful/SKILL.md · 300 lines

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 encodewhere / order / limit / skip / include / keys / count 都通过 query string 传,含 { / : 等字符必须 encode。

5. 默认查询返回 10 条,最大 1000。需要更多用 skip + limit 分页或 count=1

Read the full file on GitHub · 300 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. 9d ago First seen · 300 lines · 274 tokens per session scan A eaace38c9c66

Subscribe to this mod's changes

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.