Build or update the BlueBubbles external channel plugin for Moltbot (extension package, REST...
0
0
# Install this skill:
npx skills add BryantChi/webdev-skills --skill "後端框架技能"
Install specific skill from multi-skill repository
# Description
涵蓋 Laravel、Node.js、Django、FastAPI 等後端框架指南
# SKILL.md
name: 後端框架技能
description: 涵蓋 Laravel、Node.js、Django、FastAPI 等後端框架指南
🔧 後端框架技能
框架選擇指南
| 框架 | 語言 | 適用場景 | 特色 |
|---|---|---|---|
| Laravel | PHP | 通用、快速開發 | 全功能、文件完善 |
| Node.js | JavaScript | API、即時應用 | 非同步、輕量 |
| Django | Python | 內容網站、管理系統 | 電池內建 |
| FastAPI | Python | API、微服務 | 高效能、型別安全 |
快速選擇
依專案需求
| 需求 | 推薦 |
|---|---|
| 快速開發 | Laravel |
| REST API | FastAPI / Express |
| 即時通訊 | Node.js + Socket.io |
| 管理後台 | Django / Laravel |
| 微服務 | FastAPI / Express |
| 全端整合 | Laravel + Inertia |
依技術背景
| 背景 | 推薦 |
|---|---|
| PHP 熟悉 | Laravel |
| Python 熟悉 | Django / FastAPI |
| JavaScript 全端 | Node.js + Express |
API 設計原則
REST API 規範
| 動作 | HTTP 方法 | 路由 | 說明 |
|---|---|---|---|
| 列表 | GET | /users | 取得所有 |
| 建立 | POST | /users | 建立新資源 |
| 取得 | GET | /users/:id | 取得單個 |
| 更新 | PUT/PATCH | /users/:id | 更新資源 |
| 刪除 | DELETE | /users/:id | 刪除資源 |
回應格式
{
"success": true,
"data": { ... },
"message": "操作成功"
}
{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "驗證失敗",
"details": { ... }
}
}
安全性基本要求
- 輸入驗證:永遠不信任用戶輸入
- SQL Injection 防護:使用 ORM 或 Prepared Statements
- XSS 防護:輸出編碼
- CSRF 防護:使用 Token
- 認證:JWT 或 Session
- HTTPS:強制使用
相關技能
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Amp
Antigravity
Claude Code
Clawdbot
Codex
Cursor
Droid
Gemini CLI
GitHub Copilot
Goose
Kilo Code
Kiro CLI
OpenCode
Roo Code
Trae
Windsurf
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.