据 AlphaMoat 统计,截至 2026-09,Backend 累计下载 4,702 次、获 4 个星标,在全部 5,078 个 AI 技能中排名第 2,019 位,在「开发编程」分类(577 个)中排名第 259 位。
| 平台 | 累计安装 | 累计下载 | 星标 | 评论 |
|---|---|---|---|---|
| ClawHub ↗ | 148 | 4,702 | 3 | - |
| SkillHub ↗ | 145 | 4,516 | 4 | — |
各平台的计数口径不同,统计时间不一致。
这份静态清单覆盖输入校验、超时、重试、连接池、事务、缓存、限流、健康检查、日志、API 设计和最小权限。应结合架构和运行条件审阅,避免在日志记录敏感信息;对值使用参数化查询并验证动态标识符,不将单一措施视为完整防护。
资料发布于 2026-10-29
以下是根据技能文档生成的示例,不代表实际运行结果。
2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。
| 月份 | 累计下载 | 环比 | 星标 |
|---|---|---|---|
| 2026-09 | 4,702 | — | 4 |
| 2026-08 | 4,524 | +6.7% | 4 |
| 2026-07 | 4,239 | +9.8% | 4 |
| 2026-06 | 3,860 | +4.5% | 3 |
| 2026-05 | 3,693 | — | 3 |
| 2026-03 | 2,859 | — | 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 文档的作业规范,重点是改完之后样式、编号与版式不跑偏。
把数据库、表格与导出的原始数据变成可决策结论的数据分析技能。
改 PPT 之前先看清结构的一套规范,目标是改完还能干净渲染。
数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。