Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计提醒

process-db-report处理数据库报告

Agent Skill

process-db-report 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,395

周安装

57

GitHub Stars

3

下载量

451
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:process-db-report(处理数据库报告)
来源仓库:https://github.com/blogic-cz/blogic-marketplace
仓库路径:skills/process-db-report
安装命令:
npx skills add https://github.com/blogic-cz/blogic-marketplace --skill process-db-report
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/blogic-cz/blogic-marketplace --skill process-db-report

简介

process-db-report 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态进行整理。
  • 通过 npx skills add 命令从指定仓库安装并使用。
  • 建议确认权限范围和维护状态,避免误操作。
  • 可结合原始 README 进一步核验其功能和使用方式。

SKILL.md

Database Performance Report Processing

Analyze database observability reports and produce prioritized optimization plans for Drizzle ORM codebases.

Triage Workflow

  1. Parse report — Extract structured data from the pasted observability report.
  2. Validate report completeness — Identify missing sections before making recommendations.
  3. Analyze issues — Detect high-impact problems with evidence-based rules.
  4. Rank priorities — Sort issues by impact (high/medium/low).
  5. Generate action plan — Propose specific, safe tasks with schema-level guidance.

Incomplete Report Handling

  • Ask for missing sections instead of guessing when required data is absent.
  • Request only the missing parts needed for the blocked recommendation.
  • Mark recommendations as conditional when partial data is available.

Required sections for full triage:

  • Table Statistics
  • High Sequential Scans
  • Unused/Rarely Used Indexes
  • Foreign Keys Without Indexes
  • Cache Hit Ratio

Issue Detection Heuristics

Critical Issues (Immediate Action)

IssueDetection RuleAction
Bloated TablesDead rows >10% in Table StatisticsVACUUM via /app/admin/observability UI
Missing/Weak Index CoverageIndex usage <50% with high sequential scans and known query filter/sort patternsPropose an index strategy in packages/db/src/schema.ts only after validating query patterns
Foreign Keys Without IndexesFK columns without corresponding indexesAdd index in schema.ts

Medium Priority (Next Sprint)

IssueDetection RuleAction
Unused IndexesNon-unique indexes with low usage across a defined workload windowRemove from schema.ts only after validating real query paths and safety checks
Duplicate IndexesMultiple indexes covering same columnsRemove redundant index

Low Priority (Monitor)

IssueDetection RuleAction
Cache Hit RatioBelow 99%Investigate workload and cache behavior first; escalate shared_buffers tuning as optional infra-level follow-up

Report Format Expected

Table Statistics:
| table_name | total_size | dead_rows | dead_ratio_pct |
|------------|------------|-----------|----------------|
| users      | 2048 MB    | 15000     | 12.5           |

High Sequential Scans:
| table_name | sequential_scans | index_usage_pct |
|------------|------------------|-----------------|
| sessions   | 45000            | 25              |

Unused/Rarely Used Indexes:
| index_name           | times_used | index_size |
|---------------------|------------|------------|
| idx_old_feature     | 2          | 5 MB       |

Foreign Keys Without Indexes:
| table_name | column_name | suggested_index |
|------------|-------------|-----------------|
| posts      | user_id     | CREATE INDEX... |

Cache Hit Ratio:
| cache_hit_ratio_pct |
|---------------------|
| 97.5                |

Index Safety Rules

NEVER remove these indexes:

  • Primary keys (*_pkey)
  • Unique constraints (*_unique)
  • Business logic constraints (e.g., organizations_slug_unique)

SAFE to remove:

  • Non-unique indexes with consistently low usage over a representative workload window (for example 7-30 days, depending on traffic patterns)
  • Redundant indexes (covered by composite indexes)

Removal guards (required):

  • Validate workload window coverage before deciding an index is unused.
  • Validate query-path usage from real application paths (API endpoints, background jobs, cron flows) before removal.
  • Verify no hidden dependency through constraints, migrations, or operational workflows.
  • Keep recommendation conditional if query-path validation data is missing.

Example of safe removal:

// oauth_consents has composite unique(userId, clientId)
// So single-column index on clientId alone is redundant
index("oauth_consents_client_id_idx"); // SAFE TO REMOVE

Action Plan Template

Load and follow references/action-plan-template.md for the full output structure and wording.


Important Rules

  • Reference actual file paths (packages/db/src/schema.ts)
  • Provide exact code snippets for schema changes
  • Prioritize by impact (dead rows > missing indexes > unused indexes)
  • NEVER suggest ad-hoc SQL — schema.ts is source of truth
  • Include workflow steps at the end
  • Estimate improvements only when the report provides enough data to support a defensible estimate
  • Treat shared_buffers tuning as optional and escalation-only infrastructure guidance

Related Skills

  • performance-optimization — Effect parallel patterns, N+1 fixes, batch operations
  • drizzle-database — Schema patterns, migrations, relations
  • production-troubleshooting — Kubernetes performance debugging

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.76%
按下载量换算157

Claude

30.18%
按下载量换算136

Cursor

20.33%
按下载量换算92

Gemini CLI

10.05%
按下载量换算45

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills