cloudbase-code-review skill
✓ 検証済みLintingとセマンティックレビューを用いて、セキュリティ設定ミス、データベースエラー、SDK APIの誤用をチェックし、CloudBaseの実装を検証します。
- GitHubスター
- 1,164
- ファイル
- 13
- 最終コミット
- 2026年11月11日
- ライセンス
- MIT
- 許可されたツール
- —
cloudbase-code-review skillは何をしますか
Lintingとセマンティックレビューを用いて、セキュリティ設定ミス、データベースエラー、SDK APIの誤用をチェックし、CloudBaseの実装を検証します。
skillのSKILL.mdから生成された要約。
cloudbase-code-review skill について
このSKILLの主な機能は、CloudBaseの実装におけるセキュリティと正確性の検証です。Web、ミニプログラム、CloudRun、またはcloud-functionのプロジェクトに取り組む開発者が、デプロイ前にauth guardの誤用、データベーステーブルの不足、RLSの設定ミスといった一般的なミスを検知するために使用します。認証、データベースのCRUD操作、ストレージ設定などの機能を実装した後の最終チェックとして機能します。
このツールは2つの異なるレイヤーで動作します。まず、オプションのLintingレイヤーです。ここでは、一時的なcloudbase-lint.mjsスクリプトを使用してローカルのnodeコマンドを実行し、パターンの一致不備や誤ったAPI呼び出しを決定論的な正規表現チェックによって行います。次に、LLMによるセマンティックレビューレイヤーです。これは、コードのロジックを検査して、アーキテクチャ上の問題や網羅性を確認します。検査プロセスをガイドするために、ルールインデックスやpostgresql、storageなどのモジュール専用のMarkdownファイルを含む、構造化されたリファレンスファイル群を利用します。
エージェントができること
- 1認証セキュリティの検証ログイン、ユーザー登録、またはルートガードの実装がセキュリティのベストプラクティスに従っているか確認します。
- 2SDK APIの誤用検出正規表現ベースの自動Lintを実行し、誤ったAPI呼び出しや設定漏れを見つけ出します。
- 3認証情報の漏洩防止Cloud FunctionやCloudRunのハンドラーを検査し、ヘッダーや認証情報が漏洩しないようにします。
skill の SKILL.md から作成されています。すべてのユースケースは、その引用と照合されています。
cloudbase-code-review skillのインストール方法
各コマンドはskillフォルダをクライアントのskillsディレクトリにコピーします。読み込むには、クライアントを再起動するか新しいセッションを開始してください。Claude Codeにcloudbase-code-review skillをインストールする
~/.claude/skills/cloudbase-code-review/SKILL.md
$ npx degit TencentCloudBase/CloudBase-AI-Toolkit/config/.claude/skills/cloudbase-code-review ~/.claude/skills/cloudbase-code-reviewClaude Code (project)にcloudbase-code-review skillをインストールする
.claude/skills/cloudbase-code-review/SKILL.md
$ npx degit TencentCloudBase/CloudBase-AI-Toolkit/config/.claude/skills/cloudbase-code-review .claude/skills/cloudbase-code-reviewCodexにcloudbase-code-review skillをインストールする
~/.agents/skills/cloudbase-code-review/SKILL.md
$ npx degit TencentCloudBase/CloudBase-AI-Toolkit/config/.claude/skills/cloudbase-code-review ~/.agents/skills/cloudbase-code-reviewGemini CLIにcloudbase-code-review skillをインストールする
~/.gemini/skills/cloudbase-code-review/SKILL.md
$ npx degit TencentCloudBase/CloudBase-AI-Toolkit/config/.claude/skills/cloudbase-code-review ~/.gemini/skills/cloudbase-code-reviewClaude.aiにcloudbase-code-review skillをインストールする
npx degit TencentCloudBase/CloudBase-AI-Toolkit/config/.claude/skills/cloudbase-code-review cloudbase-code-review && zip -r cloudbase-code-review.zip cloudbase-code-review # claude.ai → Customize → Skills → + → Create skill → Upload a skill → cloudbase-code-review.zip
自動チェック
実行日 2026年11月15日完全なレポート →自動チェックに合格しました。これはセキュリティ監査ではありません。エージェントに実行させる前にスクリプトを読んでください。 チェックの仕組み · 点数を上げるための改善点
- ソースリポジトリがリンクされており、アクセス可能tencentcloudbase/cloudbase-ai-toolkit/config/.claude/skills/cloudbase-code-review is public and reachablegithub.com/tencentcloudbase/cloudbase-ai-toolkit/tree/HEAD/c ↗合格
- オープンソースライセンス (OSI)MITspdx.org/licenses/MIT.html ↗合格
- 過去1年以内にコミットまたはリリースありLast commit 2026-11-11github.com/tencentcloudbase/cloudbase-ai-toolkit/commits ↗合格
- スクリプトにダウンロード実行や認証情報の窃取がないNo scripts in the skill folder合格
- SKILL.md に隠れた指示がないNo override phrases, safeguard switches, credential requests or hidden charactersgithub.com/tencentcloudbase/cloudbase-ai-toolkit/blob/HEAD/c ↗合格
- 事前許可ツールが限定されているNo pre-approved tools; the agent asks before using onegithub.com/tencentcloudbase/cloudbase-ai-toolkit/blob/HEAD/c ↗合格
- SKILL.md が Agent Skills の形式に従っているthe description does not say when to use the skillgithub.com/tencentcloudbase/cloudbase-ai-toolkit/blob/HEAD/c ↗検出事項
SKILL.md
GitHubで表示Sibling skills (local only)
Sibling CloudBase skills ship beside this skill. Use local relative paths such as ../auth-tool-cloudbase/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.
CloudBase Code Review
One-liner: After implementing CloudBase features, call this skill to catch common mistakes before users do.
When to use
Call this skill after completing a CloudBase implementation task, before declaring done:
- You implemented auth (login / register / route guard)
- You created database tables or wrote CRUD (NoSQL / PostgreSQL / MySQL)
- You set up CloudBase Storage (file upload, hosting)
- You configured security rules or RLS policies
- You wrote MCP-dependent code
- You wrote Cloud Function or CloudRun HTTP handlers (check for credential / header echo leaks)
How it works
The skill runs in two layers:
| Layer | Method | Speed | What it catches |
|---|---|---|---|
| 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 |
| LLM review | Read each rule's "LLM 检查" section, inspect code semantically | Variable | Semantic issues — route guard logic, RLS completeness, architecture-level problems |
Rule index
See references/RULES_INDEX.md for the full matrix (module × frontend type → applicable rules).
Rule boundary
Do not promote a single failed run or case-specific workaround into a hard rule. A rule should be backed by stable SDK/API documentation, repeated failures, or deterministic runtime behavior. Case-specific observations belong in attribution reports; only broadly applicable constraints should enter RULES_INDEX.md or the optional lint checklist.
Quick start
# Step 1: Read relevant rules for identified modules
# references/rules/cross-cutting/AUTH001.md
# references/rules/cross-cutting/SEC001.md
# references/rules/postgresql/PG-CR001.md
# ...
# Optional: if the user approves running lint, review the script code block in
# references/lint-rules/README.md, copy it to a temporary cloudbase-lint.mjs,
# then run: node cloudbase-lint.mjs --project-dir .
# Step 2: For each applicable rule, read the "LLM 检查" section
# and manually inspect your code before claiming done.
Rule format
Each rule .md file follows this structure:
# RULE-ID Rule Name
- **Module**: which module (auth / postgresql / storage / ...)
- **Severity**: error | warning
- **Stage**: code-generation | deployment | config
## 正则检查 (Lint)
The condition checked by the optional script code block in `references/lint-rules/README.md`.
## LLM 检查
Semantic review prompt for human or LLM to evaluate.
## 修复指引
How to fix the issue.
Reference index
All packaged reference files (required for skill lint reachability):
- RULES_INDEX.md
- lint-rules/README.md
- rules/cross-cutting/AUTH001.md
- rules/cross-cutting/SEC001.md
- rules/cross-cutting/SKILL001.md
- rules/postgresql/PG-CR001.md
- rules/postgresql/PG-CR002.md
- rules/postgresql/PG-CR003.md
- rules/postgresql/PG-CR004.md
- rules/postgresql/PG-CR005.md
- rules/storage/STORAGE001.md
このスキルのファイル
13cloudbase-code-review skillに関する質問
Claude Codeにcloudbase-code-review skillをインストールするには
npx degit TencentCloudBase/CloudBase-AI-Toolkit/config/.claude/skills/cloudbase-code-review ~/.claude/skills/cloudbase-code-reviewを実行してください。Claude Codeは~/.claude/skills(すべてのプロジェクト)または.claude/skills(単一プロジェクト)からskillsを読み込み、説明がタスクに一致する場合にskillを使用します。
cloudbase-code-review skillはどのクライアントで使用できますか
Agent Skills形式を読み込むすべてのクライアントで使用できます: Claude Code、Codex、Gemini CLI、claude.ai(ZIPとしてアップロード)。skill内のスクリプトは、クライアントがコード実行を許可した場合にのみ実行されます。
どのような問題を検出できますか?
auth guardの誤用、データベーステーブルの不足、RLSの設定ミス、ストレージドメインの設定エラー、およびSDK APIの誤用を特定します。
このSKILLで自動的なLintを実行できますか?
はい、ユーザーの承認を得た上で、lint-rulesのREADMEからコードブロックを一時ファイルにコピーし、Node.jsで実行することで、ローカルのlintスクリプトを走らせることが可能です。