AgentSkillsCN

db-reset

安全地重置并重新初始化开发/测试数据库。适用于需要干净的数据库状态以进行调试、迁移验证,或构建可重复的QA场景的场景。

SKILL.md
--- frontmatter
name: db-reset
description: >-
  Resets and reseeds development/test databases safely. Use when a clean database state is
  needed for debugging, migration verification, or reproducible QA scenarios.

DB Reset Skill

When to Apply

  • User requests a clean data reset.
  • Migration/seeding drift causes local breakage.
  • Test data must be rebuilt from scratch.

Workflow

  1. Confirm environment scope (local/test/staging) and risk.
  2. Identify reset command pattern from project tooling.
  3. Execute reset + seed using project-standard commands.
  4. Validate schema status and key baseline data.
  5. Report exactly what was destroyed/recreated.

Safety

  • Do not run destructive reset on production data.
  • Prefer scoped resets where supported.
  • Call out irreversible actions before execution.