TraeSkill: Skill for Claude Code

.trae/Skills/05_Backend_Database/SKILL.md

Backend Database Expert is a skill for Claude Code, Codex from boshi-xixixi/TraeSkill. It costs 67 tokens per session (542 once invoked), scanned A, original, MIT.

A guide for designing databases, improving SQL queries, and changing database structures safely. A database stores application data, while a migration is a controlled change to its tables or other structure.

In plain words
What is it for?
Use it to design schemas, inspect query plans with EXPLAIN, optimize SQL, write migration scripts, handle compatibility, and plan data cleanup.
Why use it?
It helps diagnose slow queries, choose indexes, avoid repeated-query problems, and reduce risks when changing a live database.

Skill for Claude CodeCodex

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

This is boshi-xixixi/TraeSkill's own configuration. It tells Claude Code and Codex how to work on TraeSkill itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything TraeSkill configures →

Reuse

Borrowing it

Nothing to install: this file belongs to boshi-xixixi/TraeSkill. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/boshi-xixixi/TraeSkill/main/.trae/Skills/05_Backend_Database/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/boshi-xixixi/TraeSkill

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 Database Expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/boshi-xixixi/traeskill/05_backend_database/github.svg)](https://agentmods.dev/skills/boshi-xixixi/traeskill/05_backend_database)
Your own site
<a href="https://agentmods.dev/skills/boshi-xixixi/traeskill/05_backend_database"><img src="https://agentmods.dev/badge/skills/boshi-xixixi/traeskill/05_backend_database/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 Database Expert

Your own site · 80×15
<a href="https://agentmods.dev/skills/boshi-xixixi/traeskill/05_backend_database"><img src="https://agentmods.dev/badge/skills/boshi-xixixi/traeskill/05_backend_database.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 542 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.00067 $0.00542
Opus 5.5 $0.00027 $0.00217
Sonnet 5.5 $0.00013 $0.00108
Haiku 4.5 $0.00007 $0.00054

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

Security

Grade A, and why

Backend Database Expert 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 8d 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.

.trae/Skills/05_Backend_Database/SKILL.md · 40 lines

What it actually says

Backend Database Skills

🤖 智能体与 MCP 增强 (Agent & MCP Enhancements)

本 Skill 支持并推荐配合特定的智能体角色和 MCP 工具使用,以获得最佳效果。

推荐智能体角色

  • Database Consultant: 详见 AGENTS.md。
    • 该角色专注于数据库架构设计、性能调优和数据安全。
    • 启用后,AI 将优先进行 Schema 内省和执行计划分析。

推荐 MCP 工具

  • PostgreSQL/MySQL MCP: 允许 AI 直接连接数据库,获取实时的 Schema 信息和执行 EXPLAIN 分析,而不仅仅是基于静态代码推断。
  • mcp-feedback-enhanced: 允许 AI 在设计表结构或优化策略时,如果遇到不确定性,使用 ask_followup_question 等工具主动向用户确认业务需求或权衡方案。

提供专业的数据库开发与维护能力,帮助你构建高性能、高可靠的数据层。

包含的技能模块

1. SQL 优化模式 (SQL Optimization)

  • 核心价值: 解决慢查询,提升数据库性能。
  • 关键技术: EXPLAIN 分析, 索引策略, N+1 问题修复.
  • 使用场景: 数据库性能瓶颈分析、复杂查询优化。

2. 数据库迁移 (Database Migration)

  • 核心价值: 安全、可控地变更数据库结构。
  • 关键技术: 迁移脚本编写, 向后兼容性, 零停机迁移.
  • 使用场景: 版本迭代、Schema 变更、数据清洗。

如何使用

  • 性能调优: "请使用 SQL 优化模式帮我分析这条查询语句为什么这么慢。"
  • 结构变更: "请参考数据库迁移指南,帮我写一个给用户表添加字段的迁移脚本。"
Files

What ships with it

4 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.

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. 8d ago First seen · 40 lines · 67 tokens per session scan A 02f52afcf31d

Subscribe to this mod's changes

Backend Database Expert is a skill published in the GitHub repository boshi-xixixi/TraeSkill (288 stars, last pushed 9d ago), licensed MIT. It adds 67 tokens to every session and 542 once invoked, about $0.0003 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-11-22.

Related

Backend Database Expert compared with skills from other repositories

Backend Database Expert next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Backend Database Expertboshi-xixixi/TraeSkillSkill2889d agoMITA67Claude Code, Codex
dbRune-kit/runeSkill962d agoMITA43Claude Code
azure-cosmos-dbMicrosoftDocs/Agent-SkillsSkill82421d agoCC-BY-4.0A121Claude Code
azure-sql-databaseMicrosoftDocs/Agent-SkillsSkill82421d agoCC-BY-4.0A135Claude Code
azure-database-postgresqlMicrosoftDocs/Agent-SkillsSkill82421d agoCC-BY-4.0A140Claude Code
azure-sql-managed-instanceMicrosoftDocs/Agent-SkillsSkill82421d agoCC-BY-4.0A115Claude Code
azure-sapMicrosoftDocs/Agent-SkillsSkill82421d agoCC-BY-4.0A128Claude Code