Iván

Backend

開発v1.0.0
作者:Iván更新日 2026-05-11backend@clawhub_ivangdavila/backend
コード生成バックエンド開発#Observability

AlphaMoatによると、2026-09時点でBackendのダウンロード数は4,702、スター数は4で、AIスキル全体5,078件中2,019位、開発では577件中259位です。

インストール数
148
ダウンロード数
4702
スター数
4
総合順位
#2,019
全体の上位 40% · 開発の上位 45%
プラットフォームインストール数ダウンロード数スター数コメント
ClawHub ↗14847023-
SkillHub ↗14545164—

プラットフォームごとに集計方法と集計時点が異なります。

このスキルでできること

入力検証、タイムアウト、再試行、接続プール、トランザクション、キャッシュ、制限、監視、ログ、API 設計、最小権限を扱う静的チェックリストです。構成と運用に合わせて調整し、秘密情報をログに残さず、値にはパラメーター化を用い、動的識別子も検証します。単一の対策で完全に防げるとは限りません。

資料公開日 2026-10-29

できること

  • APIエラー応答、入力検証、タイムアウト方針を確認する
  • データベース、キャッシュ、レート制限、ヘルスチェックを評価する
  • ログ、セキュリティ、サービスの可観測性を点検する

使う場面

  • バックエンドサービスの設計指針やレビュー項目を作る場合
  • 推奨事項をチームの構成や運用制約に合わせて調整できる場合
  • 機微情報をログに含めず安全なデータベースクエリを使える場合

プロンプト例

スキルのドキュメントをもとに生成した例であり、実際の実行結果ではありません。

提示されたサービス概要に基づくバックエンド信頼性のチェックリストを作り、構成の確認が必要な推奨事項を示してください。コードや設定は変更しないでください。

月次の推移

ダウンロード数4702
2712378148492026-03 · ダウンロード数 28592026-05 · ダウンロード数 36932026-06 · ダウンロード数 38602026-07 · ダウンロード数 42392026-08 · ダウンロード数 45242026-09 · ダウンロード数 470226-0326-09
スター数4
3442026-03 · スター数 32026-05 · スター数 32026-06 · スター数 32026-07 · スター数 42026-08 · スター数 42026-09 · スター数 426-0326-09

2026-09 から集計方法を変更し、同名スキルを作者ごとに分けて集計し、全スキルを対象にしました。破線は変更前の月で、変更後のデータとは直接比較せず、変更をまたぐ増減も計算していません。

月ダウンロード数前月比スター数
2026-094702—4
2026-084524+6.7%4
2026-074239+9.8%4
2026-063860+4.5%3
2026-053693—3
2026-032859—3

SKILL.md 原文

作者が公開した元のファイルをテキストのまま表示しています。AlphaMoat による編集や審査はしていません。リンクはクリックできません。コマンドは内容を確認してから実行してください。取得日 2026-10-23。

3.8 KB・ClawHub v1.0.0
---
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
すべて表示(全 97 行)
- 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

開発の人気スキル

Ivánのその他のスキル

データ月:2026-09 · ダウンロード数、スター数、インストール数は公開スキルレジストリ(ClawHub、SkillHub)から月単位で集計しています。詳しくはデータの方法論をご覧ください。