bmob-cloud-function-development SKILL.md skillA

bmob-cloud-function-development from bmob/agent-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add bmob/agent-skills/bmob-cloud-function-development@v0.4.0

Pins v0.4.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-cloud-function-development/SKILL.md
Versions recorded
3
Latest version
v0.4.0, committed Jul 28, 2026
First version recorded
Jun 29, 2026
Size
10,287 bytes
Repository stars
4
License
MIT

Write, upload, verify, and sync Bmob server-side cloud functions using the Bmob MCP server when available. Use when the user asks to 编写云函数, 写云函数, 上传云函数, 部署云函数, 发布云函数, 同步云函数, 同步函数, 拉取云函数, 下载云函数, 验证云函数结果, or mentions `function onRequest(request, response, modules)`.

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 云函数开发

用于**写运行在 Bmob 服务器上的云函数源码**,并在已配置 MCP 时走 **`deploy_cloud_function` → `invoke_cloud_function`** 完成上传与验证,或走 **`list_cloud_functions` → `get_cloud_function`** 将线上函数同步到本地。

## 先判断走哪条通道

1. **已配置 Bmob MCP**:优先用 `bmob-mcp`
   - 上传源码:`deploy_cloud_function`
   - 单独验证:`invoke_cloud_function`
   - **同步线上 → 本地**:`list_cloud_functions` → `get_cloud_function`(agent 写本地文件)
2. **未配置 MCP**:按 [云函数文档](https://github.com/bmob/BmobDocs/blob/master/mds/cloud_function/web/develop_doc.md) 与 REST `/1/functions/<name>` / 控制台流程给代码与 curl

## 语法基线

默认按 Bmob 云函数文档的 Web/Node 风格写:

```javascript
function onRequest(request, response, modules) {
  response.send("hello");
}
```

- GET 直连参数:`request.query.xxx`
- POST / REST 参数:`request.body.xxx`
- 返回结果:`response.send(...)`
- 数据库 / 文件 / HTTP / 加密:从 `modules` 取 `oData`、`oFile`、`oHttp`、`oCrypto` 等

## 必须遵守的已知行为

- 通过 REST API 调用时,参数从 **`request.body`** 取,不是 `request.query`
- 云函数里很多回调返回的是**字符串**,需要 `JSON.parse(data)` 后再当对象用
- 已知行为:服务端可能把传入 `request.body` 的值转成字符串;涉及数字、布尔、数组、对象时,在云函数内显式 `parseInt` / `=== "true"` / `JSON.parse`
- **`modules.oData` 的 `where` 是 JSON 对象,不要 `JSON.stringify`**:
  - ✅ 云函数内:`db.find({ "table": "Level", "where": { "status": 1 } })`
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add bmob/agent-skills/bmob-cloud-function-development@sha256:5f2b3024fb3bdbef

The line at the top of this page pins the label v0.4.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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_75ezji74vhcanqfd.svg)](https://markdownregistry.com/a/art_75ezji74vhcanqfd)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 3 versions of this file, between Jun 29, 2026 and Jul 28, 2026, about one every 14 days.

versioncommittedcommitsizeaudit
v0.4.0 latest2026-07-28 b2f7532 10,287 BA view · diff
v0.2.02026-06-29 ce051d6 5,420 BA view · diff
v0.1.02026-06-29 ec3fb9a 4,294 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (10287 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

GitHub

bmob/agent-skills · 4 stars · license MIT · pushed 2026-10-21 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_75ezji74vhcanqfd
GET https://markdownregistry.com/api/v1/resolve?ref=bmob/agent-skills/bmob-cloud-function-development
GET https://markdownregistry.com/api/v1/blob/5f2b3024fb3bdbefb646b58f87e2d567fe92e4975ed96e24b5e2c43344d0a5ba

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.

More from bmob/agent-skills

bmob-database-android SKILL.md skill
bmob/agent-skills · skills/bmob-database-android/SKILL.md · Use when implementing Bmob NoSQL database CRUD in an Android Native project (Java or Kotlin). Triggers…
v0.1.0 · audit A · 4 stars
bmob-database-flutter SKILL.md skill
bmob/agent-skills · skills/bmob-database-flutter/SKILL.md · Use when implementing Bmob NoSQL database CRUD in a Flutter / Dart project with the official bmob_plugin package…
v0.1.0 · audit A · 4 stars
bmob-database-ios SKILL.md skill
bmob/agent-skills · skills/bmob-database-ios/SKILL.md · Use when implementing Bmob NoSQL database CRUD in an iOS native project — both Objective-C and Swift / SwiftUI / UIKit…
v0.1.0 · audit A · 4 stars
bmob-database-javascript SKILL.md skill
bmob/agent-skills · skills/bmob-database-javascript/SKILL.md · Use when implementing Bmob NoSQL database CRUD with the cross-platform hydrogen-js-sdk (3.0+ supports both Secret Key +…
v0.1.0 · audit A · 4 stars
bmob-database-restful SKILL.md skill
bmob/agent-skills · skills/bmob-database-restful/SKILL.md · Use when interacting with Bmob backend cloud over plain HTTP / curl from ANY language that lacks a Bmob SDK — Python…
v0.1.0 · audit A · 4 stars
bmob-database-swift SKILL.md skill
bmob/agent-skills · skills/bmob-database-swift/SKILL.md · Use when implementing Bmob NoSQL database CRUD or realtime data listening with the pure Swift BmobSwiftSDK for iOS 15+…
v0.2.1 · audit A · 4 stars
bmob-error-codes SKILL.md skill
bmob/agent-skills · skills/bmob-error-codes/SKILL.md · Use when the user sees a Bmob error response with a numeric code (e.g. 9015, 101, 105, 206, 211, 9013, 10017, 10076)…
v0.1.0 · audit A · 4 stars
bmob-mcp SKILL.md skill
bmob/agent-skills · skills/bmob-mcp/SKILL.md · Use when the user has the Bmob MCP server configured (http://mcp.bmobapp.com/mcp) and wants to perform LIVE operations…
v0.3.0 · audit A · 4 stars
bmob SKILL.md skill
bmob/agent-skills · skills/bmob/SKILL.md · Use whenever the user mentions Bmob backend cloud (Bmob, BmobApp, bmobapp.com, Bmob 后端云) for ANY task: design data…
v0.1.0 · audit A · 4 stars

Every file in bmob/agent-skills

Browse by kind, by grade A, or by owner.