Agent Skills
› AjayIrkal23/agentic-mercy-10x
› backend-performance-standards
backend-performance-standards
GitHub用于审查后端查询效率、文件大小压力、重复数据库工作及扩展风险。确保在优化时保持接口契约不变,避免同步循环和冗余调用,并强制拆分超过250行的文件以维持结构清晰。
触发场景
审查后端查询效率
评估文件大小压力
检测重复数据库工作
分析扩展性风险
安装
npx skills add AjayIrkal23/agentic-mercy-10x --skill backend-performance-standards -g -y
SKILL.md
Frontmatter
{
"name": "backend-performance-standards",
"schema": 1,
"category": "backend",
"surfaces": [
"backend"
],
"triggers": {
"paths": [
"cmd\/",
"internal\/",
"server\/"
],
"intents": [
"backend"
],
"keywords": [
"backend",
"boundaries",
"efficiency",
"file-size",
"optimization",
"performance",
"pressure",
"query",
"repeated",
"reviewing",
"risk",
"safe",
"scaling",
"standards",
"work"
]
},
"platforms": [
"linux",
"darwin",
"windows"
],
"token-cost": 264,
"description": "ALWAYS invoke when reviewing backend query efficiency, file-size pressure, repeated DB work, scaling risk, or safe optimization boundaries.",
"disable-model-invocation": false
}
Backend Performance Standards
Overview
Use this skill when performance or scale risk is the actual concern, not as a default backend load.
Focus Areas
- DB query count and efficiency
- repeated work across services or loops
- file-size pressure and decomposition
- index awareness
- safe optimization without contract drift
Rules
- Avoid repeated DB calls when batching or reuse is possible.
- Avoid large synchronous loops over expensive work.
- Keep controllers thin and hot paths inside focused services/helpers.
- Preserve response shapes, DB fields, and contract keys while optimizing.
- Treat manually maintained backend source files above 250 lines as a structural violation for touched performance surfaces; split hot-path services, helpers, query builders, or mappers before adding more behavior unless the user explicitly scopes that cleanup out.
Checklist
- Queries are bounded and efficient.
- Repeated work is reduced.
- Controllers stay thin.
- No circular dependency or duplication was introduced during optimization.
版本历史
- 581d130 当前 2026-07-19 09:04


