bmob-database-javascript SKILL.md skillA
bmob-database-javascript 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-javascript@v0.1.0Pins v0.1.0 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-javascript/SKILL.md- Versions recorded
- 5
- Latest version
- v0.1.0, committed Jun 4, 2026
- First version recorded
- May 27, 2026
- Size
- 12,850 bytes
- Repository stars
- 4
- License
- MIT
Use when implementing Bmob NoSQL database CRUD with the cross-platform hydrogen-js-sdk (3.0+ supports both Secret Key + API 安全码 and Application ID + REST API Key init) — ONE SDK file (Bmob-x.x.x.min.js) covers ALL of: browser, Node.js, WeChat Mini Program, Alipay / ByteDance / QQ / Baidu Mini Programs, Quick App 快应用, Cocos Creator JS, Electron, Tauri, hybrid apps, and any ES6 framework (Vue2 / Vue3 / React / Next.js / Vite / Nuxt). Triggers: Bmob.initialize, Bmob.Query, Bmob.User…
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 — JavaScript / 跨端 SDK
[hydrogen-js-sdk](https://github.com/bmob/hydrogen-js-sdk) 是 **同一个 SDK 文件 `Bmob-<version>.min.js`** 支持以下所有宿主环境,无平台分支代码:
- 浏览器 / 任何 Web 前端(React、Vue 2、Vue 3、Next.js、Nuxt、Vite、Astro、SvelteKit、Solid 等)
- Node.js 服务端(必须源码引入)
- 微信小程序 / 支付宝 / 字节跳动 / QQ / 百度 小程序
- 快应用
- Cocos Creator JS
- Electron / Tauri
- 任意混合 App(WebView 内嵌 H5)
> **本 skill 只覆盖新版 hydrogen-js-sdk**(`Bmob.Query('X')` Promise 风格,3.0+)。基于 Backbone.js 的旧 `bmob-min.js`(`Bmob.Object.extend("X")` callback 风格)**不要用,也不要回退**。
## 核心原则
**1. 初始化支持两种方式**(hydrogen-js-sdk **3.0+** 均兼容;按场景二选一,**不要混用**):
**方式 A — Secret Key + API 安全码**(**推荐**:浏览器 / 小程序 / 公开客户端,SDK 内部走加密授权):
```js
Bmob.initialize("你的Secret Key", "你的API 安全码");
```
- **Secret Key**:控制台 → 应用 → 设置 → 应用密钥 → **Secret Key**。
- **API 安全码**:控制台 → 应用 → 应用功能设置 → 安全验证 → **API 安全码** 自行设置。
**方式 B — Application ID + REST API Key**(3.0 起正式兼容;适合已有 1.x/2.x 项目迁移、或与服务端 REST 共用同一套 Key):
```js
Bmob.initialize("你的Application ID", "你的REST API Key");
```
- **Application ID** / **REST API Key**:控制台 → 应用 → 设置 → 应用密钥 同一页。
- REST API 请求域名一般为 `https://api.codenow.cn`(见 [`bmob-database-restful`](../bmob-database-restful/SKILL.md))。
…Read the whole file at its exact version.
How to install
mdr add bmob/agent-skills/bmob-database-javascript@sha256:4d64938f3964cea4The line at the top of this page pins the label v0.1.0, 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_ryw5l7ufiuzyveoe)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between May 27, 2026 and Jun 4, 2026, about one every 2 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v0.1.0 latest | 2026-06-04 | e0761d3 | 12,850 B | A | view · diff |
| v0.1.0 | 2026-05-29 | d5c8e4c | 12,232 B | A | view · diff |
| v0.1.0 | 2026-05-27 | 54c3792 | 11,835 B | A | view · diff |
| v0.1.0 | 2026-05-27 | 932b160 | 11,000 B | A | view · diff |
| v0.1.0 | 2026-05-27 | 3de7a4f | 10,641 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 (12850 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_ryw5l7ufiuzyveoe GET https://markdownregistry.com/api/v1/resolve?ref=bmob/agent-skills/bmob-database-javascript GET https://markdownregistry.com/api/v1/blob/4d64938f3964cea44ff38915d25de36c7c43c4b39175773cc72ab32e10f4c768
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.