跳到正文
cccskills
免费在 GitHub 公开

database-ops

Operate production databases (PostgreSQL, MySQL, MongoDB, Redis), managed or not: health checks, slow queries, locks, connections, maintenance, replication lag, and what to do in a database incident. Read-only by default.

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane星标 3(GitHub 3 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(5)

  • SKILL.md4.0 KB
  • references/mongodb.md2.3 KB
  • references/mysql.md2.5 KB
  • references/postgres.md2.9 KB
  • references/redis.md2.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Database Ops

Keeping a running database healthy, and finding the cause when it is not. It assumes a managed service (Cloud SQL, RDS, Atlas, Memorystore, ElastiCache) or an existing server; installing and configuring servers is out of scope. Backups and restores are in /backup-strategy; schema and migrations in /database and /run-migrations.

Phase 1: Scope

ModeDoes
healthRuns the health checks for the engine and gives a verdict
incidentSomething is slow or failing now: finds the cause, proposes the fix
tuneReviews slow queries, indexes, connection and memory settings
No arghealth

Detect the engine and where it runs from the connection string, docker-compose.yml, IaC or env files. Ask for read-only credentials; never use the application's admin user for diagnosis.

Phase 2: Engine reference

EngineReferenceAlso
PostgreSQLreferences/postgres.md/query-optimization, /database-indexing, /read-replicas
MySQLreferences/mysql.md
MongoDBreferences/mongodb.md
Redisreferences/redis.md

Read only the reference for the engine in use.

Phase 3: Health checks

Every engine gets the same six questions; the reference has the exact queries:

  1. Up and reachable, and from the app's network.
  2. Connections: used vs maximum, idle-in-transaction or leaked connections, pooler in front.
  3. Slow work: the top queries by total time, long-running operations, lock waits.
  4. Memory and cache: hit ratio, eviction (Redis), buffer pool or cache size vs working set.
  5. Storage and maintenance: disk growth, bloat or fragmentation, maintenance jobs keeping up (vacuum, compaction).
  6. Replication: lag per replica, replication slots or oplog window, last failover.

On a managed service, start with its own tools (Cloud SQL Query Insights, RDS Performance Insights, Atlas Performance Advisor): they keep history that ad-hoc queries do not.

Phase 4: Incident

  1. What changed? Deploys, migrations, traffic, a new cron job, an index build, in the last hours.
  2. Where is the time going? Active operations and lock waits right now (reference queries).
  3. Stop the bleeding with the least destructive option: kill one runaway query, pause a job, scale read traffic to replicas, add capacity on a managed service. Ask before each.
  4. Fix the cause after the incident: the index, the query, the pool size, the migration strategy.
  5. Write it up with /incident.

Phase 5: Verdict

VerdictWhen
PASSAll six checks within limits
CONCERNSSomething trending toward a limit: connections above 70% of max, growing lag, bloat, a slow query in the top 5 by total time
FAILAt or past a limit: connections exhausted, replication broken or lag above the RPO, disk above 85%, Postgres transaction ID age near wraparound, Redis evicting keys that are not cache

Report: verdict, one row per check (value, limit, evidence), then the fixes in order of risk.

Protocol

  • Read-only by default. Killing sessions, VACUUM FULL, OPTIMIZE TABLE, failovers, FLUSHALL, CONFIG SET and index builds on large tables are changes: show the exact command and ask first.
  • Run heavy diagnostic queries on a replica when one exists.
  • Never paste query results that contain user data into the conversation; aggregate or redact.

Next steps

  • /backup-strategy for backups, PITR and restore tests.
  • /slo-sli and /observability-setup to alert on these checks instead of running them by hand.
  • /incident for the post-mortem.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Plan, design, and implement A/B tests and experiments with statistical rigor. Covers hypothesis frameworks, sample sizing, metrics, and result analysis.

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane32026年10月27日 更新

Web/mobile accessibility decision guide: WCAG 2.2 AA, ARIA, keyboard nav, focus management, contrast, testing. Use for: a11y, accessibility, wcag, aria, screen reader, keyboard, contrast.

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane32026年10月27日 更新

Generate, iterate, and scale ad creative for paid advertising across Google, Meta, LinkedIn, and X. Covers platform specs, creative frameworks, and quality validation.

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane32026年10月27日 更新

Musica interactiva para juegos: layering vertical, re-secuenciacion horizontal, stingers, reglas de transicion con sync points, y mapeo de estados de gameplay a musica. Usar para: musica adaptativa, sistema de musica dinamica, transiciones musicales, combat music.

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane32026年10月27日 更新

Design multi-agent systems, create agent architectures, define communication patterns, and build autonomous agent workflows with structured evaluation frameworks.

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane32026年10月27日 更新

Inter-agent communication protocol for C-suite agent teams. Defines invocation syntax, loop prevention, isolation rules, response formats, and quality loops.

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane32026年10月27日 更新

查看 SebastianLuser 的全部技能

报告此技能的问题