backend-convention-skill

backend-convention-skill is a skill for Claude Code, Codex from jiushiwon/wg-skills. It costs 90 tokens per session (990 once invoked), scanned A, original, Apache-2.0.

A shared set of rules for generating or reviewing backend services, including API responses, errors, authentication, naming, environment settings, and project documents.

In plain words
What is it for?
Use it when building or reviewing backend APIs that need consistent response formats, JWT login, routes, environment variables, interface contracts, and project guides.
Why use it?
It prevents different backend projects or language-specific tools from using conflicting conventions. It also keeps the API contract and required project documentation aligned with the code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Good fit Use it when building or reviewing backend APIs that need consistent response formats, JWT login, routes, environment variables, interface contracts, and project guides.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jiushiwon/wg-skills/backend-convention-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 jiushiwon/wg-skills --skill backend-convention-skill
Clone the repo
git clone --depth 1 https://github.com/jiushiwon/wg-skills

Made for: Claude Code, 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-convention-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/jiushiwon/wg-skills/backend-convention-skill/github.svg)](https://agentmods.dev/skills/jiushiwon/wg-skills/backend-convention-skill)
Your own site
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/backend-convention-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/backend-convention-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-convention-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/backend-convention-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/backend-convention-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 990 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.00090 $0.00990
Opus 5.5 $0.00036 $0.00396
Sonnet 5.5 $0.00018 $0.00198
Haiku 4.5 $0.00009 $0.00099

Measured 24d ago against content hash 4f70c0dc7af7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

backend-convention-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 24d 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/backend-convention-skill/SKILL.md · 59 lines

What it actually says

Backend Convention Skill

本 skill 是后端规范的唯一定义处。4 个后端生成 skill(java / go / python / nodejs)引用它,禁止复制规则文本。

红线(不可绕过)

  1. 所有接口返回 { code, message, data };code >= 0 成功,< 0 失败;HTTP 一律 200(仅 404/405/500 例外)。
  2. 业务异常带 code + message;控制器只返数据,由拦截器/中间件统一包装;禁止业务代码手造 HTTP 状态码。
  3. 边界校验失败返 -1001。
  4. JWT:登录签发、Authorization: Bearer 携带;前端不得硬编码未声明的字段/枚举/路径/错误码。
  5. 命名:表/集合 snake_case + 前缀;路由 /api/<资源>;环境变量全大写。
  6. api-contract.md 是前后端唯一事实来源;实现与契约冲突时契约赢。
  7. .env 必须 gitignore;敏感信息不进仓库。
  8. 每个生成的后端项目必须同时落地两份文档:docs/project-guide.md(介绍 & 拓展性文档)与 api-contract.md(接口 md),与代码同时交付,缺一则视为生成未完成。

引用索引

文件 内容
references/response-format.md 响应信封结构(已迁移至 ../shared/response-envelope-spec.md,本文件仅保留各语言实现参考)
references/api-contract-spec.md 12 节契约规范(含强制红线、枚举字典、接口模板、变更规则)
references/default-api-contract.md 默认接口 md 模板(health/auth/users 全量写全),生成 api-contract.md 的起点
references/project-guide-template.md 介绍 & 拓展性文档模板(技术栈/对接前端/接口范式/拦截器/出入参),生成 docs/project-guide.md 的依据
references/env-config-guide.md 环境变量命名、各语言配置加载方式、.env.example 模板、安全规则
references/versions-template.md 生成项目 versions.md 的模板(只保留所选栈的行)
references/claude-md-template.md 生成项目 CLAUDE.md 的模板(简短红线 + 重定向 AGENTS.md)
references/agents-md-template.md 生成项目 AGENTS.md 的模板(详细规范入口)

给后端 skill 的引用方式

后端 skill 主体第一句必须声明:

依赖:backend-convention-skill(规范)、database-design-skill(DB)

生成代码时:

  • 信封/错误码/分页 → 按 response-format.md
  • api-contract → 以 default-api-contract.md 为起点,按 api-contract-spec.md 补全(前端严格对齐)
  • 介绍 & 拓展性文档 → 按 project-guide-template.md,栈特定段取各后端 skill skeleton 的「project-guide 填充段」
  • 环境变量 → 按 env-config-guide.md
  • 项目元文件 → 按 claude-md-template.md / agents-md-template.md

禁止:把上述规则复制进后端 skill 主体,避免漂移。

不做

  • 不写任何业务代码(属于 4 个后端 skill)。
  • 不替用户提交(git commit)。
  • 不在本 skill 锁定版本号(版本由后端 skill 现场查询官方源,写入 versions.md)。

触发词

backend-convention、Backend Convention Skill

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. 24d ago Changed · +1 lines · +90 tokens per session 4f70c0dc7af7
  2. 25d ago Changed b98eb80c0440
  3. 1mo ago Changed · +4 lines 58daa6364d41
  4. 2mo ago First seen · 54 lines · 0 tokens per session scan A 111389c3fb91

Subscribe to this mod's changes

backend-convention-skill is a skill published in the GitHub repository jiushiwon/wg-skills (154 stars, last pushed 7d ago), licensed Apache-2.0. It adds 90 tokens to every session and 990 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-09-30.

Related

backend-convention-skill compared with skills from other repositories

backend-convention-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
backend-convention-skilljiushiwon/wg-skillsSkill1547d agoApache-2.0A90Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill70k4d agoApache-2.0A217Claude Code, Codex
tao-run-inference-serviceNVIDIA/skillsSkill4.2ktodayApache-2.0A92Claude Code
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.3kyesterdayMITA78Claude Code
fastapi-router-pymicrosoft/skillsSkill3.3kyesterdayMITA46Claude Code
dev-runtimelangwatch/langwatchSkill5.1ktodayApache-2.0A172Claude Code
api-designericrisco/rsc-harnessSkill6916d agoMITA105Claude Code, Codex