server-schema-change

Use when changing DaoFlow server schema or persistence flows, including Drizzle schema files, migrations, seed ordering, and database safety rules.

10 stars

Best use case

server-schema-change is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Use when changing DaoFlow server schema or persistence flows, including Drizzle schema files, migrations, seed ordering, and database safety rules.

Teams using server-schema-change should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/server-schema-change/SKILL.md --create-dirs "https://raw.githubusercontent.com/DaoFlow-dev/DaoFlow/main/.agents/skills/server-schema-change/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/server-schema-change/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How server-schema-change Compares

Feature / Agentserver-schema-changeStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Use when changing DaoFlow server schema or persistence flows, including Drizzle schema files, migrations, seed ordering, and database safety rules.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Server Schema Change

Use this skill for DaoFlow server schema, migration, and seed work.

## Load First

1. Repository root [AGENTS.md](../../../AGENTS.md)
2. [packages/server/AGENTS.md](../../../packages/server/AGENTS.md)
3. [validation-gates](../validation-gates/SKILL.md) before commit or push

## Contract

- Tables live in `packages/server/src/db/schema/`, grouped by concern.
- All IDs must stay within the `varchar(32)` limit.
- Never modify a committed migration in place.
- Seed ordering and idempotency rules from `packages/server/AGENTS.md` remain mandatory.
- Preserve agent safety, auditability, and approval boundaries when schema changes affect execution flows.

## Required Flow

1. Change the relevant schema or persistence modules.
2. Generate or add the required migration instead of editing an existing committed migration.
3. Update services, seeds, and contracts affected by the schema change.
4. Run the relevant database checks such as `bun run db:migrate`, `bun run db:generate`, or issue-specific recovery commands when the change requires them.
5. Run changed-surface tests plus [validation-gates](../validation-gates/SKILL.md).

## Guardrails

- Prefer Drizzle query builder over raw SQL unless a raw query is clearly justified.
- Keep schema files grouped by concern and split large persistence modules before they become mixed-purpose.
- Verify foreign-key ordering and idempotency whenever seed data changes.

Related Skills

We are still matching the closest adjacent skills for this page. In the meantime, continue through the full directory.