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

backend-systems-guidance后台系统指导

Agent Skill

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

总安装

220

周安装

9

GitHub Stars

3

下载量

71
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/n-n-code/n-n-code-skills --skill backend-systems-guidance

简介

backend-systems-guidance 为复杂后端服务提供增强型架构指导,扩展基础后端建议。

  • 适用于新端点设计、事务处理和信任边界划分,强调测试覆盖和可靠性。
  • 通过 npx skills add 安装,需与项目特定实现技能配合使用。
  • 涉及数据库操作时应优先使用 Repository 模式隔离变化。
  • 建议在重大变更前完成集成测试和性能测试。

SKILL.md

Backend Systems Guidance

This is a composable overlay, not a standalone workflow. Use alongside the repo's implementation skill when the change touches backend code.

This is the canonical backend overlay in this repo. It extends the thin baseline backend-guidance overlay with stronger guidance for non-trivial service boundaries, repositories, reliability, and trust boundaries.

Prefer it over backend-guidance when the task includes new endpoints or consumers, multi-layer refactors, repository or transaction work, auth or trust-boundary logic, or backend review that needs explicit testing and reliability checks.

Use the bundled references only when needed:

When to use

  • the repo has server-side networked code such as HTTP handlers, gRPC methods, webhooks, queue consumers, or message producers
  • the task adds or reshapes routes, controllers, services, repositories, middleware, or request-processing boundaries
  • the task changes auth, authorization, validation, idempotency, retries, external requests, caching, or observability
  • the task needs backend review beyond basic handler thinness, especially for security, data access, or missing tests

Not for

  • HTTP client code, CLI tooling, offline batch scripts, or data pipelines with no request or consumer boundary
  • frontend-only work
  • threat modeling or security audit work where security should be the primary workflow skill

Do not fold infrastructure deployment workflows, outbound-client-only guidance, or full security-audit checklists into this skill. Keep this overlay centered on backend request and consumer systems plus their immediate reliability and trust boundaries.

Core workflow

  1. Read the touched backend files and map the request or consumer path end to end: boundary, service logic, data access, external calls, and state changes.
  2. Pick the mode before changing code:

- baseline backend change when the work is mostly a thin handler or small service fix - service-boundary change when responsibilities, data access, or dependency direction may need to move - reliability-hardening or review mode when the main risk is missing tests, auth gaps, retries, observability, or unsafe failure handling

  1. Keep the boundary thin: decode input, authenticate and authorize, validate, call a service, map transport errors, and serialize output. Business decisions belong in service code that can run without the transport layer.
  2. Place persistence and external integrations deliberately:

- repositories or data adapters own query shape, batching, and transaction details when that improves clarity or testing - services coordinate business rules, idempotency, retries, and side-effect ordering - handlers and controllers do not reach directly into ORM or network clients unless the change is truly trivial and stays trivial

  1. Harden cross-cutting concerns at the edge:

- validate external input once at the boundary - enforce auth and authorization before business actions - set timeouts, retry rules, and destination allowlists for outbound calls - use structured logging, correlation identifiers, and explicit error mapping for observable failure paths

  1. Choose the smallest test set that proves the change:

- unit tests for service logic and decision branches - integration tests for handlers, consumers, repositories, and transaction behavior - auth and permission tests for protected flows - contract or schema tests when the change alters external API or event shapes - load or concurrency tests only for changed hotspots, queue throughput, or latency-sensitive paths

  1. Review the result for boundary leaks, unsafe defaults, data-access inefficiency, and missing verification before finishing.

Decision rules

  • Start with backend-guidance for ordinary backend edits. Use this overlay when the task needs stronger design pressure, harder review, or explicit backend quality gates.
  • Keep handlers thin in responsibility, not by literal line count. If a handler or consumer owns business decisions, retries, transaction branching, or query orchestration, extract inward.
  • Keep business logic transport-free. If testing a rule requires booting HTTP, gRPC, or queue infrastructure, the logic is in the wrong place.
  • Add a repository or data-access interface when it reduces duplication, isolates non-trivial queries, helps transaction composition, or makes tests materially simpler. Do not add one for single-call trivial CRUD.
  • Prefer one validation pass at the outer edge plus typed internal data. Avoid repeated validation in every layer unless a trust boundary changes.
  • Treat retries as a design choice, not a default. Only retry idempotent or explicitly deduplicated work, and pair retries with deadlines or backoff.
  • Use idempotency keys or duplicate-detection for retried creates, webhook handlers, and queue consumers that can be re-delivered.
  • Every outbound request needs a timeout and failure policy. For user-controlled destinations, apply allowlists or equivalent SSRF protections.
  • Keep error handling explicit: domain code returns or throws domain-level failures; boundary code maps them to HTTP, gRPC, queue, or job semantics.
  • Measure before adding caching. Cache only stable read paths with clear invalidation or bounded staleness.

Validation

A backend change is done when, in addition to the base implementation skill's validation:

  • handlers or consumers stay as boundary glue and delegate business decisions to testable service code
  • data access and external I/O live behind clear seams when the change is non-trivial
  • external input, auth, and transport-specific error mapping stay at the edge
  • retries, idempotency, timeouts, and failure handling are explicit where the change can duplicate work or call remote systems
  • tests cover the changed behavior at the correct level, including integration coverage for boundary behavior and permission or failure cases when relevant
  • new high-risk paths emit enough evidence to debug production behavior

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.34%
按下载量换算25

Claude

28.15%
按下载量换算20

Cursor

18.24%
按下载量换算13

Gemini CLI

9.58%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

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

安装前确认

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

来源信息

继续浏览同类 Skills