Tooluck logoTooluck
SKILL.md

cloudbase-code-review

Agent skill fromTencentCloudBase/CloudBase-AI-Toolkit

Code review and validation for CloudBase projects. After writing code for Web / miniprogram / CloudRun / cloud-function projects, call this skill to check for known pitfalls — auth guard misuse, missing database tables, RLS misconfiguration, storage domain setup, and SDK API misuse. Supports automated lint scripts (regex-based) + LLM semantic review.

How to install cloudbase-code-review

install cloudbase-code-review
# install the CloudBase-AI-Toolkit pack with the skills CLI
npx skills add TencentCloudBase/CloudBase-AI-Toolkit

# or add only this skill to Claude Code: copy the folder

config/source/skills/cloudbase-code-review/

# into

~/.claude/skills/cloudbase-code-review/ (all projects)

.claude/skills/cloudbase-code-review/ (one project)

config/source/skills/cloudbase-code-review/SKILL.md

MITFull file
1## Sibling skills (local only)
2
3Sibling CloudBase skills ship beside this skill. Use local relative paths such as `../auth-tool-cloudbase/SKILL.md`.
4
5If 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.
6
7# CloudBase Code Review
8
9> **One-liner**: After implementing CloudBase features, call this skill to catch common mistakes before users do.
10
11## When to use
12
13Call this skill **after** completing a CloudBase implementation task, before declaring done:
14
15- You implemented auth (login / register / route guard)
16- You created database tables or wrote CRUD (NoSQL / PostgreSQL / MySQL)
17- You set up CloudBase Storage (file upload, hosting)
18- You configured security rules or RLS policies
19- You wrote MCP-dependent code
20- You wrote Cloud Function or CloudRun HTTP handlers (check for credential / header echo leaks)
21
22## How it works
23
24The skill runs in two layers:
25
26| Layer | Method | Speed | What it catches |
27|-------|--------|-------|-----------------|
28| **Lint (optional)** | No executable script is shipped. If the user approves running lint, review the code block in `references/lint-rules/README.md`, copy it to a temporary local `cloudbase-lint.mjs`, then run `node cloudbase-lint.mjs --project-dir <path>` | Seconds | Deterministic regex checks — wrong API calls, missing configs, pattern mismatches |
29…

Excerpt shown under the repository's MIT license.

More skills in CloudBase-AI-Toolkit

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates