Agent SkillsAjayIrkal23/agentic-mercy-10x › backend-standards-always-follow

backend-standards-always-follow

GitHub

后端开发强制基线技能,要求在处理任何后端任务前加载10个配套标准。涵盖Go语言最佳实践、API规范、服务层设计、错误处理及代码审查,确保架构合规与高质量交付。

skills/backend-standards-always-follow/SKILL.md AjayIrkal23/agentic-mercy-10x

触发场景

涉及后端API、路由或控制器开发 进行后端bug修复或实现新功能 执行后端代码审查或重构

安装

npx skills add AjayIrkal23/agentic-mercy-10x --skill backend-standards-always-follow -g -y
更多选项

不安装直接使用

npx skills use AjayIrkal23/agentic-mercy-10x@backend-standards-always-follow

指定 Agent (Claude Code)

npx skills add AjayIrkal23/agentic-mercy-10x --skill backend-standards-always-follow -a claude-code -g -y

安装 repo 全部 skill

npx skills add AjayIrkal23/agentic-mercy-10x --all -g -y

预览 repo 内 skill

npx skills add AjayIrkal23/agentic-mercy-10x --list

SKILL.md

Frontmatter
{
    "name": "backend-standards-always-follow",
    "schema": 1,
    "category": "backend",
    "surfaces": [
        "backend"
    ],
    "triggers": {
        "paths": [
            "\/models\/",
            "controller",
            "internal\/",
            "internal\/models\/",
            "server\/",
            "service"
        ],
        "intents": [
            "backend"
        ],
        "keywords": [
            "acceptance",
            "always",
            "always-on",
            "api",
            "auth",
            "backend",
            "backend\/server",
            "baseline",
            "behavior",
            "bugfix",
            "completion",
            "compliance",
            "contract",
            "controller",
            "core",
            "debugging",
            "delegation",
            "follow",
            "implementation",
            "integration",
            "member",
            "part",
            "persistence",
            "planning",
            "queue",
            "requested",
            "review",
            "route",
            "schema",
            "server\/fastify",
            "service",
            "standards",
            "surface",
            "trigger",
            "validation",
            "worker"
        ]
    },
    "platforms": [
        "linux",
        "darwin",
        "windows"
    ],
    "token-cost": 711,
    "description": "ALWAYS invoke when any backend API, route, controller, schema, service, contract, persistence, auth, validation, worker, queue, integration, server\/Fastify behavior, backend bugfix, or implementation is requested. Backend Core Compliance Set member for the always-on backend baseline — MUST use for any backend\/server trigger surface before planning, debugging, implementation, review, delegation, or completion acceptance.",
    "disable-model-invocation": false
}

Backend Standards Always Follow

🔒 MANDATORY COMPANION BUNDLE — load ALL now, every time, no exceptions

Reading this skill is the trigger. Before doing ANY backend work you MUST immediately Skill-invoke all of the following, end to end. Not "when the work clearly needs them" — always, as a set, the moment this baseline loads:

  1. backend-api-standards
  2. service-layer-standards
  3. backend-error-handling
  4. backend-performance-standards
  5. backend-code-review
  6. api-contract-standards
  7. scaffold-standards
  8. golang-patterns
  9. golang-testing
  10. postgres-patterns

These 10 are the companion skills for backend work — NAMED here as trigger pointers so none is lost. Load a companion's BODY lazily, only when the task actually needs it — not all 10 in full up front.

Overview

This is the always-on backend baseline. The active backend stack is Go (GO_UDP) — all examples are Go-first; Node/TS/Fastify/Mongo variants live in references/node-stack.md.

Start here for any backend task. The companion bundle above is NAMED (trigger pointers); load each companion's body LAZILY, only when the task needs it — not all in full every time.

Always Apply

  • Inspect existing routes, controllers, schemas, services, models, and helpers before changing behavior.
  • Preserve current response shapes, DB fields, and domain behavior unless the task explicitly changes them.
  • Keep controllers thin and keep business logic in services.
  • Keep filtering, sorting, pagination, and search backend-driven for list endpoints.
  • Validate request shapes with schemas instead of scattered ad hoc checks.
  • Keep manually maintained backend source files at or below 250 lines. If a touched file is already over 250 lines, split or reduce it before adding more behavior unless the user explicitly scopes that cleanup out.
  • Remove stale imports, replaced logic, and dead backend paths while you work.

Non-Negotiables

  • No guessing when the repo already shows the pattern.
  • No business logic hidden in controllers.
  • No unbounded list endpoints for real datasets.
  • No raw internal errors, stack traces, or driver errors leaking to clients.
  • No touched manually maintained backend source file may remain over 250 lines without an explicit blocker.
  • No partial old/new backend implementations left behind without a reason.

Load Next When Needed

  • service-layer-standards for controller/service boundaries and service contracts.
  • backend-api-standards for detailed list/search endpoint semantics.
  • api-contract-standards for success/error envelopes and contract compatibility.
  • backend-error-handling for centralized handler rules and error taxonomy.
  • backend-performance-standards for query-efficiency or scalability review.
  • scaffold-standards for new domain or feature skeletons.

Completion Checklist

  • Existing backend patterns were inspected first.
  • Controllers stayed thin.
  • Business logic stayed in services.
  • Query behavior remained backend-driven.
  • No stale backend code was left behind.

版本历史

  • 581d130 当前 2026-07-19 09:04

同 Skill 集合

attic/2026-07-09/skills-pre-update/taste-skill/SKILL.md
attic/2026-07-09/skills-pre-update/ui-ux-pro-max/SKILL.md
skills/agent-development/SKILL.md
skills/api-and-interface-design/SKILL.md
skills/api-contract-standards/SKILL.md
skills/architect-system-design/SKILL.md
skills/backend-api-standards/SKILL.md
skills/backend-code-review/SKILL.md
skills/backend-error-handling/SKILL.md
skills/backend-performance-standards/SKILL.md
skills/canary-playwright/SKILL.md
skills/caveman/SKILL.md
skills/ci-cd-and-automation/SKILL.md
skills/code-execution-standard/SKILL.md
skills/code-review-and-quality/SKILL.md
skills/code-simplification/SKILL.md
skills/codebase-design/SKILL.md
skills/codebase-start-point-guide/SKILL.md
skills/command-development/SKILL.md
skills/composition-patterns/SKILL.md
skills/context-engineering/SKILL.md
skills/dead-code-and-change-audit/SKILL.md
skills/debug-investigation/SKILL.md
skills/debugging-and-error-recovery/SKILL.md
skills/deprecation-and-migration/SKILL.md
skills/design-extract/SKILL.md
skills/design-review-playwright/SKILL.md
skills/diagnose/SKILL.md
skills/documentation-and-adrs/SKILL.md
skills/domain-modeling/SKILL.md
skills/domain-scaffold-patterns/SKILL.md
skills/doubt-driven-development/SKILL.md
skills/dox-doc-tree/SKILL.md
skills/eval-harness/SKILL.md
skills/fix-lint-format/SKILL.md
skills/forensic-change-coupling/SKILL.md
skills/forensic-complexity-trends/SKILL.md
skills/forensic-debt-quantification/SKILL.md
skills/forensic-hotspot-finder/SKILL.md
skills/frontend-api-standards/SKILL.md
skills/frontend-code-review/SKILL.md
skills/frontend-response-handling/SKILL.md
skills/frontend-server-data-patterns/SKILL.md
skills/frontend-standards-always-follow/SKILL.md
skills/frontend-structure-standards/SKILL.md
skills/frontend-ui-engineering/SKILL.md
skills/git-workflow-and-versioning/SKILL.md
skills/golang-patterns/SKILL.md
skills/golang-testing/SKILL.md

元信息

文件数
0
版本
fc73590
Hash
4f8e6e81
收录时间
2026-07-19 09:04

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-03 19:08
浙ICP备14020137号-1 $访客地图$