跳到正文
Skillpedia
API 与服务器(后端)5.1k · #15080

omh-backend

它能做什么

它为服务器或 API 的改动准备约定,包括谁能访问什么、如何处理错误、响应格式,以及结构变更的顺序。适合设计后端服务的开发者。

适用场景

  • ✓当你在设计新的 API 或服务器功能时。
  • ✓当你需要为某项服务规划身份验证和错误处理时。
  • ✓当你希望在编码前先规划好数据库结构和迁移顺序时。

技能链接

https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-backend/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-backend/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“在我们写任何代码之前,请为我们的账单服务设计一个 REST API,并附上 Postgres 结构和迁移方案。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会写下 API 约定、访问规则、错误路径和迁移顺序,供你审阅。计划达成一致之后,才进入实现阶段。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Backend

This is an OMH backend workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).

Why This Exists

backend gives OMH a first-class server-side workflow so Hermes can prepare auth boundaries, error paths, response shapes, and migration order without becoming the hidden runtime that executes them.

Do Not Use When

  • The work is the database itself -- a slow query and the index that fixes it, DDL that locks a live table, N+1 queries, or when to partition or shard; use omh-relational-db, which owns the lock behaviour and rollback of each statement.
  • The request is about web UI, layout, or a design system; use omh-frontend.
  • The request is a security posture or threat review rather than a service design; use omh-security-safety-review.
  • The request is to run or judge the verification of an already-built service; use omh-verification-gate.
  • The request is a Rust-language change whose risk is compiler, ownership, or unsafe discipline; use omh-rust.
  • The work is a batch or streaming job's rerun, backfill, duplicate rows, or a warehouse table's downstream readers; use omh-data-pipelines.

Examples

Good example:

  • Prompt: Design a REST API with a Postgres schema and migrations for the billing service.
  • Expected behavior: Prepare backend_service_contract/v1, auth_boundary_map/v1, error_path_table/v1, response_shape_contract/v1, and schema_migration_plan/v1, then hand off with the per-stack reference named.
  • Why: The request is server-side design across an endpoint surface and its storage, before any code exists.

Bad example:

  • Prompt: The migration is written, so mark the schema as migrated and the API as live.
  • Expected behavior: Mark migration application, integration runs, and deployment as not_observed and name the smallest observed proof for each.
  • Why: A prepared migration plan is not an applied migration, and a contract is not a running service.

Completion Checklist

  • The surface, its callers, and each caller's trust level are named.
  • The auth_boundary_map/v1 states where trust changes and which check enforces it on every path.
  • The error_path_table/v1 covers each failure mode with status, body shape, retryability, and redaction rule.
  • The response_shape_contract/v1 is consistent across endpoints rather than per-endpoint improvisation.
  • Storage changes carry an expand/backfill/switch/contract order with a rollback point per step.
  • A change to an existing contract carries its consumer list or an explicit consumers_not_enumerable, plus the compatibility window, migration path, and sunset date.
  • The handoff names the executor, the stack, and the per-stack reference to load first.
  • Implementation, migrations, integration runs, and deployment stay observed-only.

Recovery Notes

  • If the stack or datastore is unknown, prepare the contract stack-neutral and name the stack as the one blocking input.
  • If the auth model cannot be established, stop at the auth boundary gap instead of designing endpoints that assume a trust level.

When to Use

Use when Hermes should shape a server, API, or data-layer change before implementation: authentication boundary, contract error paths, response consistency, schema and migration discipline, and the per-stack reference the executor loads first.

Strong routing signals: `backend`, `back-end`, `back end`, `backend skill`, `server side`, `server-side`, `api design`, `api contract`, `rest api`, `graphql api`, `grpc service`, `endpoint design`, `auth boundary`, `authentication flow`, `authorization rules`, `idempotency key`, `pagination contract`, `database schema`, `postgres schema`, `schema migration`, `db migration`, `orm mapping`, `connection pool`, `message queue`, `webhook handler`, `openapi`, `openapi spec`, `deprecate endpoint`, `deprecate this endpoint`, `deprecation window`, `sunset date`, `sunset schedule`, `api versioning`, `breaking api change`, `バックエンド`, `エンドポイント設計`, `認証フロー`, `スキーマ移行`, `백엔드`, `서버 개발`, `서버 api`, `api 설계`, `인증 흐름`, `권한 체크`, `디비 스키마`, `db 스키마`, `스키마 마이그레이션`, `엔드포인트 설계`, `后端`, `後端`, `接口设计`, `认证流程`, `数据库迁移`, `rancang API backend`, `buat kontrak endpoint`, `desain layanan sisi server`, `bantu rancang alur autentikasi backend`, `tentukan format respons API`, `susun penanganan error di backend`, `thiết kế API backend`, `quy định contract của endpoint`, `thiết kế dịch vụ phía máy chủ`, `giúp thiết kế luồng xác thực backend`, `xác định định dạng phản hồi 
常见问题

这会编写服务器代码吗?

它先准备约定,编写代码是单独的步骤。

这是用来做数据库性能调优的吗?

不是。查询速度、索引和表锁由关系型数据库技能负责。

这是用于安全审查的吗?

不是。安全态势审查由单独的安全审查技能负责。

详情

作者的原始描述

[omh] Designing an API, server, or data-layer change: prepare server, API, and data-layer contracts — auth boundary, error paths, response shape, and schema/migration discipline — before implementation. Use when the user says: backend, back-end, back end, backend skill, server side, server-side, api design, api contract.

repo: rlaope/oh-my-hermes

热度

GitHub 星标
5.1k
排名
#15080
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能