據 AlphaMoat 統計,截至 2026-09,Backend 累計下載 4,702 次、獲 4 個星標,在全部 5,078 個 AI 技能中排名第 2,019 位,在「開發程式設計」分類(577 個)中排名第 259 位。
| 平台 | 累計安裝 | 累計下載 | 星標 | 評論 |
|---|---|---|---|---|
| ClawHub ↗ | 148 | 4702 | 3 | - |
| SkillHub ↗ | 145 | 4516 | 4 | — |
各平台的計數口徑不同,統計時間不一致。
這份靜態清單覆蓋輸入校驗、超時、重試、連線池、事務、快取、限流、健康檢查、日誌、API 設計和最小許可權。應結合架構和執行條件審閱,避免在日誌記錄敏感資訊;對值使用引數化查詢並驗證動態識別符號,不將單一措施視為完整防護。
資料釋出於 2026-10-29
以下是根據技能文件生成的示例,不代表實際執行結果。
2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。
| 月份 | 累計下載 | 環比 | 星標 |
|---|---|---|---|
| 2026-09 | 4702 | — | 4 |
| 2026-08 | 4524 | +6.7% | 4 |
| 2026-07 | 4239 | +9.8% | 4 |
| 2026-06 | 3860 | +4.5% | 3 |
| 2026-05 | 3693 | — | 3 |
| 2026-03 | 2859 | — | 3 |
以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。
---
name: Backend
description: Build reliable backend services with proper error handling, security, and observability.
metadata: {"clawdbot":{"emoji":"⚙️","os":["linux","darwin","win32"]}}
---
## Error Handling
- Never expose stack traces to clients—log internally, return generic message
- Structured error responses: code, message, request ID—enables debugging without leaking- Fail fast on bad input—validate at entry point, not deep in business logic - Unexpected errors: 500 + alert—expected errors: appropriate 4xx ## Input Validation - Validate everything from outside—query params, headers, body, path params - Whitelist valid input, don't blacklist bad—reject unknown fields - Validate early, before any processing—save resources, clearer errors - Size limits on all inputs—prevent memory exhaustion attacks ## Timeouts Everywhere - Database queries: set timeout, typically 5-30s - External HTTP calls: connect timeout + read timeout—don't wait forever - Overall request timeout—gateway or middleware level - Background jobs: max execution time—prevent zombie processes ## Retry Patterns - Exponential backoff: 1s, 2s, 4s, 8s...—prevents thundering herd - Add jitter: randomize delay—prevents synchronized retries - Idempotency keys for non-idempotent operations—safe to retry - Circuit breaker for failing dependencies—stop hammering, fail fast ## Database Practices - Connection pooling: reuse connections—creating is expensive - Transactions scoped minimal—hold locks briefly - Read replicas for read-heavy workloads—separate read/write traffic - Prepared statements always—SQL injection prevention, query plan cache ## Caching Strategy - Cache invalidation strategy decided upfront—TTL, event-based, or both - Cache at right layer: query result, computed value, HTTP response - Cache stampede prevention—lock or probabilistic early expiration - Monitor hit rate—low hit rate = wasted resources ## Rate Limiting - Per-user/IP limits on expensive operations—login, signup, search - Different limits for different operations—read vs write - Return Retry-After header—tell clients when to retry - Rate limit early in request pipeline—save resources ## Health Checks - Liveness: is process running—restart if fails - Readiness: can handle traffic—remove from load balancer if fails - Startup probe for slow-starting services—don't kill during init - Health checks fast and cheap—don't hit database on every probe ## Graceful Shutdown - Stop accepting new requests first—drain load balancer - Wait for in-flight requests to complete—with timeout - Close database connections cleanly—prevent connection leaks - SIGTERM handling: graceful; SIGKILL after timeout ## Logging - Structured logs (JSON)—parseable by log aggregators - Request ID in every log—trace request across services - Log level appropriate: debug for dev, info/error for prod - Sensitive data never logged—passwords, tokens, PII ## API Design - Versioning strategy from day one—path (/v1/) or header - Pagination for list endpoints—cursor or offset; include total count - Consistent response format—same envelope everywhere - Meaningful status codes—201 for create, 204 for delete, 404 for not found ## Security Hygiene - Secrets from environment or vault—never in code or config files - Dependencies updated regularly—automated with Dependabot/Renovate - Principle of least privilege—service accounts with minimal permissions - Authentication and authorization separated—who you are vs what you can do ## Observability - Metrics: request count, latency percentiles, error rate—the RED method - Distributed tracing for microservices—follow request across services - Alerting on symptoms, not causes—high error rate, not CPU usage - Dashboards for operational visibility—know normal to spot abnormal
用 gh 命令列工具檢視 GitHub 上的 PR 檢查、工作流執行與 API 查詢的技能。
聚合 16 個搜尋引擎、無需 API Key 的檢索技能。
用命令列直接列出、配置、授權並呼叫 MCP 服務與工具。
根據文字描述生成 Mermaid 圖表程式碼。
用受管 OAuth 訪問 YouTube Data API,檢索影片並管理頻道內容。
透過受管的 OAuth 連線訪問 GitHub REST API。
覆蓋規劃、實現、驗證與測試的編碼工作流技能。
整理 Docker 常用命令與容器工作流的技能。
將使用者明確糾正與自我檢視整理成分層記憶,並依使用情況升級或封存。
在保留公式、格式和活頁簿結構的前提下建立、檢查或編輯 Excel 檔案。
處理 Word 與 DOCX 文件的作業指南,著重維持樣式、編號與版面。
把資料庫、表格與匯出的原始資料變成可決策結論的資料分析技能。
協助編輯 PowerPoint 簡報,並在交付前檢查版面是否正常呈現。
資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。