Token导航 LogoToken导航TokenDH.com
开发external-servicegithub未标认证来源可访问许可证需确认审计通过

senior-backend高级后端

Agent Skill

senior-backend 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

698

周安装

30

GitHub Stars

1

下载量

245
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:senior-backend(高级后端)
来源仓库:https://github.com/pixel-process-ug/superkit-agents
仓库路径:skills/senior-backend
安装命令:
npx skills add https://github.com/pixel-process-ug/superkit-agents --skill senior-backend
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/pixel-process-ug/superkit-agents --skill senior-backend

简介

senior-backend 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合围绕仓库状态和代码变更进行整理。

  • 适用于后端开发相关的协作信息管理,可结合代码变更事项使用。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需确认权限范围和维护状态。
  • 安装前建议确认是否会触发联网、命令执行或文件读写等操作边界。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Senior Backend Engineer

Overview

Design and implement robust, scalable backend systems with a focus on API design, service architecture, data management, and operational excellence. This skill covers RESTful and GraphQL API patterns, message-driven architecture, caching strategies, rate limiting, health checks, and full observability with OpenTelemetry.

Announce at start: "I'm using the senior-backend skill for backend system design and implementation."


Phase 1: API Design

Goal: Define the contract before writing implementation code.

Actions

  1. Define resource models and relationships
  2. Design endpoint structure (REST) or schema (GraphQL)
  3. Establish authentication and authorization strategy
  4. Define rate limiting and throttling policies
  5. Create API documentation (OpenAPI/GraphQL schema)

API Style Decision Table

FactorRESTGraphQLgRPC
Multiple consumers with different data needsPoor fitStrong fitPoor fit
Simple CRUD operationsStrong fitOverkillOverkill
Real-time subscriptionsRequires WebSocket add-onBuilt-inBuilt-in (streaming)
Service-to-serviceGoodOverkillStrong fit
Public APIStrong fitGoodPoor fit (tooling)
Mobile with bandwidth constraintsOverfetching riskStrong fitStrong fit

STOP — Do NOT proceed to Phase 2 until:

  • Resource models are defined
  • Endpoint structure or schema is documented
  • Auth strategy is chosen
  • API contract is reviewable (OpenAPI/GraphQL schema)

Phase 2: Implementation

Goal: Build the service layer with clear separation of concerns.

Actions

  1. Set up project structure with clear layering
  2. Implement data access layer (repositories/DAOs)
  3. Build service layer with business logic
  4. Create API controllers/resolvers
  5. Add middleware (auth, logging, error handling, CORS)
  6. Implement caching strategy

RESTful URL Structure

GET    /api/v1/users              # List users (paginated)
GET    /api/v1/users/:id          # Get single user
POST   /api/v1/users              # Create user
PUT    /api/v1/users/:id          # Full update
PATCH  /api/v1/users/:id          # Partial update
DELETE /api/v1/users/:id          # Delete user
GET    /api/v1/users/:id/orders   # Nested resources
POST   /api/v1/users/:id/activate # State transitions

HTTP Status Code Decision Table

CodeMeaningWhen to Use
200OKSuccessful GET, PUT, PATCH
201CreatedSuccessful POST creating resource
204No ContentSuccessful DELETE
400Bad RequestValidation errors
401UnauthorizedMissing or invalid auth
403ForbiddenAuth valid but insufficient permissions
404Not FoundResource does not exist
409ConflictDuplicate or state conflict
422Unprocessable EntitySemantically invalid input
429Too Many RequestsRate limit exceeded
500Internal Server ErrorUnexpected server failure

Response Format

// Success (single)
{ "data": { "id": "123", "name": "Alice" }, "meta": { "requestId": "req_abc123" } }

// Success (collection)
{ "data": [...], "meta": { "page": 1, "pageSize": 20, "totalCount": 150, "totalPages": 8 } }

// Error
{ "error": { "code": "VALIDATION_ERROR", "message": "Invalid input", "details": [...] } }

Caching Strategy Decision Table

StrategyDescriptionUse Case
Cache-AsideApp checks cache, falls back to DBGeneral purpose
Write-ThroughWrite to cache and DB simultaneouslyStrong consistency
Write-BehindWrite to cache, async write to DBHigh write throughput
Read-ThroughCache loads from DB on missTransparent caching

STOP — Do NOT proceed to Phase 3 until:

  • Project structure follows layered architecture
  • Input validation is at the edge (Zod, Joi, class-validator)
  • Error handling returns structured error responses
  • Caching strategy is implemented with invalidation plan

Phase 3: Hardening

Goal: Prepare the service for production operation.

Actions

  1. Add comprehensive error handling
  2. Implement health checks and readiness probes
  3. Set up observability (traces, metrics, logs)
  4. Load test critical paths
  5. Document runbooks for operational scenarios

Health Check Endpoints

// GET /health — lightweight liveness check
{ "status": "healthy" }

// GET /health/ready — readiness with dependency checks
{
  "status": "healthy",
  "checks": {
    "database": { "status": "healthy", "latency": "5ms" },
    "redis": { "status": "healthy", "latency": "2ms" },
    "queue": { "status": "healthy", "latency": "8ms" }
  },
  "uptime": "72h15m",
  "version": "1.4.2"
}

Observability: RED Method Metrics

MetricDescriptionImplementation
RateRequests per secondCounter incremented per request
ErrorsError rate per secondCounter incremented per error
DurationLatency distributionHistogram (p50, p95, p99)

Structured Logging Format

{
  "timestamp": "2025-01-15T10:30:00.123Z",
  "level": "info",
  "message": "User created",
  "service": "user-service",
  "traceId": "abc123",
  "spanId": "def456",
  "userId": "usr_123",
  "duration": 45
}

Rate Limiting Algorithm Decision Table

AlgorithmProsConsBest For
Fixed WindowSimple, low memoryBurst at boundariesInternal APIs
Sliding WindowSmooth distributionMore memoryPublic APIs
Token BucketControlled burstsSlightly complexIndustry standard
Leaky BucketConstant outputNo burst allowedStrict rate control

STOP — Hardening complete when:

  • Health check endpoints respond correctly
  • Structured logging is configured
  • Metrics are exported (RED method)
  • Load test completed on critical paths
  • Error handling returns appropriate status codes

Event-Driven Architecture Patterns

Message Queue Pattern Decision Table

PatternUse CaseExample
Pub/SubBroadcast to multiple consumersUser registered -> email, analytics, CRM
Work QueueDistribute tasks across workersImage processing, PDF generation
Request/ReplyAsync request with responsePrice calculation service
Dead LetterHandle failed messagesRetry policy exceeded

Event Schema

{
  "eventId": "evt_abc123",
  "eventType": "user.created",
  "timestamp": "2025-01-15T10:30:00Z",
  "version": "1.0",
  "source": "user-service",
  "data": { "userId": "usr_123", "email": "alice@example.com" },
  "metadata": { "correlationId": "corr_xyz789", "causationId": "cmd_def456" }
}

GraphQL Anti-Patterns

Anti-PatternProblemFix
N+1 queriesPerformance degradationDataLoader for batching
Unbounded queriesDoS vulnerabilityEnforce depth and complexity limits
Over-fetching in resolversWasted DB queriesSelect only requested fields

Anti-Patterns / Common Mistakes

Anti-PatternWhy It Is WrongCorrect Approach
Exposing database IDs directlySecurity risk, coupling to DBUse UUIDs or prefixed IDs
Synchronous external service calls in request pathSingle point of failure, latencyAsync with queues or circuit breaker
N+1 query patternsLinear performance degradationEager loading or DataLoader
Catching and swallowing errorsSilent failures, impossible debuggingLog and propagate with context
Shared mutable state across handlersRace conditions, unpredictable behaviorStateless request handling
Skipping input validationInjection, data corruptionValidate at the edge, always
Generic 500 for all errorsPoor developer experienceSpecific error codes and messages
No API versioningBreaking changes affect all consumersVersion from day one (/v1/)

Documentation Lookup (Context7)

Use mcp__context7__resolve-library-id then mcp__context7__query-docs for up-to-date docs. Returned docs override memorized knowledge.

  • express — for middleware patterns, routing, or request/response API
  • fastify — for plugin system, hooks, or schema validation
  • nestjs — for decorators, modules, providers, or guards
  • prisma — for schema syntax, client API, or migration commands

Integration Points

SkillRelationship
senior-architectArchitecture decisions guide backend service boundaries
security-reviewBackend security follows OWASP and auth patterns
performance-optimizationBackend performance uses caching and query tuning
testing-strategyBackend test strategy defines integration test approach
code-reviewReview verifies API design and error handling
acceptance-testingAPI behavior becomes acceptance criteria
senior-fullstackBackend serves the full-stack tRPC layer

Key Principles

  • API versioning from day one (/v1/)
  • Input validation at the edge (Zod, Joi, class-validator)
  • Idempotency keys for non-GET endpoints
  • Graceful shutdown (drain connections, finish in-flight requests)
  • Circuit breaker for external service calls
  • Database migrations versioned and reversible
  • Secrets in environment variables, never in code

Skill Type

FLEXIBLE — Adapt API style and architecture to the project context. The three-phase process (design, implement, harden) is strongly recommended. Health checks, structured logging, and error handling are non-negotiable for production services.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.77%
按下载量换算93

Claude

29.45%
按下载量换算72

Cursor

18.35%
按下载量换算45

Gemini CLI

9.4%
按下载量换算23

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills