backend-service-spec-skill

backend-service-spec-skill is a skill for Codex from SYZ-Coder/codebase-knowledge-wiki. It costs 97 tokens per session (3,248 once invoked), scanned A, original, MIT.

A Chinese-language version of a workflow for documenting backend systems, services, message flows, and current code-based requirements. It emphasizes recording only facts supported by code and clearly marking uncertain evidence.

In plain words
What is it for?
Use it to create service maps, trace calls and messages, organize business-domain knowledge, perform service deep dives, and extract requirements from legacy code.
Why use it?
It gives teams a consistent way to turn scattered backend knowledge into shared documentation. It reduces the risk of presenting one-sided dependencies or guesses as confirmed system behavior.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to create service maps, trace calls and messages, organize business-domain knowledge, perform service deep dives, and extract requirements from legacy code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/syz-coder/codebase-knowledge-wiki/backend-service-spec-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add SYZ-Coder/codebase-knowledge-wiki --skill backend-service-spec-skill
Clone the repo
git clone --depth 1 https://github.com/SYZ-Coder/codebase-knowledge-wiki

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for backend-service-spec-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/syz-coder/codebase-knowledge-wiki/backend-service-spec-skill/github.svg)](https://agentmods.dev/skills/syz-coder/codebase-knowledge-wiki/backend-service-spec-skill)
Your own site
<a href="https://agentmods.dev/skills/syz-coder/codebase-knowledge-wiki/backend-service-spec-skill"><img src="https://agentmods.dev/badge/skills/syz-coder/codebase-knowledge-wiki/backend-service-spec-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for backend-service-spec-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/syz-coder/codebase-knowledge-wiki/backend-service-spec-skill"><img src="https://agentmods.dev/badge/skills/syz-coder/codebase-knowledge-wiki/backend-service-spec-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,248 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00097 $0.03248
Opus 5.5 $0.00039 $0.01299
Sonnet 5.5 $0.00019 $0.00650
Haiku 4.5 $0.00010 $0.00325

Measured 1mo ago against content hash 5c43e4f2fb33, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

backend-service-spec-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

backend-service-spec-skill/SKILL.md · 351 lines

How it starts

The opening of the file, as written. The whole thing — 351 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Backend Service Spec Skill

用于把单服务、跨服务、业务域、通信链路、事实需求五类梳理动作统一成一套可复用知识技能。

0. 何时使用

当用户出现以下目标时,使用本技能:

  • 想梳理旧系统、微服务、平台型仓库的代码总图
  • 想做跨服务调用链、接口链路、消息链路排查
  • 想把零散服务文档上卷成“域 -> 服务 -> 规范”三层知识
  • 想对单个高价值服务做纵切梳理
  • 想在历史 PRD 缺失时,按功能模块从代码事实抽取当前系统事实需求
  • 想把代码知识沉淀成团队可复用的中央知识库,而不是停留在一次对话里

如果只是实现功能、修 Bug、写测试,而不是做知识梳理,不优先使用本技能。

1. 核心原则

始终遵守以下约束:

  • 严格按代码事实输出,不把猜测写成事实
  • 先索引,后正文:先建立地图,再沉淀稳定知识页
  • Codemap 是索引层,不是最终知识库正文
  • 业务域页的价值是“上卷整理”,不是重复抄写服务页
  • 跨服务链路必须区分同步调用、异步消息、定时/补偿、实时通道
  • 事实需求抽取必须区分当前代码事实、单边线索、数据线索和待人工确认项
  • 无法闭环验证的内容必须显式标注证据等级,不能伪装成已确认
  • 如果只看到单边依赖、单边契约、单边 producer/listener,不得直接写成双边已确认闭环
  • 在进入正式梳理前,先做 workspace 范围识别

2. 执行前置:workspace 范围识别

在运行核心功能前,先用最小成本判断当前 scope 属于哪一种:

  • single-system: 单一系统 / 单一运行时家族
  • service-family: 同一家族、多服务协作
  • multi-system-workspace: 多套系统共存的工作区

最少要回答三个问题:

  1. 当前 scope 是单系统、服务家族,还是多系统并存工作区
  2. 本轮目标是全景索引、关键链路、还是稳定知识页
  3. 当前产物应该落在 mydocs/ 的哪一层

如果识别为 multi-system-workspace:

  • 第一轮优先 create_codemap: mode=service_landscape
  • 先切 family,再做闭环链路
  • 不要直接上 build_domain_map

详见:references/workspace-classification.md

3. 核心功能

3.1 跨服务 create_codemap

用途:

  • 在多服务、微服务、平台仓库中生成跨服务 CodeMap
  • 继承 sdd-riper 的 create_codemap 思想,但升级为“服务间视角”
  • 不只看单项目结构,还看服务注册、调用方向、依赖关系、上下游角色、关键链路

适用输入:

create_codemap: mode=service_landscape, scope=<系统名或服务群>, goal=<梳理目标>

也兼容:

create_codemap: mode=project, scope=<项目名>, goal=<输出项目总图与核心流程>
create_codemap: mode=feature, scope=<关键功能或链路>, goal=<梳理核心入口与主链路>
create_codemap: mode=service_chain, scope=<跨服务业务链>, goal=<梳理服务级链路>

输出重点:

  • 服务清单
  • 服务职责边界
  • 服务间调用关系
  • 入口与出口
  • 同步/异步链路索引
  • 外部系统依赖
  • 风险热点
  • 代码证据来源
  • workspace 范围判断

默认产物:

  • mydocs/codemap/YYYY-MM-DD_hh-mm_<name>服务总图.md
  • mydocs/codemap/YYYY-MM-DD_hh-mm_<name>链路地图.md

详情模板见 references/codemap-modes.md

3.2 跨服务业务域梳理

用途:

  • 把零散服务知识提升为团队可复用的上下文层
  • 形成“域 -> 服务 -> 规范”三层知识结构
  • 支持中央仓库、Wiki、OpenSpec、旧系统知识库共建

适用输入:

build_domain_map: scope=<系统或服务群>, goal=<按业务域梳理>

输出规则:

  • 域层只做上卷整理,不重写服务页全文
  • 域层必须区分:强事实承载服务、线索级关联服务、仍待补证关系
  • 规范层必须区分:code-fact-summary 与 team-proposed-standard
  • 最好先完成关键服务的 service_deep_dive,再做业务域梳理

Read the full file on GitHub · 351 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 351 lines · 97 tokens per session scan A 5c43e4f2fb33

Subscribe to this mod's changes

backend-service-spec-skill is a skill published in the GitHub repository SYZ-Coder/codebase-knowledge-wiki (9 stars, last pushed 4mo ago), licensed MIT. It adds 97 tokens to every session and 3,248 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

mem0-oss-to-platform

Plan, then execute, a migration of a project from the mem0 open-source / self-hosted SDK (local Memory class) to the mem0 Platform / hosted SDK (MemoryClient). TRIGGER when: the developer wants to move, switch, or migrate mem0 off OSS/self-hosted to the hosted API, e.g. "migrate my mem0 setup to the platform", "switch…

mem0ai/mem0 · 217 tokens

agui-dotnet-protobuf

Use the protobuf wire transport (instead of the default Server-Sent Events) for an AG-UI connection with the AG-UI .NET SDK — a compact binary event stream negotiated via the Accept header. USE FOR: making an AGUIChatClient prefer protobuf by wiring an AGUIEventStreamHandler with ProtobufEventStreamFormatter (then…

ag-ui-protocol/ag-ui · 162 tokens

azure-mgmt-botservice-dotnet

Azure Resource Manager SDK for Bot Service in .NET. Management plane operations for creating and managing Azure Bot resources, channels (Teams, DirectLine, Slack), and connection settings. Triggers: "Bot Service", "BotResource", "Azure Bot", "DirectLine channel", "Teams channel", "bot management .NET", "create bot".

microsoft/skills · 78 tokens

fastapi-router-py

Create FastAPI routers with CRUD operations, authentication dependencies, and proper response models. Use when building REST API endpoints, creating new routes, implementing CRUD operations, or adding authenticated endpoints in FastAPI applications.

microsoft/skills · 46 tokens

dev-runtime

How the Node side of a dev stack runs without haven, and the backend host: pnpm dev (UI built once, backend reloading), pnpm dev:hmr (adds the Vite ui lane), tools/dev-runtime (api + worker in one Node process), backend reload on a file change, the debounce (quiet window + max wait), ports derived from PORT. Use when…

langwatch/langwatch · 172 tokens

api-design

Use when settling the contract of an API you expose, before implementation: resources/URLs, REST vs GraphQL, versioning, one RFC 9457 error envelope, pagination, idempotency — emitted as OpenAPI 3.1. NOT implementing the endpoints (that is fastapi/nestjs/go/nodejs), NOT auth hardening (that is secure-coding), NOT…

ericrisco/rsc-harness · 105 tokens