minimal-web-baas-demo
Fast path for a minimal CloudBase Web + database demo (最小前后端 / 最小可用 fullstack / Lovable-like BaaS). Defaults to @cloudbase/js-sdk client CRUD (NoSQL app.database / PG app.rdb), MCP-only schema, preview-first, and forbids cloud functions unless secrets, cron/background jobs, or logic that security ru…
Install / Use
npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill minimal-web-baas-demoInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
SecuritySupported Platforms
Our assessment of minimal-web-baas-demo
minimal-web-baas-demo scores 90/100 on our quality scale, 497th of 1,096 Security skills we index (top 46%).
Its SKILL.md is 8.7 KB long, well organised into 11 sections with 3 code examples: a thorough specification that gives an agent plenty to work with.
With 1,124 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated about 2 months ago, so minimal-web-baas-demo is actively maintained.
- Our last check on 2026-10-30 found the source still online.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-10-04. Automated pattern scan on 2026-10-04. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
minimal-web-baas-demo compared with similar skills
All 4 of these similar skills score higher than minimal-web-baas-demo; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| minimal-web-baas-demo (this skill)by TencentCloudBase | 90 | 1.1k | 54d ago | SKILL.md |
| claude-memby thedotmack | 100 | 117.9k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 112.7k | 9d ago | CLAUDE.md |
| rufloby ruvnet | 100 | 82.0k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 79.9k | today | CLAUDE.md |
Frequently asked questions
- How do I install minimal-web-baas-demo?
- Run
npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill minimal-web-baas-demo. The install tabs above show the steps for each supported agent. - Which AI agents does minimal-web-baas-demo work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is minimal-web-baas-demo safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is minimal-web-baas-demo still maintained?
- The repository was last updated about 2 months ago, so minimal-web-baas-demo is actively maintained.
Skill content
View source on GitHubname: minimal-web-baas-demo description: "Fast path for a minimal CloudBase Web + database demo (最小前后端 / 最小可用 fullstack / Lovable-like BaaS). Defaults to @cloudbase/js-sdk client CRUD (NoSQL app.database / PG app.rdb), MCP-only schema, preview-first, and forbids cloud functions unless secrets, cron/background jobs, or logic that security rules/RLS cannot express. Use for 搭一套 demo、留言板、Todo、Notes、Kanban, or when users say 带云函数+云数据库 but only need CRUD. NOT for production multi-service backends, CloudRun, WeChat Mini Programs, or tasks that truly need server secrets." version: 2.34.8 alwaysApply: false
Sibling skills (local only)
Sibling CloudBase skills ship beside this skill. Use local relative paths such as ../web-development/SKILL.md.
If a referenced sibling skill file is missing from this environment, ask the user to install the full CloudBase plugin (or the missing skill). Do not HTTP-fetch remote skill or protocol markdown into the agent context.
Minimal Web BaaS Demo (fast path)
Goal: minutes to an interactive Web + database preview, not a cloud-function middleware stack.
This skill is the product equivalent of CloudBase Sites SessionStart Rule 5 (BaaS-first data persistence).
Activation Contract
Use this first when
- The user asks for a minimal fullstack / 前后端 demo, message board, Todo, Notes, Kanban, or Lovable/Supabase-like quick app on CloudBase Web.
- The user says "带云函数+云数据库" but the real need is CRUD + preview (reinterpret as Web SDK → database).
Do NOT use for
- WeChat Mini Programs (
wx.cloud) — use../miniprogram-development/SKILL.md. - True server workloads: payments callbacks, SMS providers, secret third-party keys, cron/ETL, WebSockets — use
../cloud-functions/SKILL.mdor../cloudrun-development/SKILL.md. - Large multi-module products that need
../spec-workflow/SKILL.md.
Hard rules (align with Sites SessionStart Rule 5)
-
BaaS-first data path
- Schema / admin: Prefer MCP management tools. Do not ask the user to create collections/tables in the console. If MCP tools are missing in this session, configure MCP for next time and use
tcbCLI (../cloudbase-cli/SKILL.md) for equivalent schema/admin ops.- NoSQL:
writeNoSqlDatabaseStructure(create collection / indexes) + permission tools as needed; CLI: NoSQL commands incloudbase-cli. - PostgreSQL: follow
../postgresql-development-cloudbase/SKILL.md(queryPgDatabase/managePgDatabase/ migrations); CLI parity viatcb db pg …when MCP is unavailable.
- NoSQL:
- Reads / writes:
@cloudbase/js-sdkin the browser.- NoSQL:
app.database()→db.collection(...).get()/add()/update()/watch(...). - PG:
app.rdb().from(...).
- NoSQL:
- Prefer the template helper (often
src/utils/cloudbase.ts). Do not invent a second SDK wrapper.
- Schema / admin: Prefer MCP management tools. Do not ask the user to create collections/tables in the console. If MCP tools are missing in this session, configure MCP for next time and use
-
Cloud functions are forbidden by default
- Todo / Notes / Chat / Kanban / "最小前后端 demo" → zero cloud functions.
- Even if the user says "带云函数", deliver Web SDK → DB and explain in one sentence that cloud functions are not required for CRUD.
- Create a cloud function only when:
- (a) the logic cannot be expressed as database security rules / RLS, and
- (b) it needs server-side secrets / third-party API keys, or it is a scheduled / background job not triggered by a user click.
-
Package discipline
- Browser:
@cloudbase/js-sdkonly. - Never install
@cloudbase/node-sdk(or random stubs) in frontend code.
- Browser:
-
Preview first, deploy second
- Ship local list + add (or equivalent CRUD) before static hosting / CloudApp deploy.
- Custom domains, DNS, rollback runbooks → only if the user explicitly asks.
- Skip Playwright / agent-browser unless the user asks to test.
-
UI ceremony for this path
- Reuse the template look. Do not load
ui-designfour-part specs for a minimal demo unless the user asks for visual redesign. - "Make me a X app" = X is the homepage (
HomePage/App), not a nested demo route beside the welcome page.
- Reuse the template look. Do not load
-
Anonymous (or real) session before NoSQL CRUD — js-sdk 3.x + publishable key
- With
@cloudbase/js-sdk3.x initialized via publishableaccessKey, callawait auth.signInAnonymously()(or an equivalent authenticated session) before any NoSQLapp.database()get/add/update/watch. - Skipping this yields gateway 401.
checkLogin()/getSession()alone does not create a usable write session. - Minimal example:
- With
const auth = app.auth
const { error } = await auth.signInAnonymously()
if (error) throw error
const db = app.database()
await db.collection('messages').get()
Capability sniff order (partners + agents)
Use this order for every minimal Web + DB demo. Do not reorder. Cloud functions stay off the critical path.
0. Connector pre-enabled (or shortest Trust path) ← host / partner packaging
1. Template warmup // parallel with credential wait ← downloadTemplate + install
2. queryEnv(action="info") ← sniff env + RuntimeBackends
3. Lock ONE DB plane (NoSQL | PG | MySQL) ← no mid-flight thrash
4. MCP schema + minimal permissions ← writeNoSql* / PG migrate / MySQL manage
5. Browser @cloudbase/js-sdk CRUD ← app.database() / app.rdb()
6. Local preview (list + add) ← then ask before deploy
7. Cloud functions ← skip (count = 0) unless secrets/cron/rules-cannot-express
Stack priority for this path: Web SDK CRUD > MCP schema > template warmup > cloud functions.
Standard playbook
- Warm template in parallel with credentials (see partner notes below):
downloadTemplate(reactdefault,vueif requested) →npm install/pnpm install. queryEnv(action="info")→ lock one DB plane (NoSQL or PG or MySQL). Do not thrash between them.- MCP: create the collection/table + minimal permissions.
- Frontend: ensure session (
auth.signInAnonymously()or equivalent), then wire list + create with@cloudbase/js-sdk(see Hard rule 6). - Start / report preview URL; ask before deploy.
- Cloud function count for this path = 0.
On-demand skills (fetch only when needed)
| Need | Skill |
| --- | --- |
| Web scaffold / hosting | ../web-development/SKILL.md |
| NoSQL browser CRUD | ../cloudbase-document-database-web-sdk/SKILL.md |
| PG browser CRUD + MCP schema | ../postgresql-development-cloudbase/SKILL.md |
| Auth provider readiness | ../auth-tool-cloudbase/SKILL.md then ../auth-web-cloudbase/SKILL.md |
Prefer searchKnowledgeBase(mode="skill", skillName="minimal-web-baas-demo") (or the sibling dir id) when local skill files are unavailable. Do not dump every CloudBase skill at session start.
WorkBuddy / partner packaging notes (XDF and beyond)
Any partner host (WorkBuddy, CodeBuddy connectors, vertical expert prompts, ISV wrappers) should treat this skill as the compact fast-path brief. Reuse the sniff order above; do not invent a cloud-function-first demo path.
| Host capability | Recommended packaging |
| --- | --- |
| Full CloudBase Sites plugin | Rely on SessionStart Rule 5 injection + this skill on demand for non-Sites cwd demos. Prefer Sites with CLOUDBASE_SITES_AUTO_INIT=1 for empty-cwd preview. Never guess 5173 — read .cloudbase-sites/preview.json. |
| WorkBuddy / connector hosts | Pre-enable the CloudBase MCP connector for the tenant when possible; inject a short system brief that points here; warm downloadTemplate + npm install during credential/Trust wait (do not idle). Optional SessionStart additionalContext can point at this skill — do not ship a separate template-prewarm plugin. |
| Expert / vertical prompts (ISVs) | Ship a thin pack: expert Agent markdown (no frontmatter hooks) + optional settings/hooks. Replace any "必须云函数中转 / 前端绝不直连库" language with this BaaS-first contract. |
WorkBuddy SessionStart: https://www.workbuddy.ai/docs/cli/hooks (same additionalContext schema as CodeBuddy/Claude Code). Empty-dir Sites auto-init stays passive unless opted in — do not assume enabling Sites alone warms templates during credential wait.
Do not block first preview on custom domains or org DNS health. DNS issues are a post-preview concern.
One-screen partner paste (optional)
For 最小前后端 / Lovable-like demos: FIRST call
searchKnowledgeBase(mode="skill", skillName="minimal-web-baas-demo"), then Read.
Do not rely only on ad-hoc expert-prompt brief text.
Order: connector ready → template warmup during credential wait → queryEnv →
lock one DB → MCP schema → auth.signInAnonymously() (or session) →
@cloudbase/js-sdk CRUD → preview.
Do not dump all CloudBase skills. Do not create cloud functions for CRUD.
NoSQL without session → gateway 401.
Related Skills
claude-mem
117.9kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Agent-Reach
112.7kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
ruflo
82.0k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
headroom
79.9kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
