Skip to content

lidge-jun/codexclaw / plugins/codexclaw/skills/dev-backend

cxc-dev-backend

Flagged

Use for APIs, servers and app databases. Triggers: REST, GraphQL, migration, query optimization, middleware, caching, queues, 백엔드, API 작업, 마이그레이션, 쿼리 최적화.

references/core/resilience.md

View on GitHub
# Outbound Call Resilience (BE-RESILIENCE-01, DEFAULT)

Source: sol research (simota/agent-skills Gateway, Jeffallan/claude-skills).

## Deadline Propagation

- Every outbound HTTP/RPC call carries a deadline derived from the inbound request budget
- Deadline = remaining_budget - local_processing_estimate - safety_margin
- No outbound call without a deadline; framework-default infinite timeouts are bugs

## Retry Policy

- Classify operations: idempotent (safe to retry) vs non-idempotent (retry only with idempotency key)
- Exponential backoff with jitter (not fixed intervals)
- Retry budget: max 3 attempts OR 10% of total request rate, whichever is lower
- Never retry 4xx client errors (except 429 with Retry-After)

## Circuit Breaker

- Track failure rate per downstream service over a sliding window
- Open at >50% failure rate over 10+ requests; half-open after cooldown
- Emit metric on state transitions (closed→open, open→half-open, half-open→closed)

## Bulkhead Isolation

- Separate connection pools per downstream service
- Dedicated thread/goroutine pools for slow dependencies
- Never let one slow dependency exhaust the shared pool

## Cancellation Propagation

- When the caller disconnects, cancel downstream requests
- Use AbortController (Node), context.Context (Go), CancellationToken (.NET)
- Log cancellations separately from errors

## Connection Pool Hygiene

- Size pools based on measured throughput, not guesses
- Monitor pool exhaustion, wait time, and connection age
- Set max idle time; stale connections cause latency spikes
deprecation-and-migrationaddyosmani/agent-skillsManages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
performance-optimizationaddyosmani/agent-skillsOptimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
Agent Cost Reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json.Stars: 118kUpdated Claude CodeCodexVerifiedInstall
Agent Cost Reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json.Stars: 118kUpdated Claude CodeCodexVerifiedInstall