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.
npx skills add jiushiwon/wg-skills --skill backend-convention-skillgit clone --depth 1 https://github.com/jiushiwon/wg-skillsWrote 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.
[](https://agentmods.dev/skills/jiushiwon/wg-skills/backend-convention-skill)<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.
<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>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.
| Model | Per session | Once 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 |
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.
What it actually says
Backend Convention Skill
本 skill 是后端规范的唯一定义处。4 个后端生成 skill(java / go / python / nodejs)引用它,禁止复制规则文本。
红线(不可绕过)
- 所有接口返回
{ code, message, data };code >= 0成功,< 0失败;HTTP 一律 200(仅 404/405/500 例外)。 - 业务异常带
code + message;控制器只返数据,由拦截器/中间件统一包装;禁止业务代码手造 HTTP 状态码。 - 边界校验失败返
-1001。 - JWT:登录签发、
Authorization: Bearer携带;前端不得硬编码未声明的字段/枚举/路径/错误码。 - 命名:表/集合 snake_case + 前缀;路由
/api/<资源>;环境变量全大写。 api-contract.md是前后端唯一事实来源;实现与契约冲突时契约赢。.env必须 gitignore;敏感信息不进仓库。- 每个生成的后端项目必须同时落地两份文档:
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
What ships with it
9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- README.md 2.6 KB
- references/agents-md-template.md 2.5 KB
- references/api-contract-spec.md 18 KB
- references/claude-md-template.md 2.0 KB
- references/default-api-contract.md 11 KB
- references/env-config-guide.md 7.1 KB
- references/project-guide-template.md 9.6 KB
- references/response-format.md 3.3 KB
- references/versions-template.md 1004 B
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.
- 24d ago Changed · +1 lines · +90 tokens per session 4f70c0dc7af7
- 25d ago Changed b98eb80c0440
- 1mo ago Changed · +4 lines 58daa6364d41
- 2mo ago First seen · 54 lines · 0 tokens per session scan A 111389c3fb91
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.
backend-convention-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| backend-convention-skilljiushiwon/wg-skills | Skill | 154 | 7d ago | Apache-2.0 | A | 90 | Claude Code, Codex |
| mem0-oss-to-platformmem0ai/mem0 | Skill | 70k | 4d ago | Apache-2.0 | A | 217 | Claude Code, Codex |
| tao-run-inference-serviceNVIDIA/skills | Skill | 4.2k | today | Apache-2.0 | A | 92 | Claude Code |
| azure-mgmt-botservice-dotnetmicrosoft/skills | Skill | 3.3k | yesterday | MIT | A | 78 | Claude Code |
| fastapi-router-pymicrosoft/skills | Skill | 3.3k | yesterday | MIT | A | 46 | Claude Code |
| dev-runtimelangwatch/langwatch | Skill | 5.1k | today | Apache-2.0 | A | 172 | Claude Code |
| api-designericrisco/rsc-harness | Skill | 691 | 6d ago | MIT | A | 105 | Claude Code, Codex |