AgentSkillsCN

db-health-check

运行数据库安全与性能检查,并生成健康报告。当用户提出数据库安全、性能或健康状况的检测需求时,可使用此技能。

SKILL.md
--- frontmatter
name: db-health-check
description: Run database security and performance checks and produce a health report. Use when the user asks for db security, performance, or health checks.

Database Health Check

Quick Start

  1. Run security and performance checks.
  2. Generate a consolidated report.
  3. Summarize findings and remediation steps.

Steps

  • Use repo scripts:
    • scripts/check-database-security.js
    • scripts/check-database-performance.js
    • scripts/generate-health-report.js
  • Reference docs/DATABASE_PIPELINE.md for expected output and thresholds.

Output

  • Report with issues grouped by severity.
  • Clear remediation references (indexes, RLS, function search_path).