← 返回
未分类 中文

Axodus Backend Architecture

Design backend APIs, services, persistence, and observability with security.
设计后端 API、服务、持久化及可观测性,并确保安全性。
mzfshark mzfshark 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 376
下载
💾 0
安装
1
版本
#dev#latest

概述

SKILL: backend-architecture

Purpose

Design backend systems with clear boundaries: API contracts, services, persistence, observability, and security controls.

When to Use

  • Building a new backend or major subsystem.
  • Introducing a new API surface (REST/WebSocket).
  • You need a concrete module/service layout and DB model.

Inputs

  • requirements (required, string|object): endpoints, behaviors, SLAs, compliance needs.
  • constraints (optional, string[]): security, latency, cost, runtime, stack limits.
  • data_entities (optional, string[]): core domain objects.
  • integration_points (optional, string[]): external services/APIs.

Steps

  1. Define API surface:
    • endpoints/events
    • request/response schema
    • error model (codes/messages)
  2. Define security model:
    • authentication method
    • authorization rules
    • rate limits and abuse controls
  3. Define service/module boundaries:
    • controllers/handlers
    • domain services
    • repositories/adapters
  4. Define persistence:
    • schema/tables/collections
    • migrations
    • idempotency model (if needed)
  5. Define observability:
    • structured logs
    • request ids
    • audit trail for sensitive actions
  6. Define validation plan (tests + CI hooks).

Validation

  • Every endpoint has authz rules or an explicit “public” justification.
  • Inputs are validated; outputs are consistent with schema.
  • Failure modes are explicit (timeouts, retries, fallbacks).

Output

Architecture spec (example schema):

api:
  - method: POST
    path: /v1/...
    auth: required
services: ["..."]
data_model: ["..."]
observability: ["logs", "metrics (optional)"]
validation: ["unit tests", "integration tests"]

Safety Rules

  • Do not design systems that require storing secrets in source control.
  • Avoid introducing new dependencies unless justified.
  • Default to safe failure modes (no partial writes without idempotency).

Example

Requirement: “Webhook ingestion with replay protection.”

Output: includes idempotency key storage, signature verification, and audit logging.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 14:49 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

OnChain Analysis

mzfshark
战略性解读区块链数据,以数据支撑的证据和明确的不确定性,识别模式、异常和流向。
★ 0 📥 582
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 680 📥 328,631
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 196 📥 67,842